Templates / Triage Gmail inbox, label emails, and draft replies with OpenAI

Triage Gmail inbox, label emails, and draft replies with OpenAI

Ready for 3.0

by Gilbert Losert · 36 views · created 2026-10-04 · 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 10 nodes and runs on Gmail events. Along the way it connects Gmail and OpenAI.

How it runs

Trigger: On Gmail events.

  1. Sort Emails with AI (OpenAI): uses OpenAI
  2. If: checks a condition and branches into true / false
  3. Create Email Draft (Gmail): create (draft)
  4. If: checks a condition and branches into true / false
  5. If: checks a condition and branches into true / false
  6. Label as Spam (Gmail): add labels
  7. Label as Informational (Gmail): add labels
  8. Label for User Attention (Gmail): add labels
  9. Label as Drafted (Gmail): add labels

Services it uses

GmailOpenAI

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) (When New Email Received).

Nodes used (4)

From the author

Quick overview This workflow watches for new unread Gmail messages, uses OpenAI to classify each email and draft a reply, then either creates a Gmail draft in the original thread and labels the message for follow-up, or files it by applying FYI/Noise labels.…

Excerpt from Gilbert Losert'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.