Templates / Create a self-updating RAG chatbot with Google Drive, Gemini, and Supabase

Create a self-updating RAG chatbot with Google Drive, Gemini, and Supabase

Ready for 3.0

by Anirudh Aeran ✓ · 1,914 views · created 2025-09-27 · 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 34 nodes and runs when a chat message arrives (plus 4 other triggers). Along the way it connects Reranker Cohere, Supabase Vector Store, Google Drive and Supabase and 4 more.

How it runs

Trigger: When a chat message arrives (plus 4 other triggers).

  1. RAG Agent (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; 1 tool (Supabase Vector Store); memory: Postgres Chat Memory
  2. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  3. Search files and folders (Google Drive): work with file folder
  4. Get File IDs (Google Drive): work with file folder
  5. Supabase: get many
  6. Get File IDs (Google Drive): work with file folder
  7. Supabase: get many
  8. Set File ID (Edit Fields (Set)): sets 4 fields: file_id, file_type, file_title…
  9. Merge: merges the data from its input branches
  10. Merge: merges the data from its input branches

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

Services it uses

Reranker CohereSupabase Vector StoreGoogle DriveSupabasePostgresPostgres Chat MemoryGoogle Gemini Chat ModelEmbeddings Google Gemini

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 (21)

From the author

This template creates a comprehensive, production-ready Retrieval-Augmented Generation (RAG) system. It builds a sophisticated AI agent that can answer questions based on documents stored in a specific Google Drive folder, and it automatically keeps its…

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