ap_add_branch
ap_add_branchAdd a conditional branch to a router step. Inserted before the fallback branch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flowId | Yes | The id of the flow | |
| branchName | Yes | Display name for the new branch (e.g. "Branch 1") | |
| conditions | No | Conditions array (outer array = OR groups, inner array = AND conditions). Required for condition-type branches; omit to use an empty condition group. | |
| routerStepName | Yes | The name of the ROUTER step to add a branch to. Use ap_flow_structure to get valid values. |