Contents

Workflow Result Trigger

workflow_result_trigger · Nodes · Trigger · Trigger

Starts a workflow from another workflow result.

Workflow Result Trigger#

Trigger workflows when other workflows complete execution.

Overview#

The Workflow Result Trigger listens for completion events from workflow executions in your workspace. When a workflow finishes—whether successfully or with an error—this trigger can automatically start another workflow. This enables powerful automation patterns like:

  • Error handling workflows that notify you when critical workflows fail
  • Monitoring and logging workflows that track execution metrics
  • Chained workflows where one workflow's completion triggers downstream processing
  • Cleanup workflows that run after specific jobs finish

Warning contract: warnings are non-fatal execution diagnostics. Failed means the workflow execution failed. set_workflow_output only sets the returned workflow output; it is not a terminator or success marker. Required goal/effect nodes keep the default base_config.failure_mode = "stop": their failure stops the dependent branch and marks the workflow failed. "stop_workflow" is a rare emergency setting that immediately terminates the entire workflow, including independent branches.

When to Use#

Use this trigger when you need to:

  • Monitor workflow failures - Get notified (email, Slack, Discord) when important workflows fail
  • Build workflow chains - Trigger downstream processing after upstream workflows complete
  • Log execution metrics - Track success rates, durations, and outputs across your workflows
  • Implement retry logic - Create workflows that retry failed workflows with different parameters
  • Build dashboards - Collect workflow results for visualization and analysis

Configuration#

workflow_name_filter (optional)

Filter which workflow completions trigger this node. Uses substring matching.

  • Empty - Triggers on any workflow completion
  • "data-sync" - Triggers only on workflows with "data-sync" in their name
  • "backup" - Triggers only on backup-related workflows

status_filter (optional)

Filter by execution status:

  • "all" (default) - Triggers on both success and failure
  • "success" - Only triggers on successful completions
  • "failure" - Only triggers on failed executions

Inputs#

None. This is a trigger node that responds to workflow completion events.

Outputs#

output - Workflow result object with the following fields:

Field Type Description
id string ID of the completed workflow
name string Display name of the completed workflow
job_id string Unique execution ID for this run
status string "success", "failed", or "timeout"
duration_seconds number How long the workflow took to execute
outputs any The workflow's final output (if any)
errors object Error details if workflow failed
triggered_by object Information about what triggered the original workflow

Error Object Structure#

When status is "failed", the errors field contains:

{
  "message": "Workflow failed with error: ...",
  "failed_nodes": ["node-1", "node-2"]
}

Zero Data Retention workflows#

A completed workflow with zero data retention reports how it ended, not what it saw. Its result keeps id, name, job_id, status, duration_seconds, triggered_by, and errors.failed_nodes; outputs is null, warnings is empty, and errors.message names only the phase that failed (for example Workflow failed during execute. Details are not recorded under zero data retention.). A workflow that needs a ZDR workflow's output calls it as a subworkflow instead.

Anti-Circularity Protection#

To prevent infinite loops where workflows trigger each other indefinitely, this node has a hardcoded safety filter:

Workflows triggered by WorkflowResultTrigger are ignored.

When a workflow is triggered by a WorkflowResultTrigger node, the triggered_by.node_type field is set to "workflow_result_trigger". The node automatically skips any completion events with this marker, preventing:

  • A workflow from triggering itself via result triggers
  • Two workflows from creating a circular trigger loop (A→B→A)
  • Chains of result trigger workflows from causing event storms

Workflows triggered by other mechanisms CAN trigger this node:

  • SubworkflowNode (parent workflow triggers child, monitor child's completion)
  • CronTrigger
  • WebhookTrigger
  • ManualTrigger
  • API calls

This protection is automatic and cannot be disabled.

Examples#

Example 1: Email Notification on Failure#

Goal: Get an email when the "Daily Report" workflow fails

[Workflow Result Trigger]
    workflow_name_filter: "Daily Report"
    status_filter: "failure"
    ↓
[Email Send Node]
    To: "[email protected]"
    Subject: "Daily Report Failed"
    Body: "Workflow '{{ output.name }}' failed with error: {{ output.errors.message }}"

Example 2: Slack Notification for Any Workflow#

Goal: Post to Slack whenever any workflow completes

[Workflow Result Trigger]
    workflow_name_filter: (empty)
    status_filter: "all"
    ↓
[Transform Node]
    Script: |
      const emoji = output.status === 'success' ? '✅' : '❌';
      return {
        text: `${emoji} Workflow "${output.name}" completed in ${output.duration_seconds}s`
      };
    ↓
[HTTP POST Node]
    URL: "https://hooks.slack.com/services/YOUR/WEBHOOK/URL"

Example 3: Chained Data Processing#

Goal: Process data after the "Fetch Data" workflow completes successfully

[Workflow Result Trigger]
    workflow_name_filter: "Fetch Data"
    status_filter: "success"
    ↓
[AI Agent Node]
    Prompt: "Analyze this data: {{ output.outputs.data }}"
    ↓
[Table Insert Node]
    Store the AI analysis results

Example 4: Error Recovery Workflow#

Goal: Retry failed workflows with exponential backoff

[Workflow Result Trigger]
    workflow_name_filter: "Critical Import"
    status_filter: "failed"
    ↓
[If Node]
    Condition: Check if error is retryable
    ↓
[Delay Node]
    Wait: 5 minutes
    ↓
[Workflow Execute Node]
    Restart the original workflow

Tips#

  • Use specific name filters - Avoid triggering on every workflow by filtering for specific names
  • Check status before processing - The trigger fires even on failures, so check output.status in downstream nodes
  • Every completion counts - Each matching completion starts one run, in the order the workflows finished, including completions that arrive while earlier runs are still going
  • Access workflow outputs - Use {{ output.outputs }} to access the completed workflow's final output
  • Monitor trigger chains - Be careful not to create circular triggers (A triggers B, B triggers A)
  • Test with manual runs - Use the manual trigger in the source workflow to test your result trigger
  • Cron Trigger - For time-based workflow scheduling
  • Webhook Trigger - For external event-based triggering
  • Workflow Service - The underlying service that manages workflow execution

Inputs

None.

Outputs

  • output

Configuration

FieldTypeRequiredDescription
workflow_name_filterstringNoFilter by workflow name (empty to match all workflows)
status_filterenum(all, success, warning, failure, warning_or_failure)NoFilter by workflow completion status
base_configrecordNoShared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow).