Templates / Automate document ingestion & RAG system with Google Drive, Sheets & OpenAI

Automate document ingestion & RAG system with Google Drive, Sheets & OpenAI

Ready for 3.0

by Mohamed Abdelwahab ✓ · 2,015 views · created 2025-09-05 · 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 24 nodes and runs on Google Drive events (file created) (plus 2 other triggers). Along the way it connects Pinecone Vector Store, Embeddings OpenAI, Google Drive and Google Sheets and 1 more.

How it runs

Trigger: On Google Drive events (file created) (plus 2 other triggers).

  1. Search files and folders (Google Drive): work with file folder
  2. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (Pinecone Vector Store)
  3. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Form (n8n Form): shows the next form page
  5. nonDownloadableFile (If): checks a condition and branches into true / false
  6. Download file (Google Drive): download
  7. createHash (Crypto): hashes or encrypts values
  8. searchRecordManger (Google Sheets): uses Google Sheets
  9. Switch: routes items into 3 branches
  10. Add to Record Manger (Google Sheets): append or update

…plus 5 more steps. See the full node list below.

Services it uses

Pinecone Vector StoreEmbeddings OpenAIGoogle DriveGoogle SheetsOpenAI Chat Model

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 (15)

From the author

1. Overview The IngestionDocs workflow is a fully automated document ingestion and knowledge management system built with n8n. Its purpose is to continuously ingest organizational documents from Google Drive, transform them into vector embeddings using…

Excerpt from Mohamed Abdelwahab'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.