Use a Sim Workspace Events trigger to run an alert workflow when another workflow fails, slows down, exceeds a cost threshold, or goes quiet. Add delivery blocks for the channel you use, such as Slack, email, or an incident API.
Before you start
You need permission to create and deploy the alert workflow, a credential for its delivery service, and a watched test workflow where you can reproduce the condition.
Example: notify Slack after repeated failures
- Create a workflow with Sim Workspace Events as its trigger.
- Set Event to Consecutive Failures and Consecutive Failures to
3. - Select the source Workflows. Leave the field empty to watch the workspace.
- Add a Slack block that sends a message to your incident channel. Choose the intended Slack account and channel.
- Include the trigger's
workflowNameandtriggeringRun.runIdin the message using the reference picker. For a trigger namedworkspaceevent, the message can be:
Workflow <workspaceevent.workflowName> has failed repeatedly.
Latest run: <workspaceevent.triggeringRun.runId>- Deploy the alert workflow to activate it.
Verify the alert
Trigger three consecutive failures in a watched test workflow. Inspect the alert workflow's run log, confirm its delivery block completed, and check the Slack message for the source workflow and run ID.
Choose another condition
Choose Run Error to respond to each failed run. Other conditions include failure rate, error count, latency, cost, and inactivity. Cost thresholds use credits. See the event and rule reference for settings, defaults, and event-specific outputs.
Run-backed alert rules have a one-hour cooldown after firing. No Activity has a per-watched-workflow cooldown of at least one hour or the inactivity window, whichever is longer. Plain events such as Run Error have no rule cooldown. Rate-based rules need at least five runs in their window. A subscription does not receive events about its own workflow, and runs started by this trigger do not emit new workspace events.
If an alert is missing
Delivery behavior comes from the action blocks you configure. Check that the alert workflow is deployed, the source workflow matches its filter, the condition and cooldown allow it to fire, and the delivery block completed successfully.
Related docs
- Sim Workspace Events for event settings and outputs
- Logs for tracing a failed alert run