Skip to main content
Logic nodes control the path a workflow takes. Add them from the Logic group in the node library.

Condition

Condition branches the flow. The subtitle is Create conditions to branch your workflow. The node has Yes and No outputs. Connect each output to a different path. The condition runs each time this node executes. Condition node

1. Write the condition

Enter a JavaScript expression. When it is true, the workflow follows the Yes branch. Otherwise it follows No. Example: input.score > 70 The expression is evaluated in an E2B sandbox and requires E2B_API_KEY.

2. Insert variables

Click a variable to insert it at the cursor in the condition field. Common Patterns is a dropdown of ready-made expressions you can start from. Use the delete control to remove the node, or X to close the panel.

While

While repeats steps while a condition is true. The subtitle is Loop while a condition is true. Connect the loop body using the Continue handle. The workflow repeats until the condition is false or the max iterations limit is reached. While node

1. Loop condition

Keep looping while this JavaScript expression is true, up to the max iterations limit. Example: iteration < 10 The expression is evaluated in an E2B sandbox and requires E2B_API_KEY.

2. Insert variables

Click a variable to insert it at the cursor in the loop condition field.

3. Safety limit

Safety limit to prevent infinite loops. The default in the panel is 1000. Common Patterns is a dropdown of ready-made expressions you can start from.

User Approval

User Approval pauses the workflow until a person approves or rejects the step. The subtitle is Pause for a human to approve or reject a step. Use ${variable} placeholders in the message. User Approval node

1. Approval message

Text shown to the reviewer. Use ${variableName} to insert dynamic values from your workflow. Example: Please review and approve this step

2. Insert variables

Click a variable to insert it at the cursor in the approval message. These chips use ${...} placeholders.

3. Timeout

How long to wait for approval before timing out. The default in the panel is 30. Common Message Patterns is a dropdown of ready-made messages you can start from.

4. How it works

The workflow pauses at this node and notifies the user with your approval message.