Automation library · Alerts and monitoring

Gmail AI assistant & Telegram notifier with OpenRouter

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

MediumCalls a model: OpenRouter

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

The flow

Starts it 1Model 3Logic 6Service 3

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

  1. 1Structured Output Parser1Output Parser StructuredModel
  2. 2OpenRouter Chat Model2Lm Chat Open RouterModel
  3. 3Create Gmail App Wrapper LinkSetLogic
  4. 4Gmail TriggerGmail triggerStarts it
  5. 5AI Agent2AgentModel
  6. 6check is its personal mail categoryIfLogic
  7. 7If its useful or notIfLogic
  8. 8Check if its unreadIfLogic
  9. 9Edit useful stringSetLogic
  10. 10Edit useful string1SetLogic
  11. 11Send a text messageTelegramService
  12. 12Mark a message as readGmailService
  13. 13Add label to messageGmailService

How it's built

Starts on
An arriving email
Steps
13, with 3 branches
Size
Medium: a working afternoon
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?

Plan an afternoon. 13 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 13 steps before you point it at anything that matters.