Templates / Triage support emails and draft Gmail replies with OpenAI

Triage support emails and draft Gmail replies with OpenAI

Ready for 3.0

by Thomas Abraham ✓ · 4 views · created 2026-08-19 · 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 11 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI Chat Model and Google Sheets.

How it runs

Trigger: On Gmail events.

  1. Triage Config (Edit Fields (Set)): sets 7 fields: Categories, EscalateCategories, IgnoreCategories…
  2. Classify Email (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
  3. Parse Classification (Code): runs custom JavaScript code
  4. Log Triage (Google Sheets): append
  5. Route By Outcome (Switch): routes items into 3 branches
  6. Draft Reply (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
  7. Escalate To Human (Gmail): uses Gmail
  8. Label As Ignored (Gmail): add labels
  9. Create Gmail Draft (Gmail): work with draft

Services it uses

GmailOpenAI Chat ModelGoogle 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) (On New Email).

Nodes used (8)

From the author

Quick overview This workflow monitors Gmail for new messages, detects emails by subject keywords, uses OpenAI to draft a reply grounded only in your provided guidelines, and saves the response as a Gmail draft in the original thread for manual review. How it…

Excerpt from Thomas Abraham'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.