Templates / Draft Gmail reply suggestions with OpenAI for inbound emails

Draft Gmail reply suggestions with OpenAI for inbound emails

Ready for 3.0

by Dr. Firas ✓ · 139 views · created 2026-07-28 · 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 10 nodes and runs on Gmail events. Along the way it connects Gmail and OpenAI Chat Model.

How it runs

Trigger: On Gmail events.

  1. Configuration (Edit Fields (Set)): sets 6 fields: classify_model, generate_model, excluded_senders…
  2. Skip excluded senders (If): checks a condition and branches into true / false
  3. Classify if reply is needed (Text Classifier): classifies text into categories with AI, with model: Classification Model
  4. Generate email reply (Basic LLM Chain): sends a prompt to an LLM, with model: Reply Model
  5. Create Gmail draft reply (Gmail): work with draft

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 (8)

From the author

Quick overview This workflow monitors a Gmail inbox for new messages, filters out excluded senders, uses OpenAI to decide whether a reply is needed, and drafts a suggested response in the original Gmail thread for you to review and send. How it works 1.…

Excerpt from Dr. Firas'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.