Flag working-time violations in Clockify entries with Nager.Date and email
Ready for 3.0What this workflow does
This workflow has 35 nodes and runs on a schedule (every week at 07:00). It uses only n8n's built-in nodes.
How it runs
Trigger: On a schedule (every week at 07:00).
- Working-time settings (Edit Fields (Set)): sets 10 fields: clockifyWorkspaceId, clockifyRegion, senderEmail…
- Create wt_staff table (Data table): create (table)
- Create wt_findings table (Data table): create (table)
- Create wt_days table (Data table): create (table)
- Plan the check (Code): runs custom JavaScript code
- Get public holidays (HTTP Request): calls an HTTP API
- Try the samples? (If): checks a condition and branches into true / false
- Sample time entries (Code): runs custom JavaScript code
- Delete old findings (Data table): delete rows
- Collect each person's entries (Code): runs custom JavaScript code
…plus 24 more steps. See the full node list below.
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 (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Data table
n8n-nodes-base.dataTable - Switch
n8n-nodes-base.switch - Stop and Error
n8n-nodes-base.stopAndError - Send Email
n8n-nodes-base.emailSend
From the author
Quick overview This workflow runs every weekday at 07:00 (Europe/Berlin) to review Clockify time entries against key German ArbZG rules, enriches checks with Nager.Date public holidays, stores results in n8n Data Tables, and emails employees, managers, and HR…