Build a RAG knowledge assistant with Google Drive, OpenAI, and Pinecone
Ready for 3.0Ready 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.
Nodes used (15)
- AI Agent
@n8n/n8n-nodes-langchain.agent - Respond to Webhook
n8n-nodes-base.respondToWebhook - Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Drive
n8n-nodes-base.googleDrive - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - Webhook
n8n-nodes-base.webhook - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Vector Store Question Answer Tool
@n8n/n8n-nodes-langchain.toolVectorStore - If
n8n-nodes-base.if - Code
n8n-nodes-base.code
What it does
Quick Overview This workflow syncs documents from a Google Drive folder into a Pinecone vector index using OpenAI embeddings, then exposes a webhook chat endpoint where an OpenAI-powered agent answers questions by retrieving relevant context from Pinecone. How it works 1. Triggers every minute when a file in a specified Google Drive folder is updated. 2. Extracts the file’s metadata, downloads the updated file from Google Drive, and parses it into text. 3. Splits the text into chunks, generates OpenAI embeddings for each chunk, and inserts them into a Pinecone index under the configured namespace. 4. Receives user questions via a POST webhook endpoint. 5. Uses an OpenAI chat model with conversation memory and a Pinecone retrieval tool to search for relevant document chunks and answer strictly from the retrieved context. 6. Returns the agent’s response to the webhook caller. Setup 1. Connect Google Drive credentials and set the folder to watch in the Google Drive trigger. 2. Add an OpenAI API credential for both embedding generation and the chat models. 3. Configure a Pinecone index and namespace (and provide Pinecone credentials) to match the workflow’s index name and namespace settings. 4. Activate the workflow, copy the webhook URL for the POST endpoint, and configure your client app to send questions (and a session ID if you want memory) to that URL.