Build a knowledge-based WhatsApp assistant with RAG, Gemini, Supabase & Google Docs
Ready for 3.0What 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).
- If: checks a condition and branches into true / false
- Content for the Training (Google Docs): uses Google Docs
- Embend User Message (HTTP Request): calls an HTTP API
- Splitting into Chunks (Code): runs custom JavaScript code
- Search Embeddings (HTTP Request): calls an HTTP API
- Embedding Uploaded document (HTTP Request): calls an HTTP API
- Aggregate: combines items into one
- Save the embedding in DB (Supabase): uses Supabase
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model
- Send message (WhatsApp Business Cloud): uses WhatsApp Business Cloud
Services it uses
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)
- WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - Google Docs
n8n-nodes-base.googleDocs - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Supabase
n8n-nodes-base.supabase - Aggregate
n8n-nodes-base.aggregate - Manual Trigger
n8n-nodes-base.manualTrigger - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - AI Agent
@n8n/n8n-nodes-langchain.agent - If
n8n-nodes-base.if
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…