Ai-powered email triage & auto-response system with OpenAI agents & Gmail
AI Email Dispatcher: Classify, Process, and Route Emails with Multiple Agents This n8n template automatically classifies incoming emails (Sales, Support, Internal, Finance, Promotions) and routes them to a dedicated O...
Template notes
AI Email Dispatcher: Classify, Process, and Route Emails with Multiple Agents
This n8n template automatically classifies incoming emails (Sales, Support, Internal, Finance, Promotions) and routes them to a dedicated OpenAI LLM Agent for processing. Depending on the category, the agent will then:
Internal/Customer Support: Draft a reply and send it. Sales/Finance/Promotions: Generate a summary, notification, or draft reply for a human to review.
This is the ultimate workflow for managing a high volume of emails, ensuring every message gets a fast, appropriate, and structured AI-powered response or initial analysis.
How it works
The Gmail Trigger node monitors your inbox for unread emails. The Text Classifier node uses AI to read the email body and subject to categorize it as Internal, Customer Support, Sales, Promotions, or Admin/Finance. The workflow then uses a Split In Batches node and multiple If nodes to send the email data to a specific, specialized OpenAI Agent (LLM node) based on the classification. Each AI Agent has a custom system prompt (e.g., "Customer Support Agent," "Promotions Analyst") to ensure it processes the email with the right rules, tone, and output format. Finally, the workflow either automatically replies via Gmail (for Internal and Support) or creates a draft/summary and sends a notification (for Sales, Finance, and Promotions) for human review.
Set up steps
Setting up the accounts and nodes should take about 10–15 minutes.