# AI email support system: Gmail, Gemini, GPT-4, Slack & Google: n8n workflow

> Started by an arriving email, and works across Gmail, Google Drive, Google Sheets, Pinecone and one other.

Source: https://millionrounds.com/workflow/ai-email-support-system-gmail-gemini-gpt-4-slack-and-google (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)

# AI email support system: Gmail, Gemini, GPT-4, Slack & Google

Started by an arriving email, and works across Gmail, Google Drive, Google Sheets, Pinecone and one other. It puts Gemini and OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 23 steps: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini, OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-email-support-system-gmail-gemini-gpt-4-slack-and-google)

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

**0** Branches: places the flow splits

**0** Loops or waits

**5** Services it connects to

## The flow

Starts it 2 Model 13 Logic 4 Service 4

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

- 1 **OpenAI Classification Model** Lm Chat Open Ai *Model*
- 2 **Gmail Trigger** Gmail trigger *Starts it*
- 3 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 4 **Embeddings OpenAI** Embeddings Open Ai *Model*
- 5 **Google Drive Trigger** Google Drive trigger *Starts it*
- 6 **Recursive Character Text Splitter** Text Splitter Recursive Character Text Splitter *Model*
- 7 **Embeddings OpenAI1** Embeddings Open Ai *Model*
- 8 **Text Classifier** Text Classifier *Model*
- 9 **Technical Support Agent** Agent *Model*
- 10 **Billing Support Agent** Agent *Model*
- 11 **Urgent Escalation Agent** Agent *Model*
- 12 **General Support Agent** Agent *Model*
- 13 **Pinecone Vector Store** Vector Store Pinecone *Model*
- 14 **Google Drive** Google Drive *Service*
- 15 **Default Data Loader** Document Default Data Loader *Model*
- 16 **Pinecone Vector Store1** Vector Store Pinecone *Model*
- 17 **Set Ticket Metadata** Set *Logic*
- 18 **Set Ticket Metadata1** Set *Logic*
- 19 **Set Ticket Metadata3** Set *Logic*
- 20 **Set Ticket Metadata2** Set *Logic*
- 21 **Send Gmail Response** Gmail *Service*
- 22 **Log to Support Dashboard** Google Sheets *Service*
- 23 **Slack Human Escalation** Slack *Service*

## How it's built

- **Starts on:** An arriving email
- **Steps:** 23
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Drive, Google Sheets, Pinecone, Slack
- **Model:** Gemini, OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Drive, Google Sheets, Pinecone and Slack accounts, and a key for Gemini and 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 Gemini and OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 23 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 23 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-email-support-system-gmail-gemini-gpt-4-slack-and-google)
- **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 Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Pinecone](https://millionrounds.com/workflows?service=Pinecone#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

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

- [**Build RAG-powered support agent for Jira issues with Pinecone** 23 steps · calls a model · Pinecone](https://millionrounds.com/workflow/build-rag-powered-support-agent-for-jira-issues-with-pinecon)
- [**Create a WhatsApp customer support bot with OpenAI** 23 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/create-a-whatsapp-customer-support-bot-with-openai)
- [**Draft grounded Gmail support replies from a Notion KB** 23 steps · calls a model · Gmail, Notion](https://millionrounds.com/workflow/draft-grounded-gmail-support-replies-from-a-notion-kb)
- [**Route and triage multi-channel support tickets with OpenAI** 23 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/route-and-triage-multi-channel-support-tickets-with-openai)
- [**WhatsApp customer support bot with OpenAI and Google Sheets** 23 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/whatsapp-customer-support-bot-with-openai-and-google-sheets)
- [**AI WhatsApp support with Gemini and Twilio** 22 steps · calls a model · Airtable, Google Drive](https://millionrounds.com/workflow/ai-whatsapp-support-with-gemini-and-twilio)
