Vigyata.AI
Is this your channel?

I Built an AI Email Assistant in n8n (Community Challenge)

363 views· 18 likes· 43:33· Mar 23, 2026

🛍️ Products Mentioned (3)

💼 Business owner or operator with a team? We build AI automation systems that cut costs and scale ops — done for you: https://ryanandmattdatascience.com/ai-consultant/ 🚀 Want to make money with AI skills? Join our free community — real projects, real client strategies, and the exact stack we use: https://www.skool.com/data-and-ai Email management is silently eating hours every week — and businesses that haven't automated yet are falling further behind. In this video, I walk you through the complete build of an AI-powered email classifier and autoresponder in n8n, created for the n8n Community Challenge. You'll see every node, every prompt, and every decision so you can deploy this in your own business today. The workflow takes incoming emails, classifies them into categories like pricing, setup, security, HR, escalation, and spam — then automatically drafts and sends the right response using AI. We also cover how to set up evaluations so you can test and measure your workflow's accuracy before going live. TIMESTAMPS 00:00 - The email automation problem (and why it's getting worse) 00:34 - Project overview: what we're building and the challenge brief 01:01 - Setting up two triggers: webhook + evaluation 02:33 - Edit Set nodes: standardizing email fields (from, subject, body) 04:27 - Combining inputs for classification 05:09 - IF node: handling empty or null email bodies 06:39 - Introducing the Text Classifier node 07:11 - Email categories: pricing, setup, security, HR, escalation, spam 07:42 - Configuring the Text Classifier (model, system prompt, batch processing) 09:14 - Writing category descriptions and prompts 11:49 - Response templates and document files 13:22 - Reviewing the provided response documents 15:25 - Model selection and context window considerations 17:27 - Branching logic: auto-respond vs. escalate 19:31 - Handling spam and misdirected emails (no response) 20:31 - AI agent for drafting response emails 21:34 - Building the pricing and product category responses 24:36 - Combining branches with OR logic 26:37 - Testing the full workflow live 27:39 - Setting up the evaluation trigger and test dataset 29:11 - Adding customer context to responses 30:45 - Do-not-respond logic for spam and misdirected 32:17 - Escalation check node 33:18 - Respond to Webhook setup 34:50 - Google Sheets output for tracking evaluation results 35:52 - Reviewing evaluation results and accuracy scoring 39:23 - Advanced evaluation setup 40:24 - Full build recap 41:25 - Final live test demo 42:27 - Outro OTHER SOCIALS: 🌐 Website & Blog: https://ryanandmattdatascience.com/ Ryan’s LinkedIn: https://www.linkedin.com/in/ryan-p-nolan/ Matt’s LinkedIn: https://www.linkedin.com/in/matt-payne-ceo/ Twitter/X: https://x.com/RyanMattDS *This is an affiliate program. We receive a small portion of the final sale at no extra cost to you. #n8nChallenge

About This Video

Email management is one of those sneaky ops problems that just steals hours every week—and it gets worse as volume climbs. In this build, I walk through the exact n8n workflow I made for the n8n Community Challenge: an AI email classifier + autoresponder that takes an incoming email (from/subject/body), routes it into the right bucket, and drafts (or sends) the right reply. I show every node, every prompt, and the decisions behind the architecture so you can deploy the same pattern in your own business today. I start with two triggers (a webhook for real inbound emails and an evaluation trigger for testing), then standardize fields with Edit Set nodes so webhook data and test-set data look identical. From there I add an IF guard for empty bodies, then use the Text Classifier node to label emails into categories like pricing, setup, security, HR, escalations, spam, and misdirected—using subject + body with clear category descriptions and tie-breakers. After classification, I selectively pull only the relevant Google Sheets docs for that category (instead of stuffing everything into the model), convert multi-row sheets into a single “document text” via small JavaScript code nodes, merge/concatenate where needed, and feed that into an agent to draft the reply with structured output. The big takeaway: make the classifier rock-solid first, keep context targeted, and set up evaluations so you measure accuracy before you let it run live.

Frequently Asked Questions

🎬 More from Ryan & Matt Data Science