Automation library · Money admin

Route rental payment and receipt messages with Telegram

Started by an incoming Telegram message, and works across Telegram. It hands the judgement calls to OpenAI. 22 steps, 6 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

22 stepsLarge: read it before trusting it with anything live
6Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 1Model 1Logic 13Service 7

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2Route Telegram MessageCodeLogic
  3. 3Is Full Receipt Command?IfLogic
  4. 4Receipt Parse MessageCodeLogic
  5. 5Is Receipt Request?IfLogic
  6. 6Demo Full Receipt Parsed ReplyTelegramService
  7. 7Get Last Payment For ReceiptCodeLogic
  8. 8Is Receipt Date Reply?IfLogic
  9. 9Has Last Payment?IfLogic
  10. 10Build Receipt From Pending PaymentCodeLogic
  11. 11Tracker Prepare Telegram TextCodeLogic
  12. 12Ask Receipt DatesTelegramService
  13. 13No Last Payment ReplyTelegramService
  14. 14Receipt Details Valid?IfLogic
  15. 15Tracker Message a ModelOpen AiModel
  16. 16Demo Receipt Ready ReplyTelegramService
  17. 17Receipt Details Error ReplyTelegramService
  18. 18Tracker Normalize AI OutputCodeLogic
  19. 19Tracker Valid?IfLogic
  20. 20Demo Store Last PaymentCodeLogic
  21. 21Tracker Error ReplyTelegramService
  22. 22Demo Tracker Parsed ReplyTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
22, with 6 branches
Size
Large: read it before trusting it with anything live
Connects to
Telegram
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Telegram account, 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 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.