Templates / Build a RAG knowledge assistant with Google Drive, OpenAI, and Pinecone

Build a RAG knowledge assistant with Google Drive, OpenAI, and Pinecone

Ready for 3.0

by WeblineIndia ✓ · 2 views · created 2026-08-29 · Internal Wiki, 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 20 nodes and runs on Google Drive events (file updated) (plus 1 other trigger). Along the way it connects Google Drive, Embeddings OpenAI, Pinecone Vector Store and OpenAI Chat Model and 1 more.

How it runs

Trigger: On Google Drive events (file updated) (plus 1 other trigger).

  1. Extract File Metadata (Edit Fields (Set)): sets 7 fields: fileId, fileName, mimeType…
  2. Validate & Normalize Query (Code): runs custom JavaScript code
  3. Validate File (If): checks a condition and branches into true / false
  4. Query Valid? (If): checks a condition and branches into true / false
  5. Download File from Drive (Google Drive): download
  6. AI Agent: runs an AI agent, with model: Primary LLM (Agent Brain); 1 tool (Vector Search QA Tool); memory: Conversation Memory Buffer
  7. Respond to Webhook: sends the response back to the webhook caller
  8. Ingest into Pinecone Vector DB (Pinecone Vector Store): stores documents in the Pinecone vector store, with embeddings: Generate Embeddings (Ingest); document loader: Parse Document Content
  9. Format RAG Response (Edit Fields (Set)): sets 5 fields: success, question, answer…

Services it uses

Google DriveEmbeddings OpenAIPinecone Vector StoreOpenAI Chat ModelVector Store Question Answer

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

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.…

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