Templates / Automate email triage with GPT-4.1-mini classification and Gmail auto-replies

Automate email triage with GPT-4.1-mini classification and Gmail auto-replies

Ready for 3.0

by Giovanni Beggiato · 1,113 views · created 2025-08-14 · Ticket Management, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

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

How it runs

Trigger: On Gmail events.

  1. Name Extractor (Information Extractor): extracts structured fields from text with AI, with model: OpenAI Chat Model
  2. If: checks a condition and branches into true / false
  3. Name Found (Edit Fields (Set)): sets 1 field: intro_line
  4. Name Not Found (Edit Fields (Set)): sets 1 field: intro_line
  5. Single Intro Line (Merge): merges the data from its input branches
  6. Reducing content before LLM (Edit Fields (Set)): sets 4 fields: intro_line, email_body, message_id…
  7. AI-Classification & Sentiment Analysis (Text Classifier): classifies text into categories with AI, with model: OpenAI Chat Model
  8. Label - Agency Lead (Gmail): add labels
  9. Label - Course Request (Gmail): add labels
  10. Label - Paid Collaborations (Gmail): add labels

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

Services it uses

GmailOpenAI Chat ModelOpenAIGoogle Sheets

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).

Nodes used (10)

From the author

How it works: - Detects new unread Gmail messages - Extracts sender name for personalized replies - Classifies the email into one of four categories - Applies the correct Gmail label and either sends an auto-reply, creates a draft, or logs the contact in…

Excerpt from Giovanni Beggiato'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.