Draft Gmail reply suggestions with OpenAI for inbound emails
Ready for 3.0Ready 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.
- Configuration (Edit Fields (Set)): sets 6 fields: classify_model, generate_model, excluded_senders…
- Skip excluded senders (If): checks a condition and branches into true / false
- Classify if reply is needed (Text Classifier): classifies text into categories with AI, with model: Classification Model
- Generate email reply (Basic LLM Chain): sends a prompt to an LLM, with model: Reply Model
- Create Gmail draft reply (Gmail): work with draft
Services it uses
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)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Gmail
n8n-nodes-base.gmail
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.…