# Gmail assistant with Gemini and Telegram: n8n workflow template

> Started by a clock, and works across Gmail and Telegram. It hands the judgement calls to Gemini.

Source: https://millionrounds.com/workflow/gmail-assistant-with-gemini-and-telegram (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# 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.

Large Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgmail-assistant-with-gemini-and-telegram)

**24 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 2 Model 10 Logic 7 Service 5

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

- 1 **Daily 8AM Trigger** Schedule trigger *Starts it*
- 2 **Structured Output Parser** Output Parser Structured *Model*
- 3 **Google Gemini Chat Model1** Lm Chat Google Gemini *Model*
- 4 **Google Gemini Chat Model2** Lm Chat Google Gemini *Model*
- 5 **Google Gemini Chat Model3** Lm Chat Google Gemini *Model*
- 6 **Google Gemini Chat Model4** Lm Chat Google Gemini *Model*
- 7 **Structured Output Parser1** Output Parser Structured *Model*
- 8 **Real-time Email Trigger** Gmail trigger *Starts it*
- 9 **Fetch Emails - Past 24 Hours1** Gmail *Service*
- 10 **AI: Generate Email Reply** Agent *Model*
- 11 **Summarize Email with AI** Agent *Model*
- 12 **Email Summarizer** Agent *Model*
- 13 **AI Email Classifier** Agent *Model*
- 14 **Check: Is Email in Inbox?** If *Logic*
- 15 **Organize Email Data** Aggregate *Logic*
- 16 **Telegram: Send + Approve** Telegram *Service*
- 17 **Send Summary to Telegram** Telegram *Service*
- 18 **Send Daily Report** Telegram *Service*
- 19 **Route by Category** Switch *Logic*
- 20 **Exit: Not in Inbox** No Op *Logic*
- 21 **Check: Telegram Approved?** If *Logic*
- 22 **Exit: Not Important** No Op *Logic*
- 23 **Send Email Reply** Gmail *Service*
- 24 **Exit: Not Approved** No Op *Logic*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgmail-assistant-with-gemini-and-telegram)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**Monitor & manage Docker containers with Telegram** 24 steps · calls a model · Telegram](https://millionrounds.com/workflow/monitor-and-manage-docker-containers-with-telegram)
- [**Monitor brand mentions and draft crisis responses with OpenAI** 24 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/monitor-brand-mentions-and-draft-crisis-responses-with-opena)
- [**Monitor competitor prices and send OpenAI analysis alerts** 24 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/monitor-competitor-prices-and-send-openai-analysis-alerts)
- [**Monitor supplier risk daily with Groq and Google Sheets** 24 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/monitor-supplier-risk-daily-with-groq-and-google-sheets)
- [**Monitor supply chain risk news with Claude and Telegram** 24 steps · calls a model · RSS, Telegram](https://millionrounds.com/workflow/monitor-supply-chain-risk-news-with-claude-and-telegram)
- [**Send rent reminders and landlord alerts with OpenAI** 24 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/send-rent-reminders-and-landlord-alerts-with-openai)
