Workflow Automation

How to Monitor n8n Workflows and Get Slack Alerts When They Fail

Automations fail quietly. Here is how to catch n8n errors, send one Slack alert per incident, let your team acknowledge and resolve it, remember every fix and notice when a feed goes silent.

Kode X Labs logo
Kode X Labs team · 5 min read
inX
Slack alert for a failed workflow with repeat count, last fix and Acknowledge and Resolve buttons

Key takeaways

  • Automations fail quietly. Without monitoring, the first sign is often a customer who never got their message.
  • n8n can run an error workflow whenever another workflow fails. That is where alerts start.
  • Send one alert per incident and update it when the error repeats, so the channel stays readable.
  • Let people acknowledge and resolve alerts in Slack, and store the fix so the next alert already shows it.
  • Watch for silence too: a feed that stops sending is as serious as one that errors.

Why do automations need monitoring?

Automations need monitoring because they fail without telling anyone. A token expires, an API changes a field, a form sends an empty value, and the workflow stops. Monitoring means someone finds out within moments, with enough detail to fix it.

Everything fails, all the time.

Werner VogelsCTO of Amazon Source

The more a business runs on automations, the more each silent failure costs: leads that never got a reply, bookings that never reached the calendar, reports that are quietly wrong.

How do you catch errors in n8n?

n8n lets you set an error workflow for each workflow. When a run fails, n8n starts the error workflow with an Error Trigger node and passes it the details: which workflow, which step, the error message and a link to the failed execution. Point all your production workflows at one shared error workflow, and you have a single place where every failure arrives.

What should a good alert include?

  • The workflow name and the step that failed.
  • The error message, in full.
  • A link straight to the failed execution, so whoever fixes it lands on the exact run that broke.
  • How many times it has happened.
  • Who is handling it, and how it was fixed last time.

How do you stop alerts flooding the channel?

Four repeated error events collapsing into one Slack alert with a repeat count
Four failures, one message: repeats update the count instead of flooding the channel.

One failing workflow that runs every minute can post sixty messages an hour, and people stop reading the channel. Keep a record of open incidents in a database. When an error arrives, check whether the same error is already open. If it is new, post a message. If it is a repeat, update the original message with a count instead of posting another.

How do you stop two people fixing the same error?

Add buttons to the Slack message. Whoever picks up the error taps Acknowledge, and the alert shows who has it. When it is fixed they tap Resolve and write one line on what fixed it. That note is stored, so when the same error comes back, the alert shows the previous fix straight away.

Slack only shows the buttons. Each press goes to a small endpoint you host, such as a Vercel function, which updates the database and rewrites the Slack message.

Can you monitor systems outside n8n?

Yes. Anything that can send a webhook can report into the same pipeline. In Watchtower, n8n errors arrive through the error workflow, while GoHighLevel, Supabase and Vercel report in through an external webhook. Everything is converted into one format, so every alert looks the same whatever system it came from.

How do you notice when something goes silent?

Hope is not a strategy.

Google SRE bookTraditional site reliability engineering saying Source

Errors are the easy case. The harder one is a feed that simply stops sending. Record a heartbeat every time an event arrives from each source, and check it on a schedule. When a source has been quiet for longer than normal, raise an alert just as you would for an error.

What does the whole setup look like?

PartJob
n8n error workflowCatches every failed run and sends the details on
External webhookLets GoHighLevel, Supabase, Vercel and other systems report errors
Supabase (Postgres)Decides new or repeat, stores the Slack message ID, keeps the history of fixes and heartbeats
SlackShows the alert with Acknowledge and Resolve buttons
Vercel endpointHandles button presses, updates Supabase and rewrites the message
Alert pipeline: n8n, GoHighLevel, Supabase and Vercel report through a webhook into Supabase, then Slack, with a Vercel endpoint for buttons
Every system that can send a webhook reports into the same pipeline.

How do you set up n8n Slack alerts step by step?

  1. Create one workflow that starts with an Error Trigger node.
  2. In each production workflow’s settings, choose that workflow as its error workflow.
  3. Format a message with the workflow name, failing step, error and execution link.
  4. Look up the error in a database table to decide whether it is new or a repeat.
  5. Post a new Slack message for new errors, or update the existing one for repeats.
  6. Add Acknowledge and Resolve buttons, handled by a small endpoint you host.
  7. Store each resolution note so the next alert for the same error shows the fix.

What should you monitor first?

Start with the workflows where a silent failure costs money or customers:

  • Lead capture and first follow-up.
  • Payments, checkouts and account set-up.
  • Syncs between your CRM and other systems.
  • Anything a customer would notice before you do.

Key terms

Error Trigger
The n8n node that starts a workflow whenever another workflow fails.
Deduplication
Recognising a repeat of an open error and updating one alert instead of posting many.
Acknowledge
Marking an alert as taken, so the team knows who is handling it.
Heartbeat
A regular signal that shows a system is still sending data; missing heartbeats reveal silent failures.
SRE
Site reliability engineering: the practice of keeping systems running and recovering quickly.
Incident
One problem that needs attention, which may produce many repeated errors.

Frequently asked questions

Does n8n have built-in error alerts?

n8n has error workflows: a workflow that runs whenever another one fails. You decide what that error workflow does, such as posting to Slack, sending an email or opening an incident.

Can I send n8n alerts somewhere other than Slack?

Yes. The error workflow can send to any app n8n connects to. For a B2B outreach agency we also wired PagerDuty into its n8n error workflows for on-call paging.

How do I stop duplicate alerts for the same error?

Store open incidents in a database. When an error arrives, check whether the same one is already open, and update the existing Slack message with a count instead of posting a new one.

Can the same setup monitor Make.com or other tools?

Yes, as long as the tool can send a webhook when something fails. Each source is converted into one alert format, so they all work the same way in Slack.

Do I need a database for automation monitoring?

For basic alerts, no. To group repeats, track who is handling each error, remember fixes and notice silence, yes. Watchtower uses Supabase for that.

Sources

  1. The Next Web: Werner Vogels, Everything fails all the time (2008)
  2. Google: Site Reliability Engineering, Introduction
  3. n8n docs: Error handling

Examples from our own work come from the linked case studies. Illustrations are by Kode X Labs; photos are from Pexels and used under the Pexels licence.

Kode X Labs logo
Written byKode X Labs team

An AI automation and software agency in Lahore, Pakistan. We write these guides from the AI agents, automations and apps we build and run for clients.

About us →
Book a free call ->