Automation library · Data collection

AI Auto-Reply for Missed Customer Emails with Gmail and OpenAI

Started by an arriving email, and works across Gmail and Google Sheets. It hands the judgement calls to OpenAI. 17 steps, 1 branch, 1 loop or waits: a working afternoon to understand properly.

MediumCalls a model: OpenAI

17 stepsMedium: a working afternoon
1Branch: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 1Model 5Logic 6Service 5

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

  1. 1Watch Gmail for New Incoming EmailsGmail triggerStarts it
  2. 2OpenAI Chat ModelLm Chat Open AiModel
  3. 3OpenAI Chat Model1Lm Chat Open AiModel
  4. 4Structured Output ParserOutput Parser StructuredModel
  5. 5Google Sheets FAQ ToolGoogle Sheets ToolService
  6. 6Inquiry FilterText ClassifierModel
  7. 7Reply Generator AI AgentAgentModel
  8. 8Extract Email MetadataCodeLogic
  9. 9No Action NeededNo OpLogic
  10. 10Format HTML EmailCodeLogic
  11. 11Wait 30 MinutesWaitLogic
  12. 12Send Auto-ReplyGmailService
  13. 13Get Thread MessagesGmailService
  14. 14Log to CRM SheetGoogle SheetsService
  15. 15Check for Team ReplyCodeLogic
  16. 16Has Human Replied?IfLogic
  17. 17Log Human HandledGoogle SheetsService

How it's built

Starts on
An arriving email
Steps
17, with 1 branch, 1 loop or waits
Size
Medium: a working afternoon
Connects to
Gmail, Google Sheets
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail and Google Sheets 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?

Plan an afternoon. 17 steps is enough that you should read each one before running it.

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 17 steps before you point it at anything that matters.