# AI-powered email inbox manager with OpenAI and Gmail: n8n workflow

> Started by an arriving email, and works across Gmail and Slack. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/ai-powered-email-inbox-manager-with-openai-and-gmail (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)

# AI-powered email inbox manager with OpenAI and Gmail

Started by an arriving email, and works across Gmail and Slack. It hands the judgement calls to OpenAI. 21 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-powered-email-inbox-manager-with-openai-and-gmail)

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

**1** Branch: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 7 Logic 1 Service 12

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

- 1 **Gmail Trigger** Gmail trigger *Starts it*
- 2 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 3 **Slack** Slack *Service*
- 4 **Create a draft2** Gmail *Service*
- 5 **Create a draft1** Gmail *Service*
- 6 **Slack1** Slack *Service*
- 7 **Create a draft3** Gmail *Service*
- 8 **Text Classifier** Text Classifier *Model*
- 9 **Internal** Gmail *Service*
- 10 **Customer Support** Gmail *Service*
- 11 **Promotion** Gmail *Service*
- 12 **Admin/Finance** Gmail *Service*
- 13 **Sales Opportunity** Gmail *Service*
- 14 **Message a model1** Open Ai *Model*
- 15 **Message a model2** Open Ai *Model*
- 16 **Message a model** Open Ai *Model*
- 17 **Message a model3** Open Ai *Model*
- 18 **Message a model4** Open Ai *Model*
- 19 **Create a draft** Gmail *Service*
- 20 **If** If *Logic*
- 21 **Mark a message as read1** Gmail *Service*

## How it's built

- **Starts on:** An arriving email
- **Steps:** 21, with 1 branch
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Slack
- **Model:** OpenAI

## Questions

What does it need to run?

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

How long does it take to set up?

Take your time. At 21 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 21 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%2Fai-powered-email-inbox-manager-with-openai-and-gmail)
- **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)[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

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

- [**Analyze Amazon review gaps with Bright Data and OpenAI** 21 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/analyze-amazon-review-gaps-with-bright-data-and-openai)
- [**Create Kubernetes resources from Slack with Claude** 21 steps · calls a model · Slack](https://millionrounds.com/workflow/create-kubernetes-resources-from-slack-with-claude)
- [**Curate tech news from RSS with OpenAI and Google Sheets** 21 steps · calls a model · Google Sheets, RSS](https://millionrounds.com/workflow/curate-tech-news-from-rss-with-openai-and-google-sheets)
- [**Daily news digest & weekly trends with Slack and Google Sheets** 21 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/daily-news-digest-and-weekly-trends-with-slack-and-google-sh)
- [**Diagnose website friction with Microsoft Clarity** 21 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/diagnose-website-friction-with-microsoft-clarity)
- [**Triage and remediate Kubernetes incidents with Claude** 21 steps · calls a model · Slack](https://millionrounds.com/workflow/triage-and-remediate-kubernetes-incidents-with-claude)
