Templates / Detect payroll discrepancies with Google Sheets, Slack and Gmail

Detect payroll discrepancies with Google Sheets, Slack and Gmail

Ready for 3.0

by Avkash Kakdiya ✓ · 35 views · created 2026-06-09 · HR, AI Summarization

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

  1. Get Current Pay Run (Google Sheets): uses Google Sheets
  2. Get Previous Pay Run (Google Sheets): uses Google Sheets
  3. Detect Discrepancies (Code): runs custom JavaScript code
  4. Has Anomalies (If): checks a condition and branches into true / false
  5. Classify Severity (Edit Fields (Set)): sets 4 fields: severityEmoji, blockPayment, lineSummary…
  6. Slack: uses Slack
  7. Is Critical Block (If): checks a condition and branches into true / false
  8. Slack: uses Slack
  9. Log Anomaly to Sheet (Google Sheets): append
  10. Email HR Review (Gmail): uses Gmail

…plus 2 more steps. See the full node list below.

Services it uses

Google SheetsSlackGmail

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)

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…

Excerpt from Avkash Kakdiya'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.