Automation library · E-commerce

Confirm restaurant orders by phone with Supabase and Claude

Started by another system calling it. It calls services over plain HTTP rather than through connectors. 24 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large

24 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
0Loops or waits
0Services by connector: it calls them over plain HTTP

The flow

Starts it 9Logic 6Service 9

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

  1. 1📥 New NotificationWebhookStarts it
  2. 2🔊 Twilio Fetches AudioWebhookStarts it
  3. 3📞 Twilio Status CallbackWebhookStarts it
  4. 4⚠️ On ErrorError triggerStarts it
  5. 5Parse NotificationCodeLogic
  6. 6Get Saved ScriptHttp RequestService
  7. 7Map Call OutcomeCodeLogic
  8. 8Log Error → SupabaseHttp RequestService
  9. 9Is a new order?IfLogic
  10. 10Prepare TextCodeLogic
  11. 11Update Call ResultHttp RequestService
  12. 12Claim Order (insert log)Http RequestService
  13. 13Skip (not new_order)Respond To WebhookStarts it
  14. 14🗣️ ElevenLabs: Text → AudioHttp RequestService
  15. 15200 OKRespond To WebhookStarts it
  16. 16Fetch Order DetailsHttp RequestService
  17. 17Skip (already called)Respond To WebhookStarts it
  18. 18Stream MP3 to TwilioRespond To WebhookStarts it
  19. 19Build Call ContextCodeLogic
  20. 20🧠 Claude: Write ScriptHttp RequestService
  21. 21Extract ScriptCodeLogic
  22. 22Log: status = calling (save script)Http RequestService
  23. 23☎️ Twilio: Place CallHttp RequestService
  24. 24200 Call InitiatedRespond To WebhookStarts it

How it's built

Starts on
Another system calling it
Steps
24, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
Nothing by connector; it calls services over plain HTTP
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 24 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 24 steps before you point it at anything that matters.