Templates / Gmail email categorization & auto reply with GPT-4o and Google Sheets

Gmail email categorization & auto reply with GPT-4o and Google Sheets

Ready for 3.0

by Haruki Kuwai ✓ · 2,561 views · created 2025-10-24 · Ticket Management, AI Summarization

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 15 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. Text Classifier: classifies text into categories with AI, with model: OpenAI Chat Model
  2. Save Priority Mail (Gmail): add labels
  3. Save Advertisement Mail (Gmail): add labels
  4. Save Inquiry Mail (Gmail): add labels
  5. Save Finance Mail (Gmail): add labels
  6. Generate Priority Draft (OpenAI): uses OpenAI
  7. Generate Ad Summary (OpenAI): uses OpenAI
  8. Generate Finance Summary (OpenAI): uses OpenAI
  9. Generate Inquiry Reply (OpenAI): uses OpenAI
  10. Create Draft (Gmail): work with draft

…plus 3 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 (6)

From the author

🧭 Description This section automates Gmail message handling through AI-powered classification and response. Using the LangChain Text Classifier, incoming emails are analyzed and sorted into four categories — High Priority, Advertisement, Inquiry, and…

Excerpt from Haruki Kuwai'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.