Templates / Smart email classifier & auto-responder with AI

Smart email classifier & auto-responder with AI

Needs changes

by Ian Dikhtiar ✓ · 1,888 views · created 2025-03-20 · Ticket Management, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 22 nodes and runs on Gmail events. Along the way it connects Azure OpenAI Chat Model, Gmail, Telegram and Google Calendar.

How it runs

Trigger: On Gmail events.

  1. $INPUTS$ (Edit Fields (Set)): sets or maps fields
  2. Sentiment Analysis: scores sentiment with AI, with model: Azure OpenAI Chat Model
  3. Spam (Gmail): uses Gmail
  4. Important (Gmail): uses Gmail
  5. Promotion (Gmail): uses Gmail
  6. Notification (Gmail): uses Gmail
  7. Personal (Gmail): uses Gmail
  8. Call request (Gmail): uses Gmail
  9. Needs Reply (Gmail): uses Gmail
  10. Gmail: uses Gmail

…plus 5 more steps. See the full node list below.

Services it uses

Azure OpenAI Chat ModelGmailTelegramGoogle Calendar

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in Draft Reply (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
  • Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Draft Reply (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (11)

From the author

This n8n workflow automates email management by classifying incoming messages, drafting replies, and sending alerts—all powered by AI. Features 🚀 AI-Powered Email Categorization - Classifies emails into Spam, Important, Promotion, Notification, Personal,…

Excerpt from Ian Dikhtiar's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.