Dr. Violet Howard shows how to set up error handling in n8n by creating an error logger workflow that captures failing nodes and error messages, then routes them to Google Sheets and sends Slack notifications. A live demo shows an intentional error triggering the full pipeline.
Chapters
This is how you can set up error workflows in n8n in under a minute. All right, so here's the workflow that we're gonna be using today as our test workflow that we're gonna purposely make error, and then we're gonna capture those errors in a different one and feed that into a Google Sheet template as well as some sort of Slack or email notification. Okay, so you guys are gonna be pretty surprised by how simple this workflow's gonna be. I'm gonna add a first step and I'm gonna type in error. And as you can see, there's an error trigger which says triggers the workflow when another workflow has an error. So quickly pay attention to the fact that I named this workflow error logger. I'm gonna go back into my Ultimate Assistant active workflow. Up in the top right, I'm gonna click on these three dots, go down to settings, and then right here there's a setting called error workflow, which as you can see, a second workflow to run if the current one fails. The second workflow should always start with an error trigger. So all I have to do is choose a workflow. I'm gonna type in error, and we called it error logger, so I'm gonna choose that one, hit save, and now these two workflows are basically linked so that if this workflow ever has an error that stops the workflow, it's going to be captured in our second one over here with the information. So let's see a quick example of that. So let's once again say, hey, and we should see that nothing's gonna come back over here. Um, I believe if we go into our error logger, we should see something pop through. We just got that row and you can see the node changed, the error message changed, all that kind of stuff. And then in Slack, we got another workflow error at a new time and it was a different node. If you wanna watch the full video, the link for that will be down in the description and I'll see you guys over there.