Track repeat absences and send approval-based alerts via Google Sheets and Gmail
Ready for 3.0What this workflow does
This workflow has 12 nodes and runs on a schedule (cron 0 8 * * 1-6). Along the way it connects Google Sheets and Gmail.
How it runs
Trigger: On a schedule (cron 0 8 * * 1-6).
- Read Attendance from Google Sheets (Google Sheets): uses Google Sheets
- Calculate Absence Thresholds (Code): runs custom JavaScript code
- Build Approval Batch (Code): runs custom JavaScript code
- Request Administrator Approval (Gmail): send and wait for a reply
- Is Initial Approval Granted (If): checks a condition and branches into true / false
- Merge: merges the data from its input branches
- Retry Approval Request (Gmail): send and wait for a reply
- Send Approved Gmail Notifications (Gmail): uses Gmail
- Is Retry Approved (If): checks a condition and branches into true / false
- Log Approval Outcome (Code): runs custom JavaScript code
…plus 1 more step. See the full node list below.
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 (6)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail - If
n8n-nodes-base.if - Merge
n8n-nodes-base.merge
From the author
Quick overview This workflow runs every morning at 8:00 (Mon–Sat, Asia/Karachi), reads attendance records from Google Sheets, detects repeat absences based on consecutive days and monthly totals, and sends a Gmail approval request to an administrator before…