Automation library · Money admin

Process invoices & engineering emails with Gmail and Telegram

Started by an arriving email, and works across Gmail and Telegram. It hands the judgement calls to OpenRouter. 23 steps: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenRouter

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

The flow

Starts it 1Model 5Logic 12Service 5

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

  1. 1Gmail TriggerGmail triggerStarts it
  2. 2Structured Output Parser1Output Parser StructuredModel
  3. 3OpenRouter Chat Model1Lm Chat Open RouterModel
  4. 4GeminiLm Chat Open RouterModel
  5. 5Filter1FilterLogic
  6. 6AI AgentAgentModel
  7. 7Information ExtractorInformation ExtractorModel
  8. 8Get a messageGmailService
  9. 9Reply to same threadGmailService
  10. 10Extracting File DetailsSetLogic
  11. 11Edit Fields1SetLogic
  12. 12Edit Fields2SetLogic
  13. 13Merge1MergeLogic
  14. 14Debugged code to find attachmentCodeLogic
  15. 15Send important detailsTelegramService
  16. 16Split OutSplit OutLogic
  17. 17Split Out1Split OutLogic
  18. 18Extract from FileExtract From FileService
  19. 19Convert Names to download filesCodeLogic
  20. 20MergeMergeLogic
  21. 21Remove DuplicatesRemove DuplicatesLogic
  22. 22FilterFilterLogic
  23. 23Send a document (e.g. dwg files)TelegramService

How it's built

Starts on
An arriving email
Steps
23
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Telegram
Model
OpenRouter

Questions

What does it need to run?

An n8n account, plus your own Gmail 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?

Take your time. At 23 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 23 steps before you point it at anything that matters.