Process Documents with Recursive Chunking using Google Drive, OpenAI & Gemini RAG
n8n template #5521Summary
Use template1. Document Ingestion & Processing Google Drive Trigger monitors for new files → Loop Over Items processes each file → File Info extracts metadata → Google Drive downloads the actual content → Switch routes to appropriate extractors (PDF or TEXT) based on file type 2. Content Transformation & Chunking Document Data node processes extracted text → Recursive Splitter breaks content into contextual chunks → Chunk Splitting applies intelligent segmentation while preserving document context and relationships between chunks 3. Embedding & Storage Basic LLM Chain processes chunks → OpenAI Chat Model generates contextual understanding → Summarize creates document summaries → Supabase Vector Store sa
Hand off to your agent
Prompt
Help me set up the n8n workflow "Process Documents with Recursive Chunking using Google Drive, OpenAI & Gemini RAG" (https://n8n.io/workflows/5521). It uses: Google Drive, Code, AI Agent, Basic LLM Chain, Embeddings OpenAI, OpenAI Chat Model, Character Text Splitter, Supabase Vector Store, Default Data Loader, OpenAI, Google Gemini Chat Model. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.
Paste into Claude Code and it will do the rest.
Apps and nodes
Google DriveCodeAI AgentBasic LLM ChainEmbeddings OpenAIOpenAI Chat ModelCharacter Text SplitterSupabase Vector StoreDefault Data LoaderOpenAIGoogle Gemini Chat Model
Similar workflows
NameViews
- AI-Powered RAG Document Processing & Chatbot with Google Drive, Supabase, OpenAI11K
- Explore n8n Nodes in a Visual Reference Library5,197
- Create a Multi-Modal Telegram Support Bot with GPT-4 and Supabase RAG10K
- Automated job extraction & publishing with RAG, Jina AI and OpenAI to WordPress724
- Automate sales cold calling pipeline with Apify, gpt-5.6-terra, and WhatsApp34K
- Automated HR Service System with WhatsApp, GPT-4 Classification & Google Workspace4,541
- Answer multi-channel support queries with OpenAI RAG and Supabase2,462
- Document RAG & Chat Agent: Google Drive to Qdrant with Mistral OCR994