Templates / Auto-heal failing workflows with Azure OpenAI, n8n API, and Slack alerts

Auto-heal failing workflows with Azure OpenAI, n8n API, and Slack alerts

Ready for 3.0

by Rahul Joshi ✓ · 3,283 views · created 2026-03-02 · DevOps, AI Summarization

Ready 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).

  1. Filter: keeps only the items that match a condition
  2. Get Workflow JSON (HTTP Request): calls an HTTP API
  3. Diagnose Error (AI Agent): runs an AI agent, with model: Azure OpenAI Chat Model; output parser: Decision Schema
  4. Determine Action (Switch): routes items into 3 branches
  5. Cool Down (Wait): pauses before continuing
  6. Generate Patch JSON (Code): runs custom JavaScript code
  7. Notify Manual Fix (Slack): uses Slack
  8. Retry Execution (HTTP Request): calls an HTTP API (POST)
  9. Update Workflow (HTTP Request): calls an HTTP API (PUT)
  10. Notify Success (Slack): uses Slack

Services it uses

Azure OpenAI Chat ModelSlack

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)

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…

Excerpt from Rahul Joshi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.