Automation library · Customer support

Draft grounded Gmail support replies from a Notion KB

Started by an arriving email, and works across Gmail, Notion and in-memory vectors. It puts Groq behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 23 steps, 3 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: GroqRetrieval

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

The flow

Starts it 2Model 11Logic 7Service 3

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

  1. 1Run KB IngestionManual triggerStarts it
  2. 2Split Article Into ChunksText Splitter Recursive Character Text SplitterModel
  3. 3When Support Email ArrivesGmail triggerStarts it
  4. 4Groq Triage ModelLm Chat GroqModel
  5. 5Groq Draft ModelLm Chat GroqModel
  6. 6Embed Articles With CohereEmbeddings CohereModel
  7. 7Embed Query With CohereEmbeddings CohereModel
  8. 8Rerank Matches With CohereReranker CohereModel
  9. 9Get KB ArticlesNotionService
  10. 10Load Article TextDocument Default Data LoaderModel
  11. 11Normalize EmailSetLogic
  12. 12Classify InquiryText ClassifierModel
  13. 13Draft Grounded ReplyChain LlmModel
  14. 14Store KB VectorsVector Store In MemoryModel
  15. 15Retrieve From KBVector Store In MemoryModel
  16. 16Check If PublishedIfLogic
  17. 17Check If AnsweredIfLogic
  18. 18Bundle Retrieved SourcesCodeLogic
  19. 19Get Article BodyNotionService
  20. 20Build Reply With SourcesSetLogic
  21. 21Check Retrieval ConfidenceIfLogic
  22. 22Assemble Article DocumentsCodeLogic
  23. 23Save Draft For ReviewGmailService

How it's built

Starts on
An arriving email
Steps
23, with 3 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Notion, in-memory vectors
Model
Groq
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, Notion and in-memory vectors accounts, and a key for Groq. 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 Groq. 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.