Templates / WhatsApp RAG chatbot with Supabase, Gemini 2.5 Flash, and OpenAI embeddings

WhatsApp RAG chatbot with Supabase, Gemini 2.5 Flash, and OpenAI embeddings

Ready for 3.0

by Manav Desai ✓ · 10,755 views · created 2025-08-01 · Support Chatbot, 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 11 nodes and runs on WhatsApp events (messages). Along the way it connects Supabase Vector Store, WhatsApp Business Cloud, Embeddings OpenAI and Google Gemini Chat Model.

How it runs

Trigger: On WhatsApp events (messages).

  1. Check if Query or Document (Switch): routes items into 2 branches
  2. RAG Query Agent (AI Agent): runs an AI agent, with model: Google Gemini LLM; 1 tool (Retrieve Context from Supabase)
  3. Get Document URL (WhatsApp Business Cloud): media url get
  4. Send WhatsApp Reply (WhatsApp Business Cloud): send
  5. Download WhatsApp Document (HTTP Request): calls an HTTP API
  6. Store Embeddings in Supabase (Supabase Vector Store): stores documents in the Supabase vector store, with embeddings: Generate OpenAI Embeddings; document loader: Convert File to Text

Services it uses

Supabase Vector StoreWhatsApp Business CloudEmbeddings OpenAIGoogle Gemini Chat Model

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

From the author

WhatsApp RAG Chatbot with Supabase, Gemini 2.5 Flash, and OpenAI Embeddings This n8n template demonstrates how to build a WhatsApp-based AI chatbot that answers user questions using document retrieval (RAG) powered by Supabase for storage, OpenAI embeddings…

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