Automation library · Money admin

Track MPESA and Airtel mobile payments

Started by someone opening a chat with it, and works across Twilio and n8n data table. It hands the judgement calls to Gemini. 21 steps, 3 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini

21 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 2Model 2Logic 13Service 4

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

  1. 1WebhookWebhookStarts it
  2. 2When chat message receivedChat triggerStarts it
  3. 3Respond to ChatChatModel
  4. 4Edit FieldsSetLogic
  5. 5Classify MessageCodeLogic
  6. 6RouteSwitchLogic
  7. 7Drop original messageSetLogic
  8. 8Message a modelGoogle GeminiModel
  9. 9Delete paymentsData TableService
  10. 10Fetch paymentsData TableService
  11. 11MpesaCodeLogic
  12. 12Airtel MoneyCodeLogic
  13. 13MergeMergeLogic
  14. 14Code in JavaScriptCodeLogic
  15. 15Create MessageFunctionLogic
  16. 16Create SummaryFunctionLogic
  17. 17Save paymentData TableService
  18. 18Build one objectCodeLogic
  19. 19Valid message ?IfLogic
  20. 20If sender is a phoneIfLogic
  21. 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 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 21 steps before you point it at anything that matters.