Automation library · Alerts and monitoring

Log n8n workflow errors to your REST API with Slack

Started by an event in a connected app, and works across Slack. 24 steps, 2 branches: large, and worth reading before you trust it with anything live.

Large

24 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 1Logic 15Service 8

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

  1. 1Error TriggerError triggerStarts it
  2. 2Format Logger ErrorCodeLogic
  3. 3Extract MetadataCodeLogic
  4. 4Slack - Logger ErrorSlackService
  5. 5Extract EnvironmentCodeLogic
  6. 6Classify ErrorCodeLogic
  7. 7Generate Error HashCodeLogic
  8. 8API - Check DuplicateHttp RequestService
  9. 9Is New Error?IfLogic
  10. 10Format Log EntryCodeLogic
  11. 11Skip DuplicateNo OpLogic
  12. 12API - Save LogHttp RequestService
  13. 13Alert RouterSwitchLogic
  14. 14Format Critical AlertCodeLogic
  15. 15Format Warning AlertCodeLogic
  16. 16No Alert NeededNo OpLogic
  17. 17Slack - Critical AlertSlackService
  18. 18Slack - Warning AlertSlackService
  19. 19Calculate MetricsCodeLogic
  20. 20API - Save MetricsHttp RequestService
  21. 21Prepare AggregateCodeLogic
  22. 22API - Update AggregateHttp RequestService
  23. 23Calculate RetentionCodeLogic
  24. 24API - Cleanup Old LogsHttp RequestService

How it's built

Starts on
An event in a connected app
Steps
24, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Slack
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Slack account. 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?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 24 steps it is large: read it before trusting it with anything live.

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 24 steps before you point it at anything that matters.