# Triage Gmail and draft replies with EdenAI: n8n workflow

> Started by a clock, and works across Discord and Gmail. It hands the judgement calls to a language model.

Source: https://millionrounds.com/workflow/triage-gmail-and-draft-replies-with-edenai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Chat assistants](https://millionrounds.com/workflows?category=Chat+assistants#library)

# Triage Gmail and draft replies with EdenAI

Started by a clock, and works across Discord and Gmail. It hands the judgement calls to a language model. 15 steps, 2 branches: a working afternoon to understand properly.

Medium Calls a model

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

**15 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 2 Logic 5 Service 6

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

- 1 **Every 2h (business hours)** Schedule trigger *Starts it*
- 2 **Eden AI Chat Model** Lm Chat Eden Ai *Model*
- 3 **Error Trigger** Error trigger *Starts it*
- 4 **Gmail: get unread** Gmail *Service*
- 5 **Connection to EdenAI** Agent *Model*
- 6 **Send a message** Discord *Service*
- 7 **Do you have unread e-mail** If *Logic*
- 8 **Does it need a reply?** If *Logic*
- 9 **Discord: No unread e-mail received** Discord *Service*
- 10 **Gmail: create draft** Gmail *Service*
- 11 **Merge draft link + sumary content** Merge *Logic*
- 12 **Aggregate** Aggregate *Logic*
- 13 **To have only one message from the discord bot** Aggregate *Logic*
- 14 **Discord: Low priority digest** Discord *Service*
- 15 **Discord: send summary and draft** Discord *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 15, with 2 branches
- **Size:** Medium: a working afternoon
- **Connects to:** Discord, Gmail
- **Model:** A language model, family not declared

## Questions

What does it need to run?

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

How long does it take to set up?

Plan an afternoon. 15 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 15 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-edenai)
- **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.

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

## Workflows like it

Also chat assistants, with the same services where possible, closest in size first.

- [**Automate Client Onboarding with Asana and Slack** 15 steps · calls a model · Asana, Gmail](https://millionrounds.com/workflow/automate-client-onboarding-with-asana-and-slack)
- [**Automate email responses with OpenAI and Telegram** 15 steps · calls a model · Gmail, Telegram](https://millionrounds.com/workflow/automate-email-responses-with-openai-and-telegram)
- [**Check Japanese ad copy compliance with Gemini and Sheets** 15 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/check-japanese-ad-copy-compliance-with-gemini-and-sheets)
- [**Classify Gmail intents with Gemini and Slack** 15 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/classify-gmail-intents-with-gemini-and-slack)
- [**Classify purchase requisitions with Gemini and Gmail** 15 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/classify-purchase-requisitions-with-gemini-and-gmail)
- [**Classify supplier diversity and suggest replacements with Groq** 15 steps · calls a model · Gmail, Notion](https://millionrounds.com/workflow/classify-supplier-diversity-and-suggest-replacements-with-gr)
