Alert on consecutive empty workflow runs with email and Slack
Ready for 3.0Ready 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-12-01.
What this workflow does
This workflow has 9 nodes and runs on a schedule (every hour). Along the way it connects Slack.
How it runs
Trigger: On a schedule (every hour).
- Zero-Item Config (Edit Fields (Set)): sets 10 fields: n8nBaseUrl, workflowIds, consecutiveEmptyRuns…
- Split Workflow IDs (Code): runs custom JavaScript code
- Get Executions (HTTP Request): calls an HTTP API (GET)
- Detect Empty Streaks (Code): runs custom JavaScript code
- Has Empty Streak? (If): checks a condition and branches into true / false
- Send Alert Email (Send Email): sends an email over SMTP
- Slack Enabled? (If): checks a condition and branches into true / false
- Send Slack Alert (Slack): uses Slack
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 - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Send Email
n8n-nodes-base.emailSend - Slack
n8n-nodes-base.slack
From the author
Quick overview A filter or a changed API can make a workflow succeed while processing nothing. One empty run is often normal; three in a row usually is not. How it works 1. This workflow calls GET /api/v1/executions?includeData=true&status=success for each…