# An email assistant to manage your Gmail inbox with Gemini: n8n workflow

> Started by an arriving email, and works across Email, Gmail, Google Drive and Google Sheets. It hands the judgement calls to Gemini.

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

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

# An email assistant to manage your Gmail inbox with Gemini

Started by an arriving email, and works across Email, Gmail, Google Drive and Google Sheets. It hands the judgement calls to Gemini. 37 steps, 4 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%2Fan-email-assistant-to-manage-your-gmail-inbox-with-gemini)

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

**4** Branches: places the flow splits

**0** Loops or waits

**4** Services it connects to

## The flow

Starts it 1 Model 8 Logic 8 Service 20

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

- 1 **Gmail Trigger1** Gmail trigger *Starts it*
- 2 **Structured Output Parser1** Output Parser Structured *Model*
- 3 **Google Gemini Chat Model3** Lm Chat Google Gemini *Model*
- 4 **Google Gemini Chat Model4** Lm Chat Google Gemini *Model*
- 5 **Structured Output** Output Parser Structured *Model*
- 6 **Google Gemini Chat Model2** Lm Chat Google Gemini *Model*
- 7 **Text Classifier1** Text Classifier *Model*
- 8 **Apply Data Extraction Rules1** Chain Llm *Model*
- 9 **Draft Response Agent** Agent *Model*
- 10 **Add label to message7** Gmail *Service*
- 11 **Check Time Logic** Code *Logic*
- 12 **Add label to message** Gmail *Service*
- 13 **Add label to message6** Gmail *Service*
- 14 **Add label to message4** Gmail *Service*
- 15 **Add label to message5** Gmail *Service*
- 16 **Map Output1** Set *Logic*
- 17 **Can AI Agent Respond?** If *Logic*
- 18 **Setup** Set *Logic*
- 19 **Should Send Reply?** If *Logic*
- 20 **Mark a message as read2** Gmail *Service*
- 21 **Mark a message as read** Gmail *Service*
- 22 **Mark a message as read1** Gmail *Service*
- 23 **Append to Reconciliation Sheet1** Google Sheets *Service*
- 24 **Create a draft1** Gmail *Service*
- 25 **Emails with invoice attachments** If *Logic*
- 26 **Check Reply Type** If *Logic*
- 27 **Add label to message1** Gmail *Service*
- 28 **Upload PDF to Drive** Http Request *Service*
- 29 **Gmail1** Gmail *Service*
- 30 **Send Weekend Auto-Reply** Email Send *Service*
- 31 **Send After Hours Auto-Reply** Email Send *Service*
- 32 **Get Unread Email** Gmail *Service*
- 33 **Rename file** Google Drive *Service*
- 34 **Get Required Fields** Set *Logic*
- 35 **Move to the correct folder** Google Drive *Service*
- 36 **Google Drive1** Google Drive *Service*
- 37 **Extract from File** Extract From File *Service*

## How it's built

- **Starts on:** An arriving email
- **Steps:** 37, with 4 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Email, Gmail, Google Drive, Google Sheets
- **Model:** Gemini

## Questions

What does it need to run?

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

How long does it take to set up?

Take your time. At 37 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 37 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%2Fan-email-assistant-to-manage-your-gmail-inbox-with-gemini)
- **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.

[Email](https://millionrounds.com/workflows?service=Email#library)[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

Also data collection, with the same services where possible, closest in size first.

- [**Automate LinkedIn requests & icebreaker with Browserflow** 37 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/automate-linkedin-requests-and-icebreaker-with-browserflow)
- [**Track n8n workflow changes over time with Google Sheets** 37 steps · Google Sheets](https://millionrounds.com/workflow/track-n8n-workflow-changes-over-time-with-google-sheets)
- [**Central AI agent of an IT company with Gemini and OpenRouter** 39 steps · calls a model · Google Drive, Pinecone](https://millionrounds.com/workflow/central-ai-agent-of-an-it-company-with-gemini-and-openrouter)
- [**Score job listings and generate tailored cover letters** 39 steps · calls a model · Apify, Gmail](https://millionrounds.com/workflow/score-job-listings-and-generate-tailored-cover-letters)
- [**Find and score event and speaker opportunities with Gumloop** 35 steps · Gmail, Postgres](https://millionrounds.com/workflow/find-and-score-event-and-speaker-opportunities-with-gumloop)
- [**Build a Google Drive internal knowledge base with OpenAI** 34 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/build-a-google-drive-internal-knowledge-base-with-openai)
