✉️ Automated email sorting & drafting for customer support - with AI 🤖
Needs changesWhat this workflow does
This AI workflow has 26 nodes and runs on a schedule (every day) (plus 1 other trigger). Along the way it connects Google Gemini Chat Model, Google Sheets and Gmail.
How it runs
Trigger: On a schedule (every day) (plus 1 other trigger).
- Read inbox messages (Gmail): uses Gmail
- Read messages from FAQ Waiting folder (Gmail): uses Gmail
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Html to Markdown (Markdown): converts between Markdown and HTML
- Markdown: converts between Markdown and HTML
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model; 1 tool (Google Sheets)
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model; 1 tool (Q&A table as a resource)
- Q&A e-mail ? (If): checks a condition and branches into true / false
- Remove from FAQ Waiting (Gmail): uses Gmail
…plus 9 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Agent - checks if e mail is FAQ related (v1.9), AI Agent - checks if e-mail is Inbound related (v1.9), AI Agent - draft a reply to FAQ Question (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent - checks if e mail is FAQ related (v1.9), AI Agent - checks if e-mail is Inbound related (v1.9), AI Agent - draft a reply to FAQ Question (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - Markdown
n8n-nodes-base.markdown - Gmail
n8n-nodes-base.gmail - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent
From the author
🤖 Automated Email Sorting & FAQ Reply Assistant (n8n + Gemini AI) 🔍 Overview This n8n workflow automates email triage and FAQ responses using Google Sheets and Gemini AI. It’s designed to: - Automatically sort incoming emails into categories (e.g., FAQ,…