AI-powered workflow monitoring and incident alerting system built with n8n, OpenAI, Slack, Gmail, and Telegram.
This workflow detects automation failures in real time, classifies incident severity, generates AI-assisted operational analysis, and delivers multi-channel alerts for faster troubleshooting and operational visibility.
Modern automation systems require operational visibility and rapid incident response.
This project demonstrates how AI can be integrated into workflow reliability engineering to automatically:
- Detect workflow execution failures
- Classify operational severity
- Analyze incidents using AI
- Generate remediation guidance
- Deliver alerts across multiple communication channels
The system is designed using a normalized incident payload architecture that separates:
- Incident detection
- Severity classification
- AI analysis
- Payload normalization
- Alert delivery
Uses the n8n Error Trigger node to automatically capture failed workflow executions.
Builds a structured incident payload containing:
- Workflow name
- Last executed node
- Error message
- Timestamp
- Workflow ID
Automatically categorizes failures into operational severity levels.
Current supported severities:
- Critical π΄
- Medium π
Critical detection includes:
- Timeout failures
- Authentication failures
- Unauthorized access
- Quota issues
- Rate limiting
Uses OpenAI GPT-4o-mini to generate:
- Incident summaries
- Probable root causes
- Operational severity assessments
- Recommended remediation steps
Delivers alerts simultaneously to:
- Gmail
- Slack
- Telegram
Centralized payload builder ensures all delivery channels receive a consistent operational incident structure.
- Error Trigger
- Incident Context Builder
- Critical Error Detector
- Set Critical Severity
- Set Medium Severity
- Severity Router
- AI Incident Analyzer
- Merge Incident Data
- Alert Payload Builder
- Send Email Alert
- Send Slack Alert
- Send Telegram Alert
- n8n
- OpenAI GPT-4o-mini
- Slack API
- Telegram Bot API
- Gmail API
- Workflow monitoring
- AI-assisted incident response
- Operational alerting
- Reliability engineering
- Automation observability
- Incident escalation pipelines
- n8n instance
- OpenAI API credentials
- Slack OAuth credentials
- Telegram bot credentials
- Gmail OAuth credentials
- Open n8n
- Import the workflow JSON file from:
workflow/AI-Workflow-Monitoring-System.json
- Configure credentials:
- OpenAI
- Slack
- Telegram
- Gmail
- Activate the workflow
π Workflow Failure Detected
Severity: π MEDIUM
Workflow: Example Workflow
Last Node: Node With Error
Error:
Example Error Message
AI Analysis:
- Incident summary
- Root cause analysis
- Operational severity
- Remediation guidance
AI-Workflow-Monitoring-System/
βββ README.md
βββ LICENSE
βββ workflow/
β βββ AI-Workflow-Monitoring-System.json
βββ screenshots/
βββ hero-workflow-overview.png
βββ ai-incident-analysis.png
βββ severity-routing-system.png
βββ slack-incident-alert.png
βββ telegram-incident-alert.png
βββ email-incident-alert.png
Potential future enhancements:
- Incident persistence database
- Dashboard visualization
- Retry automation
- PagerDuty integration
- AI-powered incident prioritization
- Historical incident analytics
- Service dependency mapping
Boris Villanueva





