Self-heal failed workflows from webhook errors using an external AI API

n8n · Engineers · checked 2026-10-29

Brand hub

Quick overview This workflow receives failed-execution events via webhook, analyzes the error, fetches recent execution history, generates recovery strategies via an external AI HTTP endpoint, attempts an automated recovery action, logs the outcome, and returns a structured self-healing report to the caller. How it works Receives a POST request on a webhook containing details about a failed workflow node or execution error. Validates the payload, extracts failure context (workflow, node, error, retry count), and classifies severity and retryability. Calls an HTTP endpoint to fetch recent execution history and related error patterns for the failing workflow/node. Calls an HTTP endpoint to generate ranked recovery strategies based on the failure context and history. Calls an HTTP endpoint to execute the primary recovery action (for example retry, fallback, or escalation).

At a glance

Brand
n8n
Jobs
Engineers
Sources
1

Dimensions

Sources

Last checked 2026-10-29. Description source: harvest.