Templates / Triage and reply to Gmail with OpenAI trust levels and human approval

Triage and reply to Gmail with OpenAI trust levels and human approval

Ready for 3.0

by Denys Sergushkin · 0 views · created 2026-11-19 · Personal Productivity, AI Chatbot

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 18 nodes and runs on Gmail events. Along the way it connects Gmail and OpenAI Chat Model.

How it runs

Trigger: On Gmail events.

  1. Config (Edit Fields (Set)): sets 6 fields: approval_email, auto_rules, draft_rules…
  2. Skip already handled (Data table): row not exists
  3. Hard rules (Code): runs custom JavaScript code
  4. Matched a hard rule? (If): checks a condition and branches into true / false
  5. Rule: human only (Edit Fields (Set)): sets 4 fields: level, source, reason…
  6. AI trust check (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
  7. Trust level (Switch): routes items into 3 branches
  8. Use AI decision (Edit Fields (Set)): sets 4 fields: level, source, reason…
  9. AI failed: human only (Edit Fields (Set)): sets 4 fields: level, source, reason…
  10. Auto: mark as read (Gmail): mark as read

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

Services it uses

GmailOpenAI Chat Model

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.

Nodes used (10)

From the author

Quick overview This workflow monitors a Gmail inbox, uses an OpenAI chat model to classify each new email into a trust level, and then either marks it as read, drafts a reply for your approval via Gmail, or sends you a notification to handle it yourself. How…

Excerpt from Denys Sergushkin'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.