Templates / AI WhatsApp support with human handoff using Gemini, Twilio, and Supabase RAG

AI WhatsApp support with human handoff using Gemini, Twilio, and Supabase RAG

Ready for 3.0

by Shadrack ✓ · 1,271 views · created 2025-12-10 · 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 22 nodes and runs on Twilio events (com.twilio.messaging.inbound message.received) (plus 2 other triggers). Along the way it connects Twilio, Google Drive, Supabase Vector Store and Embeddings OpenAI and 3 more.

How it runs

Trigger: On Twilio events (com.twilio.messaging.inbound message.received) (plus 2 other triggers).

  1. human in the loop (HTTP Request): calls an HTTP API
  2. Set the fields for mapping (Edit Fields (Set)): sets 2 fields: file_id, file_name
  3. 2hour Filter (Filter): keeps only the items that match a condition
  4. Deletes old records (Supabase): delete
  5. Validate text input (If): checks a condition and branches into true / false
  6. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  7. Whatsapp Support Agent (AI Agent): runs an AI agent, with model: Google Gemini (the brain); 4 tools (Think, Calculator, Airtable CRM, Knowledgebase); memory: conversation buffer
  8. Download file (Google Drive): download
  9. Send an SMS/MMS/WhatsApp message (Twilio): uses Twilio
  10. Supabase Vector Store: stores documents in the Supabase vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader

Services it uses

TwilioGoogle DriveSupabase Vector StoreEmbeddings OpenAISupabaseAirtableGoogle 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 (20)

From the author

Quick Overview What it is: An n8n workflow that enables AI-first WhatsApp support with seamless human handoff. Why it’s unique: The AI agent answers queries using RAG (Supabase vector store + Gemini). If a human intervenes, the AI steps down. If there’s no…

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