Templates / Build a RAG chatbot using Google Gemini and a Supabase vector store

Build a RAG chatbot using Google Gemini and a Supabase vector store

Ready for 3.0

by Tricore Infotech Pvt Ltd ✓ · 414 views · created 2026-05-15 · 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 16 nodes and runs when a chat message arrives (plus 2 other triggers). Along the way it connects Google Gemini Chat Model, Postgres Chat Memory, Supabase Vector Store and Embeddings Google Gemini.

How it runs

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

  1. Knowledge-Base AI Agent (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; 1 tool (Supabase Retriever); memory: Persistent Chat History
  2. Parse File Size (Code): runs custom JavaScript code
  3. Format Error Alert (Edit Fields (Set)): sets 1 field: alertMessage
  4. File < 10MB? (If): checks a condition and branches into true / false
  5. Supabase Inserter (Supabase Vector Store): stores documents in the Supabase vector store, with embeddings: Gemini Embeddings; document loader: Document Parser
  6. Reject Upload (Stop and Error): stops the run with an error
  7. Success Response (Respond to Webhook): sends the response back to the webhook caller

Services it uses

Google Gemini Chat ModelPostgres Chat MemorySupabase Vector StoreEmbeddings 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 (15)

From the author

🧠 AI Chatbot with RAG: Google Gemini & Supabase Vector Store 📌 Summary Build a custom, intelligent knowledge base in minutes. This n8n workflow provides a complete Retrieval-Augmented Generation (RAG) system using Google Gemini and Supabase. It features a…

Excerpt from Tricore Infotech Pvt Ltd'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.