Before I build anything real on a client instance, the first workflow I make is an error workflow. It takes about fifteen minutes and it has caught more problems for me than any monitoring tool I tried.
Setup is simple. One workflow with an Error Trigger as the first node. Then in each workflow that matters, open workflow settings and point Error workflow at it. One detail from the docs that bit me: a workflow that itself contains the Error Trigger uses itself as its own error workflow. Fine, but that covers nothing else, so every other workflow needs the setting set separately.
Inside the error workflow I keep it boring:
-
A Code node that builds a short message from the payload. The Error Trigger gives me execution.id, execution.url, error.message, error.stack, lastNodeExecuted and the workflow name. The url is the underrated part, it opens the exact failed run in the UI, so whoever gets the alert lands on the execution instead of digging through history.
-
A Slack message to a channel per client. I stopped sending these to my own DMs after a busy week where I muted myself out of my own alerts.
-
A row into a Postgres table with the same fields. Slack scrolls away, the table does not. My weekly scan of that table finds the quiet failures nobody reported, usually a rate limit that retried into a wrong state.
Two gotchas worth knowing. If the failure happens in the trigger node of the main workflow, execution.id and execution.url are missing and you get a smaller payload with the details in a trigger object instead. My Code node handles both shapes now, but only after the error workflow itself crashed silently once and I heard about it from the client. Also, you cannot test this by running manually. The Error Trigger only fires on automatic runs, so I fire one real failure on purpose, a dummy HTTP node pointed at a 500, and watch the whole chain once.
I also keep the error workflow free of anything flaky. If the handler itself calls an API that can fail, the alert dies with the failure and you hear about it from the client instead.
Curious what others log versus alert on. Do you keep a full copy of the error payload in the table or just the summary fields?