Automation library · Money admin

Log receipt expenses in Notion with Gmail and Telegram

Started by an incoming Telegram message, and works across Airtable, Gmail, Google Sheets, Notion and two others. It hands the judgement calls to OpenAI. 24 steps, 3 branches, 1 loop or waits: 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
3Branches: places the flow splits
1Loop or waits
6Services it connects to

The flow

Starts it 3Model 2Logic 10Service 9

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

  1. 1On Workflow ErrorError triggerStarts it
  2. 2Gmail Trigger Receipts1Gmail triggerStarts it
  3. 3Telegram Trigger1Telegram triggerStarts it
  4. 4Slack, Send Workflow Error AlertSlackService
  5. 5Telegram, Send Workflow Error AlertTelegramService
  6. 6Prepare Email Attachment1CodeLogic
  7. 7Has Photo1IfLogic
  8. 8Is PDF1IfLogic
  9. 9Telegram Get Photo File1TelegramService
  10. 10Skip - No Photo1No OpLogic
  11. 11Extract PDF Text1Extract From FileService
  12. 12AI Extract Receipt Data (Image)1Open AiModel
  13. 13Convert Image to Base64 String1CodeLogic
  14. 14AI Extract Receipt Data Text1Open AiModel
  15. 15Parse Receipt JSON1CodeLogic
  16. 16Validate & Normalise FieldsSetLogic
  17. 17Is High-Value Expense? (>100)IfLogic
  18. 18Slack – Flag High-Value for ReviewSlackService
  19. 19Sheets – Append to Monthly Expense LogGoogle SheetsService
  20. 20Airtable – Log to Finance TrackerAirtableService
  21. 21Wait 1s – Before Notion CreateWaitLogic
  22. 22Create Expense Page1NotionService
  23. 23Build Confirmation SummaryCodeLogic
  24. 24Send Telegram Confirmation1TelegramService

How it's built

Starts on
An incoming Telegram message
Steps
24, with 3 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Airtable, Gmail, Google Sheets, Notion, Slack, Telegram
Model
OpenAI

Questions

What does it need to run?

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