How can I create a workflow that sends error alerts when a step fails?

I have a workflow that pulls data from an API and then processes it into a database. Occasionally, the API request fails or times out, and I only realize this when I check the logs manually. I’d like to create an automated way where if any node fails, I get an alert (maybe via email or Slack) with the error message and which node caused it. I’ve seen the “Error Workflow” option in n8n, but I’m not sure how to set it up so it captures errors globally across multiple workflows. How should I design this properly?

hi there, i got you @Jsmith , let me craft an answer, give me a few minutes

you are on the correct path on looking the “Error Workflow” option in n8n, because that is how you are supposed to handle error in your workflows

error workflow means that for any error that happens in any workflow, that error workflow will be triggered and you can do something with that, like send an email or slack message to yourself along with the information of the error, like which workflow got error, which execution, last node executed, and the error message

for example, this is my error handling workflow for sending the error information through telegram

hope it helps!

and for every workflow that you want to track if theres any error, you need to go to the setting of the workflow and then on the on Error Workflow, choose the workflow that you just made, like the one above

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.