Automation library · Customer support

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.

LargeCalls a model: Gemini, OpenAIRetrieval

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

The flow

Starts it 2Model 13Logic 4Service 4

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

  1. 1OpenAI Classification ModelLm Chat Open AiModel
  2. 2Gmail TriggerGmail triggerStarts it
  3. 3Google Gemini Chat ModelLm Chat Google GeminiModel
  4. 4Embeddings OpenAIEmbeddings Open AiModel
  5. 5Google Drive TriggerGoogle Drive triggerStarts it
  6. 6Recursive Character Text SplitterText Splitter Recursive Character Text SplitterModel
  7. 7Embeddings OpenAI1Embeddings Open AiModel
  8. 8Text ClassifierText ClassifierModel
  9. 9Technical Support AgentAgentModel
  10. 10Billing Support AgentAgentModel
  11. 11Urgent Escalation AgentAgentModel
  12. 12General Support AgentAgentModel
  13. 13Pinecone Vector StoreVector Store PineconeModel
  14. 14Google DriveGoogle DriveService
  15. 15Default Data LoaderDocument Default Data LoaderModel
  16. 16Pinecone Vector Store1Vector Store PineconeModel
  17. 17Set Ticket MetadataSetLogic
  18. 18Set Ticket Metadata1SetLogic
  19. 19Set Ticket Metadata3SetLogic
  20. 20Set Ticket Metadata2SetLogic
  21. 21Send Gmail ResponseGmailService
  22. 22Log to Support DashboardGoogle SheetsService
  23. 23Slack Human EscalationSlackService

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.