Automation library · Customer support

AI WhatsApp support with Gemini and Twilio

Started by an event in a connected app, and works across Airtable, Google Drive, Supabase, Supabase vectors and one other. It puts Gemini and OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 22 steps, 1 branch, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini, OpenAIRetrieval

22 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
1Loop or waits
5Services it connects to

The flow

Starts it 3Model 10Logic 4Service 5

The steps in the order they run, from what starts it.

  1. 1Google Drive TriggerGoogle Drive triggerStarts it
  2. 2Google Drive Trigger1Google Drive triggerStarts it
  3. 3Recursive Character Text SplitterText Splitter Recursive Character Text SplitterModel
  4. 4Embeddings OpenAIEmbeddings Open AiModel
  5. 5ThinkTool ThinkModel
  6. 6CalculatorTool CalculatorModel
  7. 7conversation bufferMemory Buffer WindowModel
  8. 8Twilio (whatsapp) TriggerTwilio triggerStarts it
  9. 9Airtable CRMAirtable ToolService
  10. 10Google Gemini (the brain)Lm Chat Google GeminiModel
  11. 11Set the fields for mappingSetLogic
  12. 12Default Data LoaderDocument Default Data LoaderModel
  13. 13Supabase Vector StoreVector Store SupabaseModel
  14. 14KnowledgebaseVector Store SupabaseModel
  15. 15Whatsapp Support AgentAgentModel
  16. 16human in the loopHttp RequestService
  17. 17Deletes old recordsSupabaseService
  18. 18Send an SMS/MMS/WhatsApp messageTwilioService
  19. 192hour FilterFilterLogic
  20. 20Loop Over ItemsSplit In BatchesLogic
  21. 21Validate text inputIfLogic
  22. 22Download fileGoogle DriveService

How it's built

Starts on
An event in a connected app
Steps
22, with 1 branch, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Airtable, Google Drive, Supabase, Supabase vectors, Twilio
Model
Gemini, OpenAI
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

An n8n account, plus your own Airtable, Google Drive, Supabase, Supabase vectors and Twilio accounts, and a key for Gemini and OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls Gemini and OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 22 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 22 steps before you point it at anything that matters.