Automation library · Customer support

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.

LargeCalls a model: Gemini

26 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
2Loops or waits
2Services it connects to

The flow

Starts it 2Model 6Logic 7Service 11

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

  1. 1Schedule TriggerSchedule triggerStarts it
  2. 2Google Gemini Chat ModelLm Chat Google GeminiModel
  3. 3Google SheetsGoogle Sheets ToolService
  4. 4Schedule Trigger1Schedule triggerStarts it
  5. 5Google Gemini Chat Model1Lm Chat Google GeminiModel
  6. 6Google Gemini Chat Model2Lm Chat Google GeminiModel
  7. 7Q&A table as a resourceGoogle Sheets ToolService
  8. 8Read inbox messagesGmailService
  9. 9AI Agent - checks if e mail is FAQ relatedAgentModel
  10. 10Read messages from FAQ Waiting folderGmailService
  11. 11AI Agent - draft a reply to FAQ QuestionAgentModel
  12. 12AI Agent - checks if e-mail is Inbound relatedAgentModel
  13. 13Loop Over ItemsSplit In BatchesLogic
  14. 14Q&A e-mail ?IfLogic
  15. 15Loop Over Items1Split In BatchesLogic
  16. 16Remove from FAQ WaitingGmailService
  17. 17Inbound e-mail ?IfLogic
  18. 18Html to MarkdownMarkdownLogic
  19. 19Remove from inboxGmailService
  20. 20Markdown1MarkdownLogic
  21. 21Add Label FAQ DraftGmailService
  22. 22Remove from inbox 2GmailService
  23. 23Add Label FAQ WaitingGmailService
  24. 24Set E-mail FieldsSetLogic
  25. 25Add Label InboundGmailService
  26. 26Draft replyGmailService

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.