Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Monitoring, Ops & Incidents

Monitoring, Ops & Incidents

Detect silent n8n workflow failures with OpenAI diagnosis and Slack alerts

Runs hourly, checks recent executions of active n8n workflows for stopped schedules and silent output drops, diagnoses issues with OpenAI, logs to Google Sheets and alerts Slack.

What it does

## Detect silent n8n workflow failures with OpenAI diagnosis, Google Sheets and Slack Who's it for Automation agencies, freelancers and ops teams running n8n in production. Error workflows only catch executions that crash. This template catches the failures that never throw an error: - a schedule that quietly stopped firing - a workflow that "succeeds" while processing nothing - a workflow whose output suddenly collapses How it works 1. Every hour it lists your active workflows through the n8n API and pulls each one's 10 most recent executions. 2. Score workflow health checks three silent-failure patterns: - Missed schedule: no successful run for 1.5x the interval set in the workflow's own Schedule Trigger. - Zero output: the last 3 successful runs all ended with 0 items. - Volume drop: the latest run produced less than 20% of its usual item count. 3. Results are compared with the open incidents in your Google Sheet, so each problem is raised once and closed once. 4. New incidents go to OpenAI, which reads the workflow's trigger and node types and returns a severity, the likely causes and what to check first. 5. The incident is logged to Google Sheets and posted to Slack. When a workflow recovers, its row is marked resolved with the downtime, and Slack gets a ✅. How to set up 1. Create a Google Sheet tab named Incidents with these headers: incident_id, workflow_id, workflow_name, problem_type, details, severity, likely_causes, check_first, status, opened_at, resolved_at, downtime_hours. 2. Create an n8n API key (Settings → n8n API) and add it as an n8n API credential on both n8n nodes. 3. Fill in Configure settings: Sheet ID, Slack channel and your n8n base URL. 4. Connect Google Sheets, OpenAI and Slack credentials, then activate. Requirements - n8n API access (self-hosted, or a Cloud plan with API access). Successful executions must be saved, which is the default. - OpenAI API key, Google Sheets and Slack. How to customize - Tag a workflow no-monitor to skip it. - Set a maximum silence for webhook-triggered workflows in max_silence_overrides. - Tune the zero-run count and volume-drop percentage in Configure settings.

The steps

  1. Every hour
  2. Configure settings
  3. Get active workflows
  4. Skip excluded workflows
  5. Get recent executions
  6. Score workflow health
  7. Read incident log
  8. Compare with open incidents
  9. Route by change
  10. Diagnose with AI
  11. OpenAI Chat Model
  12. Structured Output Parser
  13. Build incident record
  14. Log incident

17 steps in total.

Similar automations