Build & Query RAG System with Google Drive, OpenAI GPT-4o-mini, and Pinecone
n8n template #4501Summary
Use template🔍 What This Workflow Does This RAG Pipeline in n8n automates document ingestion from Google Drive, vectorizes it using OpenAI embeddings, stores it in Pinecone, and enables chat-based retrieval using LangChain agents. Main Functions: 📂 Auto-detects new files uploaded to a specific Google Drive folder. 🧠 Converts the file into embeddings using OpenAI. 📦 Stores them in a Pinecone vector database. 💬 Allows a user to query the knowledge base through a chat interface. 🤖 Uses a GPT-4o-mini model with LangChain to generate intelligent responses using retrieved context. ⚙️ Setup Instructions Connect Accounts Ensure these services are connected in n8n: ✅ Google Drive (OAuth2) ✅ OpenAI ✅ Pinecon
Hand off to your agent
Prompt
Help me set up the n8n workflow "Build & Query RAG System with Google Drive, OpenAI GPT-4o-mini, and Pinecone" (https://n8n.io/workflows/4501). It uses: Google Drive, AI Agent, Embeddings OpenAI, OpenAI Chat Model, Recursive Character Text Splitter, Pinecone Vector Store, Default Data Loader. 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 DriveAI AgentEmbeddings OpenAIOpenAI Chat ModelRecursive Character Text SplitterPinecone Vector StoreDefault Data Loader
Similar workflows
NameViews
- Document-Based Chatbot with Memory using OpenAI, Pinecone and Google Drive1,966
- Ai email auto-responder system- AI RAG agent for email inbox1,023
- Automate business partner outreach with Google Maps, GPT-4 & WhatsApp917
- WhatsApp Group Chat with Your Vector Database — No Facebook Business Required779
- AI-Powered Accounting Reports from Sabre EDI with GPT-4 and Pinecone RAG521
- AI-Powered MIS Agent437
- Smart Customer Support System with GPT-4o, Gmail, Slack & Drive Knowledge Base'423
- Chat with PDF docs using AI (quoting sources)95K