Skip to main content

Dynamically send out-of-office / vacation message using Gmail & Google Calendar

Workflow preview

Workflow preview
100%
Dynamically send out-of-office / vacation message using Gmail & Google Calendar preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

What it Does Automatically checks your Google Calendar to determine if you're officially off work for the rest of today. If so, it auto sends a personalized out‑of‑office reply via Gmail, telling s...

Best for

  • Personal Productivity automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.googlecalendar, n8n-nodes-base.code, n8n-nodes-base.gmail, n8n-nodes-base.gmailtrigger, n8n-nodes-base.if, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Rosh Ragel.

Original n8n.io source

1.1 Workflow description

Title
Dynamically send out-of-office / vacation message using Gmail & Google Calendar
Workflow name
Dynamically send out-of-office / vacation message using Gmail & Google Calendar

What it Does

Automatically checks your Google Calendar to determine if you're officially off work for the rest of today. If so, it auto-sends a personalized out‑of‑office reply via Gmail, telling senders when you’ll be back—based on your next calendar entry within the next 2 weeks.

Prerequisites

To use this template, you'll need:

  • Gmail credentials (for the trigger and reply nodes)
  • Google Calendar credentials (for both calendar checks)
  • A dedicated work calendar selected in the Calendar nodes

Workflow Logic

  1. Gmail Trigger
  • Monitors incoming emails every minute
  • Can be filtered (e.g., labels or VIP senders)
  1. Calendar Check #1
  • Inspects if any events remain today
  1. Calendar Check #2
  • If no remaining events, scan the next 14 days for the next event
  1. Function Node
  • Formats the return date as Weekday, Month D, YYYY (e.g., “Thursday, July 24, 2025”)
  1. Gmail Send
  • Sends a customized out‑of‑office email, using the formatted date
  • Optionally includes n8n attribution (editable)

User Setup Instructions

  • Gmail Trigger: Connect your Gmail account and add any desired filters (labels, senders).
  • Google Calendar Nodes: Connect your calendar account and select your “work” calendar in both nodes.
  • Function Node: No changes needed unless you prefer a different date format.
  • Gmail Send Node: Edit the message template and toggle attribution as desired.

Customization - Options

Edit the final email content and tone in the Send node

  • Adjust calendar lookahead in Calendar Check #2 (default is 14 days)
  • Add Gmail filters to restrict auto-replies (e.g. only specific senders or labels)

Why It's Useful

Ideal for freelancers, consultants, or remote workers who don’t follow a strict 9–5, yet want automated responses aligned with their actual availability, not a static setting. It’s dynamic, real-time, and easy to tweak.

Classification

Use Case: Calendar-driven out-of-office automation

Recommended audience: Business professionals, freelancers, remote employees

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Find Return-to-Office Date

Type / Role
n8n-nodes-base.googleCalendar - googleCalendar
Config choices
Version 1.3

Block 2 - Nicely Format Return Date

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - Send Out of Office Message

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 4 - Receive an Email in Gmail

Type / Role
n8n-nodes-base.gmailTrigger - gmailTrigger
Config choices
Version 1.2

Block 5 - Check Calendar for Upcoming Work Events

Type / Role
n8n-nodes-base.googleCalendar - googleCalendar
Config choices
Version 1.3

Block 6 - Any Upcoming Events Today?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 7 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Dynamically send out-of-office / vacation message using Gmail & Google Calendar
Complexity intermediate
Nodes 14
Categories Personal Productivity
Author Rosh Ragel
Published 23 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6336/6336.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Dynamically send out-of-office / vacation message using Gmail & Google Calendar do?

What it Does Automatically checks your Google Calendar to determine if you're officially off work for the rest of today. If so, it auto sends a personalized out‑of‑office reply via Gmail, telling s...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Personal Productivity use case.