Templates / Process OCR documents from Google Drive into searchable knowledge base with OpenAI & Pinecone

Process OCR documents from Google Drive into searchable knowledge base with OpenAI & Pinecone

Ready for 3.0

by osama goda ✓ · 304 views · created 2025-12-10 · Document Extraction, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 9 nodes and runs on Google Drive events (file created). Along the way it connects Google Drive, Embeddings OpenAI and Pinecone Vector Store.

How it runs

Trigger: On Google Drive events (file created).

  1. Filename → Lesson Metadata (Code): runs custom JavaScript code
  2. Download file (Google Drive): download
  3. Vision JSON → Clean Text Chunks (Code): runs custom JavaScript code
  4. Insert into Pinecone Vector Store (Pinecone Vector Store): stores documents in the Pinecone vector store, with embeddings: Generate Embeddings (OpenAI); document loader: Default Data Loader
  5. Move File to Archive (Google Drive): move

Services it uses

Google DriveEmbeddings OpenAIPinecone Vector Store

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (7)

From the author

How it works This workflow automates a full RAG ingestion pipeline. When a new OCR JSON file is added to a Google Drive folder, the workflow extracts lesson metadata, parses and cleans the Arabic text, generates semantic chunks, creates AI embeddings, and…

Excerpt from osama goda's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.