Automation library · Alerts and monitoring

Analyze failed workflows with Claude and OpenRouter

Started by an event in a connected app, and works across Discord, Gmail, Google Sheets and Slack. It hands the judgement calls to OpenRouter. 14 steps: a working afternoon to understand properly.

MediumCalls a model: OpenRouter

14 stepsMedium: a working afternoon
0Branches: places the flow splits
0Loops or waits
4Services it connects to

The flow

Starts it 1Model 2Logic 6Service 5

The steps in the order they run, from what starts it.

  1. 1Error TriggerError triggerStarts it
  2. 2OpenRouter Chat Model1Lm Chat Open RouterModel
  3. 3Normalize Error Payload1SetLogic
  4. 4AI Error Analysis1Chain LlmModel
  5. 5Prepare AI Context1CodeLogic
  6. 6Extract AI ConfidenceCodeLogic
  7. 7Generate Error SignatureCodeLogic
  8. 8Prepare Log RecordSetLogic
  9. 9Log to Google Sheets1Google SheetsService
  10. 10Check Alert FatigueCodeLogic
  11. 11Send Email1GmailService
  12. 12Send Slack Message1SlackService
  13. 13Send Discord Message1DiscordService
  14. 14Webhook Notification1Http RequestService

How it's built

Starts on
An event in a connected app
Steps
14
Size
Medium: a working afternoon
Connects to
Discord, Gmail, Google Sheets, Slack
Model
OpenRouter

Questions

What does it need to run?

An n8n account, plus your own Discord, Gmail, Google Sheets and Slack accounts, and a key for OpenRouter. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls OpenRouter. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 14 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 14 steps before you point it at anything that matters.