Templates / Smart email manager with Gmail, GPT-4 classification & auto-responses

Smart email manager with Gmail, GPT-4 classification & auto-responses

Needs changes

by Ronnie Craig ✓ · 1,440 views · created 2025-08-25 · AI Chatbot, Multimodal AI

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

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

How it runs

Trigger: On Gmail events.

  1. Process One by One (Loop Over Items (Split in Batches)): loops over the items in batches
  2. Get Conversation Thread (Gmail): get (thread)
  3. Get Latest Message ID (Limit): keeps the first few items
  4. Get Latest Message Content (Gmail): get
  5. Get All Gmail Labels (Gmail): work with label
  6. Filter User Labels (If): checks a condition and branches into true / false
  7. Get User Labels (Aggregate): combines items into one
  8. AI Email Classifier (Basic LLM Chain): sends a prompt to an LLM, with model: AI Language Model; output parser: Auto-fixing Output Parser
  9. Smart Action Router (Switch): routes items into 4 branches
  10. AI Response Generator (Basic LLM Chain): sends a prompt to an LLM, with model: AI Language Model

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

Services it uses

GmailGoogle DriveTelegramOpenAI Chat Model

Before you upgrade to n8n 3.0

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

  • Function (legacy) in Get Specific File Types, Get All Attachments: replace with Code node, mode 'Run Once for All Items'.
  • 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
Function (legacy)
Get Specific File Types, Get All Attachments
Code node, mode 'Run Once for All Items'

Nodes used (15)

From the author

AI Email Assistant - Smart Email Processing & Response 🤖 A sophisticated n8n workflow that transforms your email management with AI-powered classification, automatic responses, and intelligent organization. 🎯 What This Workflow Does This advanced AI email…

Excerpt from Ronnie Craig'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.