Get an alert when an n8n workflow fails
Set up an error workflow to identify the failed automation and find its execution.
What you will create
Prepare a useful alert when an n8n automation fails. The message should help you identify the workflow and decide what to inspect. An alert flags a problem; it does not prove that previous actions were undone or repair the workflow by itself.
Before you start
Use a test workflow without actions affecting customers, orders or payments. Choose an authorised alert destination, such as a test address or dedicated internal channel. Do not include the entire data payload in the notification: it may contain confidential information.
Step-by-step
- Create the error handler. Prepare a separate workflow starting with Error Trigger. Name it clearly so it is easy to find in settings.
- Build a concise notification. Add the sending action appropriate to your destination. Include the workflow name, an error summary and the execution link when available. Provide fallback text when that link is absent.
- Link the monitored workflow. Select the handler in its Error workflow settings and save. Current documentation also requires publishing the workflow containing Error Trigger; check this step in your version.
- Test appropriately. In a demonstration workflow, use Stop And Error with a clear fictional message. Start it through an automatic trigger: a manual execution does not trigger Error Trigger.
- Finish the test. Confirm receipt, then remove the deliberate error from the route or stop the test trigger. Otherwise, you may receive repeated alerts without a new real problem.
Example to adapt
Test message: “ALERT TEST — required field missing in DEMO-001”. The expected notification identifies the demonstration workflow and this error without copying the other data. Add an internal instruction: “Check the last successful step before retrying.” This helps prevent repeating an action that already completed.
Check your result
Check the actual destination, readable contents and whether the person responsible can open the link. Then test a successful route: it should not produce a failure alert. Compare notifications with execution history. A missing link is not necessarily a message defect, particularly when a trigger fails before a saved execution exists.
Common problems
- No alert follows a manual test: check the test's execution mode.
- The wrong workflow is named: inspect mapped fields rather than using a fixed name.
- Sending also fails: check the destination connection and permissions separately; alert delivery depends on another service.
- Alerts multiply: look for an active test or recurring error before introducing automatic retries.
Next steps
Explore the n8n tool page. Record who handles alerts, how to inspect partial effects and when an execution may safely resume.








