This workflow automates building a RAG system from Google Drive documents, replacing manual indexing, embedding, and search setup that takes 3-5 hours per batch for data teams. The Document Monitor GoogleDriveTrigger watches folders, the Validator If checks files, the Retriever GoogleDrive downloads, the File Type Router Switch handles PDF/Word/Text, extractors (ExtractFromFile) process, the Smart Chunking Engine Code intelligently splits, the Document Loader LangChain adds metadata, the Embedding Generator OpenAI creates vectors, the Vector Store Supabase upserts, the API Endpoint Webhook serves queries, the Query Validator If filters, the Query Router Agent classifies complexity, the Routing Switch If directs to Simple/Complex RAG Agents with Reranker Cohere for relevance, and Response Formatter Set outputs. It helps data engineers in mid-sized firms (20-50 staff) managing 50+ docs weekly, enabling semantic search across silos without Elasticsearch, accelerating AI apps with accurate retrieval.\n\nThis workflow saves 10-15 hours weekly on 50 documents, boosting relevance by 85%. Use cases include internal search for tech docs, RAG for chatbots in enterprises. Suitable for mid-sized teams. Requires Google Drive OAuth (free), OpenAI ($0.03/1k tokens), Supabase ($25/month starter), Cohere ($0.10/1k tokens); n8n (free self-hosted or $20/month cloud). Scalable to 200 docs/week with Pro tiers.\n\nInstall n8n via n8n.io or cloud.n8n.io. Enable Google Drive API at console.cloud.google.com (OAuth). Get OpenAI key at platform.openai.com (embeddings). Create Supabase project at supabase.com (enable pgvector). Get Cohere key at cohere.com (rerank). Set OPENAI_API_KEY, SUPABASE_URL/KEY, COHERE_KEY env vars. Import JSON; DriveTrigger polls every minute, webhook POST 'knowledge-query'. Configure Vector Store with table/queryName.\n\nTest: Add doc to Drive, query via webhook {query: 'What is RAG?'}. Verify response. Errors: Invalid file (skip), no query (400). Activate triggers. Monitor dashboard weekly. Optimize chunks; refresh keys quarterly.", "businessValue": "Saves 10-15 hours/week managing 50 knowledge docs", "setupTime": "30-45 minutes", "difficulty": "Intermediate", "requirements": ["Google Drive OAuth (free)", "OpenAI API ($0.03/1k tokens)", "Supabase ($25/month starter)", "Cohere API ($0.10/1k tokens)", "n8n instance"], "useCase": "Automated RAG pipeline for enterprise search"
$6.99
Workflow steps: 25
Integrated apps: googleDriveTrigger, if, googleDrive