Skip to main content

conditional

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

Input

condition
object
required
Condition to evaluate.
  • condition.type: 'equals' | 'not_equals' | 'greater_than' | 'less_than' | 'contains' | 'exists'
  • condition.variableName: Variable path using dot notation
  • condition.value: Comparison value
trueNodeId
string
required
Node to execute when condition is true.
falseNodeId
string
required
Node to execute when condition is false.

Output

FieldTypeDescription
conditionMetbooleanResult of the evaluation
selectedBranchstring'true' or 'false'

Example

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

end

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

Input

message
string
Optional completion message.

Output

FieldTypeDescription
completedbooleanAlways true
messagestringEchoed 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 duration
messagestringEchoed input message