The Error Trigger fires automatically whenever any other workflow in your Flusso account encounters a fatal execution error. It lets you build a single, dedicated error-handling workflow that responds to failures across your entire automation setup โ sending alerts, logging details, or attempting recovery actions.
error_triggerIn any automated system, failures are inevitable. An external API might go down, a data field might be missing, or a step might produce an unexpected result that causes a downstream node to crash. Without an error-handling strategy, these failures are silent: you might not notice until a customer complains or a report is missing.
The Error Trigger solves this problem at a platform level. Rather than adding error handling logic to every individual workflow, you create one dedicated error-handler workflow that uses the Error Trigger as its first node. Every time any other workflow in your account fails, this error-handler fires and receives full details about what went wrong: which workflow, which run, which step, and the error message.
A typical error-handler workflow might send a Slack message to an operations channel, create a task in your project management tool, or send an email alert to the on-call engineer. More advanced error handlers can attempt to re-run the failed workflow automatically, or take compensating actions (such as cancelling a partially-processed order) to restore a consistent state.
The Error Trigger provides detailed information about the failed workflow run:
| Variable | Type | Description |
|---|---|---|
trigger.output.workflow_id |
String (UUID) | The unique identifier of the workflow that failed. |
trigger.output.workflow_name |
String | The human-readable name of the workflow that failed, as set in the workflow settings. |
trigger.output.run_id |
String (UUID) | The unique identifier of the specific run that failed. You can use this to look up the run in the Monitor view. |
trigger.output.step_key |
String | The key of the step within the workflow where the error occurred. Corresponds to the step key shown in the workflow editor. |
trigger.output.error_message |
String | The error message produced by the failed step. This is the same message shown in the run detail view in the Monitor. |
Create a single workflow that listens for all errors across your account and posts an alert to a Slack channel.
#ops-alerts
and the message to:
For workflows that call flaky external APIs, you can use the Error Trigger to attempt an automatic retry via the Flusso API:
trigger.output.workflow_name matches the specific workflow you want to
retry (so you don't retry every failed workflow).