Smart Gmail auto-replies while out of office with AI
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 12 nodes and runs on a schedule (every minute). Along the way it connects OpenAI Chat Model and Gmail.
How it runs
Trigger: On a schedule (every minute).
- Define OOO Dates and Contact (Edit Fields (Set)): sets or maps fields
- Check If Currently OOO (If): checks a condition and branches into true / false
- Get Unread Emails (Gmail): get many
- Process Each Email (Loop Over Items (Split in Batches)): loops over the items in batches
- Fetch Email Content (Gmail): get
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Decide If Reply Is Needed (If): checks a condition and branches into true / false
- Send AI-Powered Auto-Reply (Gmail): reply
- Tag Replied Emails (Gmail): add labels
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)
- AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches
From the author
Who is this for? If you're going on vacation or away from work and want your Gmail to respond to emails intelligently while you're out, this workflow is for you. It's perfect for freelancers, professionals, and teams who want a smarter, more personal…