Automation library · Customer support

Automated customer support system with Gmail

Started by someone submitting a form, and works across Gmail, Google Sheets, Qdrant and Telegram. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 31 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

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

The flow

Starts it 2Model 13Logic 9Service 7

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

  1. 1Gmail Trigger1Gmail triggerStarts it
  2. 2OpenAI Chat Model1Lm Chat Open AiModel
  3. 3Embeddings Mistral CloudEmbeddings Mistral CloudModel
  4. 4OpenAI Chat Model2Lm Chat Open AiModel
  5. 5Embeddings Mistral Cloud1Embeddings Mistral CloudModel
  6. 6Structured Output Parser1Output Parser StructuredModel
  7. 7On form submissionForm triggerStarts it
  8. 8Recursive Character Text SplitterText Splitter Recursive Character Text SplitterModel
  9. 9Embeddings Mistral Cloud2Embeddings Mistral CloudModel
  10. 10Extract Email DataSetLogic
  11. 11AI Analysis AgentAgentModel
  12. 12Qdrant Vector StoreVector Store QdrantModel
  13. 13AI Analysis Agent1AgentModel
  14. 14Qdrant Vector Store1Vector Store QdrantModel
  15. 15create collection1Http RequestService
  16. 16Qdrant Vector Store2Vector Store QdrantModel
  17. 17Default Data Loader1Document Default Data LoaderModel
  18. 18Filter New Customer EmailsIfLogic
  19. 19Process AI AnalysisSetLogic
  20. 20Process AI Analysis1SetLogic
  21. 21Edit Fields1SetLogic
  22. 22Get Thread HistoryGmailService
  23. 23Edit FieldsSetLogic
  24. 24Process Thread HistoryCodeLogic
  25. 25Needs Escalation?IfLogic
  26. 26AggregateAggregateLogic
  27. 27Needs Human Review LabelGmailService
  28. 28Send Automated ReplyGmailService
  29. 29Auto Resolved LabelGmailService
  30. 30Log Ticket to Google SheetsGoogle SheetsService
  31. 31Send Status UpdateTelegramService

How it's built

Starts on
Someone submitting a form
Steps
31, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets, Qdrant, Telegram
Model
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 Sheets, Qdrant and Telegram accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone submitting a form.

Does it use AI?

Yes. It calls 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 31 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 31 steps before you point it at anything that matters.