Templates / Draft grounded Gmail support replies from a Notion KB with Groq and Cohere

Draft grounded Gmail support replies from a Notion KB with Groq and Cohere

Ready for 3.0

by Kevin Yu ✓ · 36 views · created 2026-07-03 · Ticket Management, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 23 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Notion, Gmail, Groq Chat Model and Embeddings Cohere and 1 more.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Get KB Articles (Notion): get many (database page)
  2. Normalize Email (Edit Fields (Set)): sets 8 fields: emailSubject, emailBody, senderEmail…
  3. Check If Published (If): checks a condition and branches into true / false
  4. Classify Inquiry (Text Classifier): classifies text into categories with AI, with model: Groq Triage Model
  5. Get Article Body (Notion): get many (block)
  6. Retrieve From KB (Simple Vector Store): searches the Simple vector store, with embeddings: Embed Query With Cohere
  7. Assemble Article Documents (Code): runs custom JavaScript code
  8. Bundle Retrieved Sources (Code): runs custom JavaScript code
  9. Store KB Vectors (Simple Vector Store): stores documents in the Simple vector store, with embeddings: Embed Articles With Cohere; document loader: Load Article Text
  10. Check Retrieval Confidence (If): checks a condition and branches into true / false

…plus 4 more steps. See the full node list below.

Services it uses

NotionGmailGroq Chat ModelEmbeddings CohereReranker Cohere

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (15)

From the author

Quick Overview This workflow ingests published Notion knowledge base articles into an in-memory vector store using Cohere embeddings, then monitors a support Gmail inbox and uses Groq to draft grounded reply emails based only on retrieved KB sources, saving…

Excerpt from Kevin Yu's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.