Templates / Chat with documents via RAG: Google Drive to GPT-5 with Supabase vector database

Chat with documents via RAG: Google Drive to GPT-5 with Supabase vector database

Needs changes

by Paul ✓ · 441 views · created 2025-08-12 · Internal Wiki, Multimodal AI

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 23 nodes and runs on Telegram events (plus 5 other triggers). Along the way it connects Google Drive, Embeddings OpenAI, Supabase Vector Store and Postgres Chat Memory and 5 more.

How it runs

Trigger: On Telegram events (plus 5 other triggers).

  1. Edit Fields (Edit Fields (Set)): sets or maps fields
  2. RAG Agent (AI Agent): runs an AI agent, with model: GPT; 1 tool (Supabase Vector Store); memory: Chat Memory
  3. Download File (Google Drive): uses Google Drive
  4. Send a text message (Telegram): uses Telegram
  5. Send message (WhatsApp Business Cloud): uses WhatsApp Business Cloud
  6. Send a message (Slack): uses Slack
  7. Send a message (Gmail): uses Gmail
  8. OCR (Mistral AI): uses Mistral AI
  9. Split Out: splits a list into separate items
  10. Insert into Supabase Vectorstore (Supabase Vector Store): uses the Supabase vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader

Services it uses

Google DriveEmbeddings OpenAISupabase Vector StorePostgres Chat MemoryOpenAI Chat ModelSlackTelegramGmailWhatsApp Business Cloud

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 RAG Agent (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
  • Also check Slack Trigger requires a signing secret on the Slack API credential.
  • Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
RAG Agent (v1.6)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (21)

From the author

📄 n8n RAG Ingestion & Query Workflow Overview This workflow is your all-in-one pipeline to turn any document into a powerful searchable knowledge base using RAG (Retrieval-Augmented Generation). From the moment a file lands in your Google Drive, it’s…

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