The flow
Starts it 2Model 2Logic 13Service 4
The steps in the order they run, from what starts it.
- 1WebhookWebhookStarts it
- 2When chat message receivedChat triggerStarts it
- 3Respond to ChatChatModel
- 4Edit FieldsSetLogic
- 5Classify MessageCodeLogic
- 6RouteSwitchLogic
- 7Drop original messageSetLogic
- 8Message a modelGoogle GeminiModel
- 9Delete paymentsData TableService
- 10Fetch paymentsData TableService
- 11MpesaCodeLogic
- 12Airtel MoneyCodeLogic
- 13MergeMergeLogic
- 14Code in JavaScriptCodeLogic
- 15Create MessageFunctionLogic
- 16Create SummaryFunctionLogic
- 17Save paymentData TableService
- 18Build one objectCodeLogic
- 19Valid message ?IfLogic
- 20If sender is a phoneIfLogic
- 21Send a WhatsApp messageTwilioService
How it's built
- Starts on
- Someone opening a chat with it
- Steps
- 21, with 3 branches
- Size
- Large: read it before trusting it with anything live
- Connects to
- Twilio, n8n data table
- Model
- Gemini
Questions
What does it need to run?
An n8n account, plus your own Twilio account, and a key for Gemini. You connect your own accounts after importing it; none are included.
What starts it?
It starts on someone opening a chat with it.
Does it use AI?
Yes. It calls Gemini. Model calls are billed by the provider, not by n8n.
How long does it take to set up?
Take your time. At 21 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 itNothing 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 21 steps before you point it at anything that matters.