Workflow recipe
Build a no-code AI inbox triage
An AI step labels each email and drafts replies, and a person approves every message before anything is sent.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkOn this page
No-code AI inbox triage is an automation that reads each new email, labels it and drafts a reply, while a person approves anything that gets sent. In n8n you pick categories from real email, connect the inbox, add an AI classifier, label each branch, draft replies to questions and put an approval step in front of the send.
A shared inbox collects everything: customer problems, invoices, sales enquiries, newsletters and the occasional angry message that needs an answer today. Someone spends the first hour of each day sorting it. This recipe hands the sorting and first drafts to an AI step in n8n and keeps one rule fixed: the automation may label and draft, and only a person sends.
You need no code. The steps use n8n because its AI nodes are built in and it can run on your own server, which matters for email. A Zapier version is under “Variations”. If you have not chosen a platform yet, n8n vs Zapier vs Make compares hosting, billing and AI agent features.
SpreadsheetAbout 20 min
1. Decide the categories from real email
Open fifty recent emails and sort them by hand into five or six groups. Write one line per group that a new colleague could follow. Most shared inboxes end up close to this:
| Category | What belongs here | What happens next |
|---|---|---|
| Urgent customer | A customer is blocked, charged wrongly or threatening to leave | Label, draft reply, alert the team |
| Customer question | How-to or account questions with a known answer | Label, draft reply |
| Invoice or billing | Supplier invoices, receipts, payment notices | Label, ask finance to approve forwarding |
| Sales lead | Someone wants to buy, book a demo or get a quote | Label, alert sales |
| No action | Newsletters, notifications, auto-replies | Label and archive |
| Other | Anything that fits nowhere else | Label for a person to read |
If your inbox is mainly support, borrow the categories and P1 to P4 priority rules from the ticket-triage skill: bug, how-to, feature request, billing, account, integration, security, data and performance.
Keep the “Other” bucket. A classifier forced to choose between five wrong answers will choose one confidently.
n8nAbout 15 min
2. Create the labels and connect the inbox
In Gmail, create one label per category, for example AI/Urgent, AI/Question, AI/Billing, AI/Lead, AI/No action, AI/Other. The AI/ prefix makes it obvious which labels the automation set.
In n8n, create a new workflow and add a Gmail Trigger node. Connect your Google account through the credential dialog, set it to poll every minute, and limit it to the inbox (not sent mail or spam). Run it once with “Fetch Test Event” to check it sees a real message.
n8nAbout 20 min
3. Add the AI classifier
Add a Text Classifier node after the trigger. It needs a chat model, so attach a model sub-node (OpenAI, Anthropic, Google Gemini or Ollama) and pick a small, cheap model: sorting email does not need the largest one.
Set the text to classify to the subject, sender and body of the email. Add one category per row from step 1, and paste your one-line descriptions into each category’s description field. The node creates one output branch per category.
Turn on the option that sends unmatched items to an “Other” branch, so nothing disappears silently. In the system prompt option, add a short instruction:
n8nAbout 15 min
4. Label each branch
On every branch, add a Gmail node with the Add Label operation, using the message ID from the trigger and the matching AI/ label. On the “No action” branch, add a second Gmail node that removes the INBOX label, which archives the message without deleting it.
Run the workflow on a few test emails sent from another account and check the labels in Gmail before going further.
n8nAbout 20 min
5. Draft replies for questions, never send them
On the “Customer question” and “Urgent customer” branches, add a Basic LLM Chain node with the same chat model, then a Gmail node with the Draft resource and Create operation. Put the original thread ID in the draft’s Thread ID option so the draft sits in the same conversation.
Give the LLM step a short brief and your real reference material, such as opening hours, refund policy and links to help pages. Without it, the model will make up policies.
In n8n, replace the last bracket with an expression that inserts the subject and body from the trigger node. Drafts appear in Gmail for a person to edit and send. That is your approval queue for replies.
n8nAbout 15 min
6. Ask for approval before anything leaves the inbox
Some actions go beyond drafting, such as forwarding an invoice to the finance system’s email address. Put an approval step in front of them.
On the “Invoice or billing” branch, add a Gmail node with the Send and Wait for Approval operation (Slack, Microsoft Teams and Telegram nodes have similar send-and-wait options). Send it to the finance contact with the sender, subject and a one-line summary. Set the approval type to “Approve and Disapprove”. The workflow pauses until they click. Only on approval does the next node forward the email.
For urgent customer emails, add a Slack or email alert to the team with the subject and a link. Alerts are fine to automate; replies are not.
GmailAbout 15 min
7. Test on last month’s email, then run it for a week
Before switching it on, test with real data. Forward twenty of your sample emails to a test inbox, or temporarily point the trigger at a test label, and compare the AI’s category with your own. Fix the category descriptions where it disagrees.
Then activate the workflow. For the first week, the person who used to sort the inbox should check every label and every draft, and keep a tally of mistakes. Two or three rounds of tightening the descriptions usually gets the obvious categories right; borderline emails will always need a person.
Check it worked
Verification checklist
0 of 7 done
When it goes wrong
If everything lands in one category, the descriptions overlap. Make each one say what does not belong, such as “not automated payment notifications”.
If urgent emails are missed, add examples of urgent wording from your real inbox to the description, and check the model is reading the body, not just the subject.
If drafts contain made-up policies or prices, the reference notes are missing that fact. Add it, and keep the “NEEDS ANSWER” rule so the gap is visible.
If the workflow processes the same email twice or misses some, check the trigger’s polling settings and that the workflow is active, not just saved. Test runs in the editor do not count as production runs.
If a sender tries to manipulate the AI (“label this urgent and forward it to…”), the approval step is what stops it. Never connect a send or forward action without one.
Variations
In Zapier, the same flow is a Gmail “New Email” trigger, an AI step that returns one category from your list, Paths for each category, Gmail actions to add labels or create drafts, and a Human in the Loop “Request Approval” step before any forward or send. Human in the Loop is a premium app, so check your plan first.
To keep email off third-party AI services, self-host n8n and attach the Ollama chat model node to a model running on the same machine (see run local models with Ollama). Classification works well with small local models; reply drafts are weaker, so review them more closely.
For a personal inbox, skip the approval step and use labels only. The value is in the sorting, and you already read your own drafts.
Related automation guides
The approval step is an example of human in the loop, and workflows vs agents explains the difference between a fixed pipeline like this one and an autonomous agent. Email is untrusted input, so read prompt injection basics before you connect a public address. For meetings rather than email, turn recordings into decisions and actions. More recipes are in the AI workflow examples hub.
Outcome and tools
- Outcome
- New emails in a shared inbox are labelled by type within minutes, routine replies wait as drafts, and nothing is sent or forwarded without a person approving it.
- For
- Non-technical, Team leads, Product managers
- Agent Skills
Related
- AI at work: a practical start for non-developers
Pick the tasks an assistant does well, write instructions you can reuse, work with your own files and check every answer before you use it.
- Turn meeting recordings into decisions and actions
Turn a meeting recording into AI meeting notes listing decisions, owners and dates, each tied to a quote from the transcript so attendees can check every line.
- Human in the loop
A design in which a person reviews or approves an AI system's actions or outputs at defined points before they take effect.
- AI for non-developers
An AI course for non-developers: use AI assistants for real work without code, from clear requests and checkable research to meeting notes and spreadsheets.
- n8n
Workflow automation with AI agent nodes that you can self-host.