Библиотека / Мониторинг, эксплуатация и инциденты
Мониторинг, эксплуатация и инциденты
Обнаружение тихих сбоев в workflow n8n с диагностикой OpenAI и оповещениями в Slack
Запускается каждый час, проверяет недавние выполнения активных workflow n8n на остановленные расписания и тихие пропадания выходных данных, диагностирует проблемы с помощью OpenAI, пишет журнал в Google Sheets и отправляет оповещения в Slack.
Что делает
## 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.
Шаги
- Every hour
- Configure settings
- Get active workflows
- Skip excluded workflows
- Get recent executions
- Score workflow health
- Read incident log
- Compare with open incidents
- Route by change
- Diagnose with AI
- OpenAI Chat Model
- Structured Output Parser
- Build incident record
- Log incident
Всего шагов: 17.
Похожие автоматизации
Мониторинг, эксплуатация и инцидентыОтслеживание изменений рабочих процессов n8n во времени в Google SheetsШагов: 37Мониторинг, эксплуатация и инцидентыАвтоматическая повторная активация отключённых рабочих процессов n8nШагов: 6Мониторинг, эксплуатация и инцидентыАвтоматическое возобновление отключённых рабочих процессов n8nШагов: 5Мониторинг, эксплуатация и инцидентыОтправка аудитов n8n и неудачных рабочих процессов в InfluxDBШагов: 24