Automation library · Alerts and monitoring

Gmail assistant with Gemini and Telegram

Started by a clock, and works across Gmail and Telegram. It hands the judgement calls to Gemini. 24 steps, 3 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini

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

The flow

Starts it 2Model 10Logic 7Service 5

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

  1. 1Daily 8AM TriggerSchedule triggerStarts it
  2. 2Structured Output ParserOutput Parser StructuredModel
  3. 3Google Gemini Chat Model1Lm Chat Google GeminiModel
  4. 4Google Gemini Chat Model2Lm Chat Google GeminiModel
  5. 5Google Gemini Chat Model3Lm Chat Google GeminiModel
  6. 6Google Gemini Chat Model4Lm Chat Google GeminiModel
  7. 7Structured Output Parser1Output Parser StructuredModel
  8. 8Real-time Email TriggerGmail triggerStarts it
  9. 9Fetch Emails - Past 24 Hours1GmailService
  10. 10AI: Generate Email ReplyAgentModel
  11. 11Summarize Email with AIAgentModel
  12. 12Email SummarizerAgentModel
  13. 13AI Email ClassifierAgentModel
  14. 14Check: Is Email in Inbox?IfLogic
  15. 15Organize Email DataAggregateLogic
  16. 16Telegram: Send + ApproveTelegramService
  17. 17Send Summary to TelegramTelegramService
  18. 18Send Daily ReportTelegramService
  19. 19Route by CategorySwitchLogic
  20. 20Exit: Not in InboxNo OpLogic
  21. 21Check: Telegram Approved?IfLogic
  22. 22Exit: Not ImportantNo OpLogic
  23. 23Send Email ReplyGmailService
  24. 24Exit: Not ApprovedNo OpLogic

How it's built

Starts on
A clock
Steps
24, with 3 branches
Size
Large: read it before trusting it with anything live
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 a clock.

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?

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.