# Triage Gmail and draft replies with OpenAI and Telegram: n8n workflow

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

Source: https://millionrounds.com/workflow/triage-gmail-and-draft-replies-with-openai-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)

# Triage Gmail and draft replies with OpenAI and Telegram

Started by a clock, and works across Gmail and Telegram. It hands the judgement calls to OpenAI. 18 steps, 2 branches: a working afternoon to understand properly.

Medium Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftriage-gmail-and-draft-replies-with-openai-and-telegram)

**18 steps** Medium: a working afternoon

**2** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 2 Model 7 Logic 4 Service 5

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

- 1 **On new email** Gmail trigger *Starts it*
- 2 **Fast model (MiniMax)** Lm Chat Open Ai *Model*
- 3 **Triage schema** Output Parser Structured *Model*
- 4 **Long-context model (Kimi K2)** Lm Chat Open Ai *Model*
- 5 **Every day at 18:00** Schedule trigger *Starts it*
- 6 **Digest model (MiniMax)** Lm Chat Open Ai *Model*
- 7 **Email fields** Set *Logic*
- 8 **Classify and score** Agent *Model*
- 9 **Write reply draft** Agent *Model*
- 10 **Get last 24h emails** Gmail *Service*
- 11 **Write daily digest** Agent *Model*
- 12 **Urgent (80+)?** If *Logic*
- 13 **Draft a reply (70+)?** If *Logic*
- 14 **Save as Gmail draft** Gmail *Service*
- 15 **Compile email list** Code *Logic*
- 16 **Send digest to Telegram** Telegram *Service*
- 17 **Urgent alert to Telegram** Telegram *Service*
- 18 **Draft ready ping** Telegram *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 18, with 2 branches
- **Size:** Medium: a working afternoon
- **Connects to:** Gmail, Telegram
- **Model:** OpenAI

## Questions

What does it need to run?

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

How long does it take to set up?

Plan an afternoon. 18 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 18 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%2Ftriage-gmail-and-draft-replies-with-openai-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.

- [**Automate Gmail labeling with Gemini and Telegram** 18 steps · calls a model · Gmail, Telegram](https://millionrounds.com/workflow/automate-gmail-labeling-with-gemini-and-telegram)
- [**Automated 24/7 crypto news alerts to X, Telegram & Discord** 18 steps · calls a model · Discord, RSS](https://millionrounds.com/workflow/automated-24-7-crypto-news-alerts-to-x-telegram-and-discord)
- [**Crypto alpha scanner with OpenAI** 18 steps · calls a model · Reddit, Telegram](https://millionrounds.com/workflow/crypto-alpha-scanner-with-openai)
- [**Monitor Reddit for sales opportunities with OpenAI** 18 steps · calls a model · Asana, Gmail](https://millionrounds.com/workflow/monitor-reddit-for-sales-opportunities-with-openai)
- [**Monitor brand news and send AI-prioritized digests with Gemini** 18 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/monitor-brand-news-and-send-ai-prioritized-digests-with-gemi)
- [**Monitor negative news for watchlist companies** 18 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/monitor-negative-news-for-watchlist-companies)
