Automation library · Customer support

Automated customer support with OpenAI and Gmail

Started by a change in a Google Sheet, and works across Gmail, Google Sheets and Slack. It hands the judgement calls to OpenAI. 14 steps, 2 branches: a working afternoon to understand properly.

MediumCalls a model: OpenAI

14 stepsMedium: a working afternoon
2Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 4Logic 6Service 3

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

  1. 1Google Form Responses TriggerGoogle Sheets triggerStarts it
  2. 2Map Form Column NamesSetLogic
  3. 3Analyze with AI TriageOpen AiModel
  4. 4Parse AI Analysis ResultsCodeLogic
  5. 5Route by Priority LevelSwitchLogic
  6. 6Generate Urgent ResponseOpen AiModel
  7. 7Generate Standard ResponseOpen AiModel
  8. 8Generate Friendly ResponseOpen AiModel
  9. 9Extract Email Subject and BodyCodeLogic
  10. 10Send Auto-Reply via GmailGmailService
  11. 11Prepare Data for TrackingSetLogic
  12. 12Is High Priority?IfLogic
  13. 13Alert Team on SlackSlackService
  14. 14Log to Tracking SheetGoogle SheetsService

How it's built

Starts on
A change in a Google Sheet
Steps
14, with 2 branches
Size
Medium: a working afternoon
Connects to
Gmail, Google Sheets, Slack
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and Slack accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a change in a Google Sheet.

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