Back to Workflows

AI Email Dispatcher: Classify, Process, and Route Emails with Multiple Agents

Last updated: April 20, 2026

AI Email Dispatcher n8n workflow diagram — classifies and routes emails with multiple OpenAI agents
Download the Free Workflow

Built and tested by Gurey AI — free to download and deploy on your own n8n

About This Workflow

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 draft a reply and send it for internal or customer support emails, or generate a summary, notification, or draft reply for a human to review for Sales, Finance, and Promotions emails.

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 categorise 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, specialised OpenAI Agent based on the classification. Each AI Agent has a custom system prompt 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 takes about 10–15 minutes: You will need two Gmail credentials (one for the trigger, one for actions), an OpenAI API Key connected to the five LLM Agent nodes, and Telegram or Slack credentials for sales and finance notifications. You should also create the required Gmail labels (Internal, Customer Support, Promotions, Admin/Finance, Sales Opportunity) before activating the workflow.

Estimated cost per run: ~$0.003 - $0.05 per email processed, depending heavily on the length of the email thread and which models you route to.

Beyond your inbox: If you also manage high-ticket calls, pair this with our Smart Calendar System to fully automate your scheduling.

Requires:
  • Gmail Account
  • OpenAI Account
  • Telegram or Slack
  • n8n instance

Frequently
Asked
Questions

Everything you need to know before getting started.

For busy business owners

Want custom automations built for your business?

These free workflows are only a fraction of what we build for clients. Let's talk about what we can automate for you.

Book a Free Call