Send employee leave alerts from Google Sheets via Slack and Gmail
Ready for 3.0What this workflow does
This workflow has 13 nodes and runs on a schedule (every day at 08:00). Along the way it connects Google Sheets, Slack and Gmail.
How it runs
Trigger: On a schedule (every day at 08:00).
- Fetch Leave Records (Google Sheets): uses Google Sheets
- Validate & Normalize Leave Data (Code): runs custom JavaScript code
- Check Needs Activation (If): checks a condition and branches into true / false
- Process Activations Sequentially (Loop Over Items (Split in Batches)): loops over the items in batches
- Check Needs Reset (If): checks a condition and branches into true / false
- Notify HR Channel (Slack): uses Slack
- Process Resets Sequentially (Loop Over Items (Split in Batches)): loops over the items in batches
- Send OOO Reminder Email (Gmail): uses Gmail
- Notify HR Leave Reset (Slack): uses Slack
- Mark Leave as Active (Google Sheets): update
…plus 2 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail
From the author
📊 Description Automate employee leave tracking and communication with structured notifications and reminders 📅📣. This workflow checks a centralized Google Sheet daily to detect when leave periods start or end. When leave begins, it notifies your HR Slack…