Automation library · Money admin

Automate income and expense tracking in Google Sheets

Started by an incoming Telegram message, and works across Google Sheets and Telegram. 27 steps, 4 branches: large, and worth reading before you trust it with anything live.

Large

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

The flow

Starts it 1Logic 13Service 13

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

  1. 1Telegram - Incoming WebhookTelegram triggerStarts it
  2. 2Detect Message TypeCodeLogic
  3. 3Route by Input TypeSwitchLogic
  4. 4Handle /start or Message InputSwitchLogic
  5. 5Parse Callback ResponseCodeLogic
  6. 6Show Income/Expense OptionsTelegramService
  7. 7Validate Input FormatCodeLogic
  8. 8Route Based on Callback TypeSwitchLogic
  9. 9Extract Data TypeCodeLogic
  10. 10Update Approval StatusGoogle SheetsService
  11. 11Get Row for Detail ViewGoogle SheetsService
  12. 12Show Income Input FormatCodeLogic
  13. 13Show Expense Input FormatCodeLogic
  14. 14Route Based on Data TypeSwitchLogic
  15. 15Get Approved RowGoogle SheetsService
  16. 16Format Expense Detail MessageCodeLogic
  17. 17Send Income Format MessageTelegramService
  18. 18Send Expense Format MessageTelegramService
  19. 19Parse Income DataCodeLogic
  20. 20Parse Expense DataCodeLogic
  21. 21Notify User of Approval ResultTelegramService
  22. 22Send Expense Detail to SupervisorTelegramService
  23. 23Save Income to SheetGoogle SheetsService
  24. 24Save Expense to SheetGoogle SheetsService
  25. 25Notify User Income RecordedTelegramService
  26. 26Notify User Expense PendingTelegramService
  27. 27Send Approval RequestTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
27, with 4 branches
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets, Telegram
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

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

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 27 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 27 steps before you point it at anything that matters.