Automate Gmail responses with GPT and human-in-the-loop verification
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.
- Your Information (Edit Fields (Set)): sets 5 fields: entity_name, entity_description, email_to_receive_approval…
- Determines if Email Needs Response (Information Extractor): extracts structured fields from text with AI, with model: OpenAI Chat Model
- If: checks a condition and branches into true / false
- Drafts Email Response (HTML) (Information Extractor): extracts structured fields from text with AI, with model: OpenAI Chat Model
- Clean Up Email Code (Code): runs custom JavaScript code
- Ask User for Approval (Gmail): send and wait for a reply
- Approved? (If): checks a condition and branches into true / false
- Send Reply (Gmail): reply
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.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).
Nodes used (7)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - If
n8n-nodes-base.if - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - Edit Fields (Set)
n8n-nodes-base.set
From the author
Try It Out! This n8n template uses AI to automatically respond to your Gmail inbox by drafting response for your approval via email. How it works Gmail Trigger monitors your inbox for new emails AI Analysis determines if a response is needed based on your…