Email Automation
Send Gmail alerts for stalled scheduled workflows using the n8n API
On a schedule, it handles email using Gmail.
What it does
## Silent failure check Finds workflows that are active, have a schedule trigger, and have quietly stopped running. n8n raises no error for this: the error workflow never fires, because nothing failed - nothing ran. Setup. In Settings, set n8nBaseUrl, silentAfterMinutes, and heartbeatUrl (a dead man's switch you control). Add an n8n API key to both HTTP Request nodes as Header Auth, header name X-N8N-API-KEY. Replace the two Gmail nodes with whatever you actually read. Two exclusions, both deliberate. Webhook-only workflows are skipped: they may sit idle for days, so silence there means nothing. A workflow with no execution history at all is skipped rather than alerted, because n8n prunes execution data on a retention schedule and treating pruned history as "never ran" fires on everything the moment history ages out. It handles its own failure. Each API call retries three times, then routes its error output to Check could not run - a check that fails silently is indistinguishable from a clean one. Both endings reach Heartbeat, so a crashed run pings nothing and an external dead man's switch notices. The heartbeat continues on error: a ping endpoint being down must never cost you a real finding. What it does not catch: the run that completes, reports success, and produced nothing. That needs output compared against a baseline, not a timestamp check.
The steps
- Every hour
- Settings
- Get active workflows
- Get recent executions
- Find silent workflows
- Anything silent?
- Alert
- Check could not run
- Heartbeat
Similar automations
CRM & Sales PipelineRe-engage stalled HubSpot deals with OpenAI drafts and Slack escalation12 stepsLead Generation & EnrichmentChase stalled enquiries and send daily Gmail digest from Google Sheets19 stepsMonitoring, Ops & IncidentsMonitor scheduled n8n workflows via n8n API and email missed or failing runs9 stepsCode, Git & Developer ToolsClone n8n Workflows Between Instances via the n8n API33 steps