Templates / Analyze failed workflows with Claude via OpenRouter and log to Sheets with Slack, Email, Discord alerts

Analyze failed workflows with Claude via OpenRouter and log to Sheets with Slack, Email, Discord alerts

Ready for 3.0

by Open Paws ✓ · 94 views · created 2026-01-05 · 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 14 nodes and runs when another workflow fails (error workflow). Along the way it connects Gmail, OpenRouter Chat Model, Google Sheets and Slack and 1 more.

How it runs

Trigger: When another workflow fails (error workflow).

  1. Normalize Error Payload (Edit Fields (Set)): sets 12 fields: workflow_name, workflow_id, execution_id…
  2. Prepare AI Context (Code): runs custom JavaScript code
  3. AI Error Analysis (Basic LLM Chain): sends a prompt to an LLM, with model: OpenRouter Chat Model
  4. Extract AI Confidence (Code): runs custom JavaScript code
  5. Generate Error Signature (Code): runs custom JavaScript code
  6. Prepare Log Record (Edit Fields (Set)): sets 15 fields: timestamp, workflowName, workflowId…
  7. Log to Google Sheets (Google Sheets): append
  8. Check Alert Fatigue (Code): runs custom JavaScript code
  9. Send Email (Gmail): uses Gmail
  10. Send Slack Message (Slack): uses Slack

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

Services it uses

GmailOpenRouter Chat ModelGoogle SheetsSlackDiscord

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

Who is this for This workflow is designed for n8n users who manage multiple production workflows and want to: - Receive intelligent, actionable error alerts instead of raw stack traces - Understand root causes without manually debugging every failure -…

Excerpt from Open Paws'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.