Detect payroll discrepancies with Google Sheets, Slack and Gmail
Ready for 3.0What this workflow does
This workflow has 13 nodes and runs on a schedule (cron 0 9 25 * *). Along the way it connects Google Sheets, Slack and Gmail.
How it runs
Trigger: On a schedule (cron 0 9 25 * *).
- Get Current Pay Run (Google Sheets): uses Google Sheets
- Get Previous Pay Run (Google Sheets): uses Google Sheets
- Detect Discrepancies (Code): runs custom JavaScript code
- Has Anomalies (If): checks a condition and branches into true / false
- Classify Severity (Edit Fields (Set)): sets 4 fields: severityEmoji, blockPayment, lineSummary…
- Slack: uses Slack
- Is Critical Block (If): checks a condition and branches into true / false
- Slack: uses Slack
- Log Anomaly to Sheet (Google Sheets): append
- Email HR Review (Gmail): uses Gmail
…plus 2 more steps. 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 (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail
From the author
Quick Overview This workflow runs monthly to compare current vs. previous payroll data in Google Sheets, detect pay anomalies, alert Finance in Slack, email HR via Gmail, and log discrepancies back to a Google Sheets audit tab. How it works 1. Runs on a…