Bibliothek / E-Mail-Automatisierung
E-Mail-Automatisierung
Send Gmail alerts for stalled scheduled workflows using the n8n API
On a schedule, it handles email using Gmail.
Was sie bewirkt
## 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.
Die Schritte
- Every hour
- Settings
- Get active workflows
- Get recent executions
- Find silent workflows
- Anything silent?
- Alert
- Check could not run
- Heartbeat
Ähnliche Automatisierungen
CRM & VertriebspipelineStagnierende HubSpot-Deals mit OpenAI-Entwürfen und Slack-Eskalation wieder aufnehmen12 SchritteLead-Generierung & AnreicherungVerschleppte Anfragen nachverfolgen und täglichen Gmail-Digest aus Google Sheets senden19 SchritteMonitoring, Betrieb & StörungenGeplante n8n-Workflows über die n8n-API überwachen und verpasste oder fehlgeschlagene Läufe per E-Mail melden9 SchritteCode, Git & Entwicklertoolsn8n-Workflows über die n8n-API zwischen Instanzen klonen33 Schritte