Templates / Chat with Google Drive documents using Pinecone and OpenAI RAG

Chat with Google Drive documents using Pinecone and OpenAI RAG

Needs changes

by Alberto Idrio · 411 views · created 2026-02-01 · Internal Wiki, AI RAG

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 30 nodes and runs manually, when you click “Execute workflow” (plus 3 other triggers). Along the way it connects Pinecone Vector Store, Vector Store Question Answer, Google Drive and OpenAI Chat Model and 2 more. It also calls open-ai-3072-71cwk85.svc.aped-4627-b74a.pinecone.io over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 3 other triggers).

  1. Pinecone – Delete All Vectors (HTTP Request): calls open-ai-3072-71cwk85.svc.aped-4627-b74a.pinecone.io (POST)
  2. Filter: keeps only the items that match a condition
  3. Filter: keeps only the items that match a condition
  4. Documents finder (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Vector Store Tool); memory: Window Buffer Memory
  5. Search files and folders (Google Drive): work with file folder
  6. If: checks a condition and branches into true / false
  7. If: checks a condition and branches into true / false
  8. Loop Items (Loop Over Items (Split in Batches)): loops over the items in batches
  9. Download File From Google Drive (Google Drive): download
  10. Send a message (Gmail): uses Gmail

…plus 4 more steps. See the full node list below.

Services it uses

Pinecone Vector StoreVector Store Question AnswerGoogle DriveOpenAI Chat ModelEmbeddings OpenAIGmail

HTTP calls to: open-ai-3072-71cwk85.svc.aped-4627-b74a.pinecone.io

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in Documents finder (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Documents finder (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (18)

From the author

Google Drive → Pinecone RAG Chatbot (Auto-Sync & Query) This n8n workflow implements a fully automated Retrieval-Augmented Generation (RAG) pipeline powered by Google Drive, OpenAI embeddings, and Pinecone. It continuously keeps a vector database in sync with…

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