Zum Inhalt springen
NEULerne Alaaddin kennen, deinen KI-Flaschengeist mit Stimme. trig8n startet am 1. Januar 2027. Neuigkeiten ansehen

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

  1. Every hour
  2. Settings
  3. Get active workflows
  4. Get recent executions
  5. Find silent workflows
  6. Anything silent?
  7. Alert
  8. Check could not run
  9. Heartbeat

Ähnliche Automatisierungen