Automation library · Money admin

Manage restaurant orders, upsells, and payments with Telegram

Started by an incoming Telegram message, and works across Google Sheets, Slack and Telegram. It hands the judgement calls to OpenAI. 29 steps, 1 branch, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

29 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
2Loops or waits
3Services it connects to

The flow

Starts it 6Model 1Logic 9Service 13

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

  1. 1Telegram - Customer MessageTelegram triggerStarts it
  2. 2Telegram - Customer ResponseTelegram triggerStarts it
  3. 3Webhook - Payment SuccessWebhookStarts it
  4. 4Telegram - Receive RatingTelegram triggerStarts it
  5. 5Schedule - Daily Report 11PMSchedule triggerStarts it
  6. 6On Workflow ErrorError triggerStarts it
  7. 7AI - Parse Order + UpsellOpen AiModel
  8. 8IF - Customer Said YES?IfLogic
  9. 9Code - Parse Payment DataCodeLogic
  10. 10Code - Process Feedback + LoyaltyCodeLogic
  11. 11Google Sheets - Read Today OrdersGoogle SheetsService
  12. 12Slack – Post Workflow Error AlertSlackService
  13. 13Code - Extract Order DataCodeLogic
  14. 14Code - Calculate Final TotalCodeLogic
  15. 15Telegram - Payment Confirmed to CustomerTelegramService
  16. 16Telegram - Kitchen TicketTelegramService
  17. 17Google Sheets - Log OrderGoogle SheetsService
  18. 18Wait - 20 min Prep TimeWaitLogic
  19. 19Telegram - Loyalty + Thank YouTelegramService
  20. 20Google Sheets - Log FeedbackGoogle SheetsService
  21. 21Code - Calculate Daily ReportCodeLogic
  22. 22Telegram - Send UpsellTelegramService
  23. 23Telegram - Send Payment LinkTelegramService
  24. 24Code - Calculate Inventory DeductionCodeLogic
  25. 25Telegram - Delivery TrackingTelegramService
  26. 26Telegram - Send Daily Report to OwnerTelegramService
  27. 27Google Sheets - Deduct InventoryGoogle SheetsService
  28. 28Wait - 15 min Delivery TimeWaitLogic
  29. 29Telegram - Feedback RequestTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
29, with 1 branch, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets, Slack, Telegram
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Google Sheets, Slack and Telegram accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

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