Auto-heal failing workflows with Azure OpenAI, n8n API, and Slack alerts
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 13 nodes and runs when another workflow fails (error workflow). Along the way it connects Azure OpenAI Chat Model and Slack.
How it runs
Trigger: When another workflow fails (error workflow).
- Filter: keeps only the items that match a condition
- Get Workflow JSON (HTTP Request): calls an HTTP API
- Diagnose Error (AI Agent): runs an AI agent, with model: Azure OpenAI Chat Model; output parser: Decision Schema
- Determine Action (Switch): routes items into 3 branches
- Cool Down (Wait): pauses before continuing
- Generate Patch JSON (Code): runs custom JavaScript code
- Notify Manual Fix (Slack): uses Slack
- Retry Execution (HTTP Request): calls an HTTP API (POST)
- Update Workflow (HTTP Request): calls an HTTP API (PUT)
- Notify Success (Slack): uses Slack
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (10)
- Azure OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi - Error Trigger
n8n-nodes-base.errorTrigger - Filter
n8n-nodes-base.filter - HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - Wait
n8n-nodes-base.wait - Code
n8n-nodes-base.code - Slack
n8n-nodes-base.slack
From the author
📊 Description Eliminate manual troubleshooting with an AI-powered autonomous recovery engine for n8n 🤖. This system monitors your entire n8n instance for failures, analyzes the root cause using Azure OpenAI, and automatically repairs broken workflows in…