Templates / Smart Gmail auto-replies while out of office with AI

Smart Gmail auto-replies while out of office with AI

Ready for 3.0

by Matt Chong | n8n Creator ✓ · 581 views · created 2025-08-20 · Multimodal AI

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 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).

  1. Define OOO Dates and Contact (Edit Fields (Set)): sets or maps fields
  2. Check If Currently OOO (If): checks a condition and branches into true / false
  3. Get Unread Emails (Gmail): get many
  4. Process Each Email (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Fetch Email Content (Gmail): get
  6. AI Agent: runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
  7. Decide If Reply Is Needed (If): checks a condition and branches into true / false
  8. Send AI-Powered Auto-Reply (Gmail): reply
  9. Tag Replied Emails (Gmail): add labels

Services it uses

OpenAI Chat ModelGmail

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

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…

Excerpt from Matt Chong | n8n Creator'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.