Skip to content

How do I run steps when a workflow fails?

The Error Trigger runs when this workflow fails. Connect it to a notification so you hear about problems the moment they happen.

  1. Add the Error Trigger to the same canvas as the workflow it watches. It isn’t offered as a workflow’s first trigger, because it only makes sense next to one.
  2. Connect it to a step that tells you: WhatsApp, Slack, Telegram or Email.
  3. In the message, use the error details from the trigger: which step failed, the error message and the time.
Error Trigger ──▶ WhatsApp: "⚠️ {{...workflow...}} failed at {{...step...}}: {{...error...}}"
  • When a run fails: a step fails and its setting is Stop the workflow (the default).
  • Not when a failure was handled, for example by a skip, a backup value or an error path. Those runs finish as Completed with warnings.
  • If a step is set to retry later, the Error Trigger waits until the last retry has failed.
Error TriggerA step’s error path
CoversThe whole workflowOne step
Use for”Tell me when anything breaks""If this payment check fails, send the customer a different message”

See when a step fails for retries, backup values, skips and error paths.

Questions

When does the Error Trigger run?

When a run fails, that is when a step fails and is set to stop the workflow. It doesn't run for failures that were handled.

Where do I add the Error Trigger?

On the same canvas as the workflow it watches, connected to a notification step.

What's the difference between the Error Trigger and an error path?

The Error Trigger covers the whole workflow. An error path handles one step's failure in its own way.