Templates / Diagnose failed workflows with a local Ollama model and send triage reports to Discord

Diagnose failed workflows with a local Ollama model and send triage reports to Discord

Ready for 3.0

by Joey Townsend ✓ · 0 views · created 2026-10-14 · 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 16 nodes and runs when another workflow fails (error workflow) (plus 2 other triggers). Along the way it connects Discord.

How it runs

Trigger: When another workflow fails (error workflow) (plus 2 other triggers).

  1. Normalize Failure (Code): runs custom JavaScript code
  2. Sample Failures (Code): runs custom JavaScript code
  3. Build Config (Edit Fields (Set)): sets 6 fields: ollama_url, model, n8n_editor_url…
  4. Skip Excluded Workflows (Filter): keeps only the items that match a condition
  5. Get Failed Execution (n8n): get (execution)
  6. Get Workflow Definition (n8n): get (workflow)
  7. Redact and Build Context (Code): runs custom JavaScript code
  8. Get Recent Diagnoses (Data table): get (row)
  9. Skip Repeat Failures (Code): runs custom JavaScript code
  10. Diagnose Failure (HTTP Request): calls an HTTP API (POST)

…plus 3 more steps. See the full node list below.

Services it uses

Discord

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (10)

From the author

Quick overview This workflow captures failed n8n executions, fetches the execution and workflow details via the n8n API, redacts sensitive data, sends the failure context to a local Ollama chat model for diagnosis, and posts a formatted triage message to…

Excerpt from Joey Townsend'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.