# Email support agent w/ Gemini & GPT fallback with Gmail: n8n workflow

> Started by an arriving email, and works across Gmail and Google Sheets. It puts Gemini and OpenAI behind a retrieval step, so answers are drawn from...

Source: https://millionrounds.com/workflow/email-support-agent-w-gemini-and-gpt-fallback-with-gmail (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 support agent w/ Gemini & GPT fallback with Gmail

Started by an arriving email, and works across Gmail and Google Sheets. It puts Gemini and OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 7 steps: small enough to read in one sitting and change without fear.

Small Calls a model: Gemini, OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Femail-support-agent-w-gemini-and-gpt-fallback-with-gmail)

**7 steps** Small: readable in one sitting

**0** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 4 Service 2

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

- 1 **Gmail Trigger** Gmail trigger *Starts it*
- 2 **Simple Memory** Memory Buffer Window *Model*
- 3 **Append or update row in sheet in Google Sheets** Google Sheets Tool *Service*
- 4 **OpenAI Model** Lm Chat Open Ai *Model*
- 5 **Gemini Chat Model** Lm Chat Google Gemini *Model*
- 6 **AI Agent** Agent *Model*
- 7 **Reply to a message(Thread)** Gmail *Service*

## How it's built

- **Starts on:** An arriving email
- **Steps:** 7
- **Size:** Small: readable in one sitting
- **Connects to:** Gmail, Google Sheets
- **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 and Google Sheets 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?

Not long. At 7 steps it can be read in one sitting and changed without fear.

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 7 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-support-agent-w-gemini-and-gpt-fallback-with-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)[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.

- [**Answer WhatsApp support queries with OpenAI and 2Chat** 7 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/answer-whatsapp-support-queries-with-openai-and-2chat)
- [**Customer support appointment sechduler FAQ bot with OpenAI** 7 steps · calls a model · Airtable, Gmail](https://millionrounds.com/workflow/customer-support-appointment-sechduler-faq-bot-with-openai)
- [**Smart sales support chatbot with Google Sheets** 7 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/smart-sales-support-chatbot-with-google-sheets)
- [**Triage support tickets and send AI replies with OpenAI** 7 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/triage-support-tickets-and-send-ai-replies-with-openai)
- [**Answer WhatsApp keyword FAQs with Twilio and Google Sheets** 7 steps · Google Sheets, Twilio](https://millionrounds.com/workflow/answer-whatsapp-keyword-faqs-with-twilio-and-google-sheets)
- [**Automated e-Ticket PDF Generation with QR Codes** 7 steps · Google Docs, Google Drive](https://millionrounds.com/workflow/automated-e-ticket-pdf-generation-with-qr-codes)
