Templates / Build a knowledge-based WhatsApp assistant with RAG, Gemini, Supabase & Google Docs

Build a knowledge-based WhatsApp assistant with RAG, Gemini, Supabase & Google Docs

Ready for 3.0

by iamvaar ✓ · 296 views · created 2025-09-23 · 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 13 nodes and runs on WhatsApp events (plus 1 other trigger). Along the way it connects WhatsApp Business Cloud, Google Docs, Supabase and Google Gemini Chat Model.

How it runs

Trigger: On WhatsApp events (plus 1 other trigger).

  1. If: checks a condition and branches into true / false
  2. Content for the Training (Google Docs): uses Google Docs
  3. Embend User Message (HTTP Request): calls an HTTP API
  4. Splitting into Chunks (Code): runs custom JavaScript code
  5. Search Embeddings (HTTP Request): calls an HTTP API
  6. Embedding Uploaded document (HTTP Request): calls an HTTP API
  7. Aggregate: combines items into one
  8. Save the embedding in DB (Supabase): uses Supabase
  9. AI Agent: runs an AI agent, with model: Google Gemini Chat Model
  10. Send message (WhatsApp Business Cloud): uses WhatsApp Business Cloud

Services it uses

WhatsApp Business CloudGoogle DocsSupabaseGoogle 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 (11)

From the author

Workflow Execution Link: Watch Execution Video Workflow Pre-requisites Step 1: Supabase Setup First, replace the keys in the "Save the embedding in DB" & "Search Embeddings" nodes with your new Supabase keys. After that, run the following code snippets in…

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