Automation library · Alerts and monitoring

Label incoming Gmail messages with Gemini and Telegram

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

MediumCalls a model: Gemini

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

The flow

Starts it 1Model 2Logic 1Service 15

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

  1. 1Gmail NodeGmail triggerStarts it
  2. 2AI Chat Model GeminiLm Chat Google GeminiModel
  3. 3Text ClassifierText ClassifierModel
  4. 4PersonalGmailService
  5. 5JobGmailService
  6. 6Study relatedGmailService
  7. 7Bank relatedGmailService
  8. 8Social MessageGmailService
  9. 9OTPGmailService
  10. 10MiscGmailService
  11. 11Error TelegramTelegramService
  12. 12Personal MessageTelegramService
  13. 13JOBTelegramService
  14. 14Study realatedTelegramService
  15. 15Bank RelatedTelegramService
  16. 16Social Message TelegramTelegramService
  17. 17OTP1TelegramService
  18. 18MISCTelegramService
  19. 19No Operation, do nothingNo OpLogic

How it's built

Starts on
An arriving email
Steps
19
Size
Medium: a working afternoon
Connects to
Gmail, Telegram
Model
Gemini

Questions

What does it need to run?

An n8n account, plus your own Gmail and Telegram accounts, and a key for Gemini. 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 Gemini. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

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