Templates / Diagnose failed n8n workflows with Claude and Gmail alerts

Diagnose failed n8n workflows with Claude and Gmail alerts

Ready for 3.0

by Nocode Expert ✓ · 4 views · created 2026-08-03 · 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 workflow has 9 nodes and runs when another workflow fails (error workflow). Along the way it connects Gmail and Slack. It also calls api.anthropic.com over HTTP.

How it runs

Trigger: When another workflow fails (error workflow).

  1. Set config: who to alert and how often (Edit Fields (Set)): sets 4 fields: notifyTo, cooldownMinutes, maxStackLines…
  2. Read the failure and check for repeats (Code): runs custom JavaScript code
  3. Skip if you were already told (If): checks a condition and branches into true / false
  4. Build the diagnosis request (Code): runs custom JavaScript code
  5. Diagnose the failure with Claude (HTTP Request): calls api.anthropic.com (POST)
  6. Write the alert (Code): runs custom JavaScript code
  7. Email you the diagnosis (Gmail): uses Gmail
  8. Optional: post critical failures to Slack (Slack): uses Slack

Services it uses

GmailSlack

HTTP calls to: api.anthropic.com

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 (7)

From the author

Quick overview This workflow acts as a global n8n error handler: when any other workflow fails, it suppresses repeat alerts, sends the failure details to Anthropic Claude for a plain-English diagnosis and fix steps, and emails the formatted result via Gmail…

Excerpt from Nocode Expert'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.