Automation library · Alerts and monitoring

Automate financial transaction tracking with Gmail and OpenAI

Started by an arriving email, and works across Gmail, Notion and Telegram. It hands the judgement calls to OpenRouter. 16 steps: a working afternoon to understand properly.

MediumCalls a model: OpenRouter

16 stepsMedium: a working afternoon
0Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 3Model 7Logic 1Service 5

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

  1. 1forwardingGmail triggerStarts it
  2. 2support@bayesian-labsGmail triggerStarts it
  3. 3anoop.karnik@bayesian-labsGmail triggerStarts it
  4. 4Create Invoice ToolNotion ToolService
  5. 5Create Transction ToolNotion ToolService
  6. 6Create Income ToolNotion ToolService
  7. 7Create Income Tool1Notion ToolService
  8. 8gpt-5Lm Chat Open RouterModel
  9. 9gpt-5-nanoLm Chat Open RouterModel
  10. 10Set Email DataSetLogic
  11. 11Accountant AgentAgentModel
  12. 12Accountant Agent1AgentModel
  13. 13Accountant Agent2AgentModel
  14. 14Accountant Agent3AgentModel
  15. 15ClassifyText ClassifierModel
  16. 16Send MessageTelegramService

How it's built

Starts on
An arriving email
Steps
16
Size
Medium: a working afternoon
Connects to
Gmail, Notion, Telegram
Model
OpenRouter

Questions

What does it need to run?

An n8n account, plus your own Gmail, Notion and Telegram accounts, and a key for OpenRouter. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an arriving email.

Does it use AI?

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

How long does it take to set up?

Plan an afternoon. 16 steps is enough that you should read each one before running it.

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