n8n template: AI inbox triage with a human review step by Changhee Leen8n template: AI inbox triage with a human review step by Changhee Lee

n8n template: AI inbox triage with a human review step

Portfolio project
Changhee Lee
My own project, not client work. An n8n workflow template that sorts incoming support email with an AI model, but only acts on answers that pass a validation check.
What it does: new Gmail messages are cleaned up (quoted replies and long bodies removed) and sent to an AI chat model that returns a category, priority, confidence and one-line summary as JSON. The email is labeled automatically only when the answer is valid JSON, the category is in your list and the confidence is at or above your threshold. Everything else goes to a Slack review message that explains why. Nothing is deleted, sent or replied to.
How it was tested: 39 sandbox scenarios, then a live run with a real Gmail inbox, OpenAI gpt-4o-mini and a real Slack workspace. The live run found a real gap: a prompt-injection email made the model answer with an allowed category and high confidence, so it would have been auto-labeled. I added a check for AI-instruction patterns so those emails always go to a human, and documented the limit.
Status: queued for the official n8n template library (n8n reviews one template at a time for new creators). Built and tested by AI agents under my written QA checklist; I am accountable for the result.

0 likes · 0 views · Nov 26, 2026

Own project: an n8n template that triages Gmail with AI, validates the answer and sends unsure or suspicious emails to Slack for a human. Live-tested.

Tags