# Email sorting & drafting for customer support with Gemini: n8n workflow

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

Source: https://millionrounds.com/workflow/email-sorting-and-drafting-for-customer-support-with-gemini (Millionrounds; every figure on the page links to its filing or article)

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

# Email sorting & drafting for customer support with Gemini

Started by a clock, and works across Gmail and Google Sheets. It hands the judgement calls to Gemini. 26 steps, 2 branches, 2 loops or waits: 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%2Femail-sorting-and-drafting-for-customer-support-with-gemini)

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

**2** Branches: places the flow splits

**2** Loops or waits

**2** Services it connects to

## The flow

Starts it 2 Model 6 Logic 7 Service 11

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

- 1 **Schedule Trigger** Schedule trigger *Starts it*
- 2 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 3 **Google Sheets** Google Sheets Tool *Service*
- 4 **Schedule Trigger1** Schedule trigger *Starts it*
- 5 **Google Gemini Chat Model1** Lm Chat Google Gemini *Model*
- 6 **Google Gemini Chat Model2** Lm Chat Google Gemini *Model*
- 7 **Q&A table as a resource** Google Sheets Tool *Service*
- 8 **Read inbox messages** Gmail *Service*
- 9 **AI Agent - checks if e mail is FAQ related** Agent *Model*
- 10 **Read messages from FAQ Waiting folder** Gmail *Service*
- 11 **AI Agent - draft a reply to FAQ Question** Agent *Model*
- 12 **AI Agent - checks if e-mail is Inbound related** Agent *Model*
- 13 **Loop Over Items** Split In Batches *Logic*
- 14 **Q&A e-mail?** If *Logic*
- 15 **Loop Over Items1** Split In Batches *Logic*
- 16 **Remove from FAQ Waiting** Gmail *Service*
- 17 **Inbound e-mail?** If *Logic*
- 18 **Html to Markdown** Markdown *Logic*
- 19 **Remove from inbox** Gmail *Service*
- 20 **Markdown1** Markdown *Logic*
- 21 **Add Label FAQ Draft** Gmail *Service*
- 22 **Remove from inbox 2** Gmail *Service*
- 23 **Add Label FAQ Waiting** Gmail *Service*
- 24 **Set E-mail Fields** Set *Logic*
- 25 **Add Label Inbound** Gmail *Service*
- 26 **Draft reply** Gmail *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 26, with 2 branches, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets
- **Model:** Gemini

## Questions

What does it need to run?

An n8n account, plus your own Gmail 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 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 26 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 26 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%2Femail-sorting-and-drafting-for-customer-support-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.

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

## Workflows like it

Also customer support, with the same services where possible, closest in size first.

- [**Run a WhatsApp customer support chatbot with OpenWA and OpenAI** 26 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/run-a-whatsapp-customer-support-chatbot-with-openwa-and-open)
- [**Answer Telegram data questions with DeepSeek and Open-Meteo** 25 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/answer-telegram-data-questions-with-deepseek-and-open-meteo)
- [**Automate customer support with Slack and CRM** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-customer-support-with-slack-and-crm)
- [**Chatbot for customer support and appointment scheduling** 25 steps · calls a model · Google Calendar, Google Sheets](https://millionrounds.com/workflow/chatbot-for-customer-support-and-appointment-scheduling)
- [**Turn emails into AI-enhanced tasks in Notion (multi-user support)** 25 steps · calls a model · Airtable, Gmail](https://millionrounds.com/workflow/turn-emails-into-ai-enhanced-tasks-in-notion-multi-user-supp)
- [**Automate Airbnb guest support with OpenAI and Google Drive** 24 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/automate-airbnb-guest-support-with-openai-and-google-drive)
