Automation library · Money admin

Telegram Expense Tracker with Image and PDF

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

LargeCalls a model: OpenAI

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

The flow

Starts it 1Model 3Logic 12Service 8

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2Is Callback?IfLogic
  3. 3Handle CallbackCodeLogic
  4. 4Doc / TxtIfLogic
  5. 5Has Valid Data?IfLogic
  6. 6Set Fields0SetLogic
  7. 7Txt / AudIfLogic
  8. 8Update sheetGoogle SheetsService
  9. 9Not foundTelegramService
  10. 10Download FileTelegramService
  11. 11Download AudioTelegramService
  12. 12Set Fields2SetLogic
  13. 13Final statusTelegramService
  14. 14PDF / IMGIfLogic
  15. 15TranscribeOpen AiModel
  16. 16OpenAIOpen AiModel
  17. 17Extract from PDFExtract From FileService
  18. 18Analyze ImageOpen AiModel
  19. 19Set Fields1SetLogic
  20. 20IfIfLogic
  21. 21ReviewTelegramService
  22. 22CodeCodeLogic
  23. 23Store and FormatCodeLogic
  24. 24Send Payment OptionsHttp RequestService

How it's built

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

Questions

What does it need to run?

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