Skip to main content

conditional

Branch workflow execution based on a condition. Returns nextNodeId for the selected branch.
  • Category: logic
  • Estimated Duration: 0s
  • Capabilities: supportsRerun

Input

condition
object
required
The condition to evaluate.
trueNodeId
string
required
Node ID to execute if condition is true.
falseNodeId
string
required
Node ID to execute if condition is false.

Output

FieldTypeDescription
conditionMetbooleanWhether the condition evaluated to true
selectedBranch'true' | 'false'Which branch was selected

Example

{
  condition: {
    type: 'greater_than',
    variableName: 'contacts.length',
    value: 0,
  },
  trueNodeId: 'send-emails',
  falseNodeId: 'no-contacts',
}

end

Mark the end of a workflow branch.
  • Category: logic
  • Estimated Duration: 0s

Input

message
string
Optional completion message.

Output

FieldTypeDescription
completedbooleanAlways true
messagestring?Echo of input message

delay

Pause workflow execution for a specified duration.
  • Category: logic
  • Capabilities: supportsCancel

Input

durationMs
number
required
Duration in milliseconds (0–3,600,000, max 1 hour).
message
string
Optional log message.

Output

FieldTypeDescription
waitedbooleanAlways true
actualDurationMsnumberActual time waited
messagestring?Echo of input message