# Log n8n workflow errors to your REST API with Slack: n8n workflow

> 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.

Source: https://millionrounds.com/workflow/log-n8n-workflow-errors-to-your-rest-api-with-slack (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# 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

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Flog-n8n-workflow-errors-to-your-rest-api-with-slack)

**24 steps** Large: read it before trusting it with anything live

**2** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Logic 15 Service 8

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

- 1 **Error Trigger** Error trigger *Starts it*
- 2 **Format Logger Error** Code *Logic*
- 3 **Extract Metadata** Code *Logic*
- 4 **Slack - Logger Error** Slack *Service*
- 5 **Extract Environment** Code *Logic*
- 6 **Classify Error** Code *Logic*
- 7 **Generate Error Hash** Code *Logic*
- 8 **API - Check Duplicate** Http Request *Service*
- 9 **Is New Error?** If *Logic*
- 10 **Format Log Entry** Code *Logic*
- 11 **Skip Duplicate** No Op *Logic*
- 12 **API - Save Log** Http Request *Service*
- 13 **Alert Router** Switch *Logic*
- 14 **Format Critical Alert** Code *Logic*
- 15 **Format Warning Alert** Code *Logic*
- 16 **No Alert Needed** No Op *Logic*
- 17 **Slack - Critical Alert** Slack *Service*
- 18 **Slack - Warning Alert** Slack *Service*
- 19 **Calculate Metrics** Code *Logic*
- 20 **API - Save Metrics** Http Request *Service*
- 21 **Prepare Aggregate** Code *Logic*
- 22 **API - Update Aggregate** Http Request *Service*
- 23 **Calculate Retention** Code *Logic*
- 24 **API - Cleanup Old Logs** Http Request *Service*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Flog-n8n-workflow-errors-to-your-rest-api-with-slack)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**AI-Powered WhatsApp Business Assistant with Claude** 24 steps · Google Sheets, Slack](https://millionrounds.com/workflow/ai-powered-whatsapp-business-assistant-with-claude)
- [**Daily affirmations & weekly gratitude digest with Notion** 24 steps · Discord, Email](https://millionrounds.com/workflow/daily-affirmations-and-weekly-gratitude-digest-with-notion)
- [**Analyze Google Ads search terms with Claude and DeepSeek** 24 steps · calls a model · Discord, Slack](https://millionrounds.com/workflow/analyze-google-ads-search-terms-with-claude-and-deepseek)
- [**Assess AWS security posture changes with Claude and Slack** 24 steps · calls a model · Email, Slack](https://millionrounds.com/workflow/assess-aws-security-posture-changes-with-claude-and-slack)
- [**Coordinate smart factory operations with OpenAI and Slack** 24 steps · calls a model · Slack](https://millionrounds.com/workflow/coordinate-smart-factory-operations-with-openai-and-slack)
- [**Monitor Japan Flight Prices & Generate Booking Alerts** 24 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/monitor-japan-flight-prices-and-generate-booking-alerts)
