AptlyStar

Workspace Event

Trigger workflows from workspace run events and alert rules

The Workspace Event trigger reacts to run activity inside your workspace without exposing a public webhook URL. Use it to chain automation when workflows fail, when failure rates spike, or when watched workflows go quiet.

How it works

  1. Add the Workspace Event block as your workflow trigger.
  2. Choose whether to watch all workflows or specific workflow IDs.
  3. Select an alert rule.
  4. Deploy the workflow — AptlyStar registers an internal subscription (HTTP deliveries to this trigger are rejected).

After each run completes, AptlyStar evaluates subscriptions in the same workspace. Matching rules queue the target workflow through the internal webhook executor.

No activity rules are evaluated on the inactivity polling schedule (same cron job as workspace notification inactivity checks).

Alert rules

RuleWhen it fires
Any failed runImmediately after a watched workflow finishes with an error
Failure rateError rate exceeds the default threshold over the rolling window
Consecutive failuresWatched workflow fails repeatedly in a row
No activityNone of the watched workflows have run within the inactivity window

Alert rules respect a cooldown period to prevent repeated triggers.

Configuration

ParameterTypeRequiredDescription
allWorkflowsbooleanNoWatch every deployed workflow in the workspace
workflowIdsstringNoComma-separated workflow IDs when not watching all workflows
alertRulestringYesOne of execution_failed, failure_rate, consecutive_failures, no_activity

Output

ParameterTypeDescription
eventstringEvent name (for example workflow.execution.completed)
sourceWorkflowIdstringWorkflow that emitted the event
executionIdstringSource run ID
statusstringSource run status
triggerstringSource trigger type
durationMsnumberSource run duration in milliseconds
costnumberSource run cost total

On this page