Analyze failed workflows with Claude via OpenRouter and log to Sheets with Slack, Email, Discord alerts
Ready for 3.0What 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).
- Normalize Error Payload (Edit Fields (Set)): sets 12 fields: workflow_name, workflow_id, execution_id…
- Prepare AI Context (Code): runs custom JavaScript code
- AI Error Analysis (Basic LLM Chain): sends a prompt to an LLM, with model: OpenRouter Chat Model
- Extract AI Confidence (Code): runs custom JavaScript code
- Generate Error Signature (Code): runs custom JavaScript code
- Prepare Log Record (Edit Fields (Set)): sets 15 fields: timestamp, workflowName, workflowId…
- Log to Google Sheets (Google Sheets): append
- Check Alert Fatigue (Code): runs custom JavaScript code
- Send Email (Gmail): uses Gmail
- Send Slack Message (Slack): uses Slack
…plus 2 more steps. See the full node list below.
Services it uses
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)
- Error Trigger
n8n-nodes-base.errorTrigger - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Gmail
n8n-nodes-base.gmail - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Google Sheets
n8n-nodes-base.googleSheets - Slack
n8n-nodes-base.slack - Discord
n8n-nodes-base.discord - HTTP Request
n8n-nodes-base.httpRequest
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 -…