> ## Documentation Index
> Fetch the complete documentation index at: https://docs.workmore.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Flow

> Steps that control the path your process takes — branching, splitting, combining, waiting.

Steps that control the path your process takes — branching, splitting, combining, waiting.

## Branch

<code>logic.ifElse</code> · action

Two-way conditional routing. True output and false output MUST go to different downstream nodes.

**Settings**

| Setting       | Required | What it does |
| ------------- | -------- | ------------ |
| Match mode    | No       |              |
| Conditions    | Yes      |              |
| Convert types | No       |              |
| Options       | No       |              |

**Produces**

* `true` — True
* `false` — False

***

## Combine Records

<code>flow\.combineItems</code> · action

Combine all records into a single record containing an array. Use before summarizing or sending a batch.

**Settings**

*No configuration.*

**Produces**

* `result` — All Records
* `count` — Count

***

## No-Op

<code>flow\.noop</code> · action

Runtime durability checkpoint. Forces a flush in the batched runtime so all prior entries are persisted before continuing. Use before destructive or irreversible steps in high-stakes flows.

**Settings**

*No configuration.*

**Produces**

* `output` — Output

***

## Route

<code>logic.route</code> · action

Route to the first matching case based on a discriminant.

**Settings**

| Setting                 | Required | What it does |
| ----------------------- | -------- | ------------ |
| Discriminant (JMESPath) | No       |              |
| Cases                   | No       |              |

**Produces**

* `default`

***

## Run Sub-workflow

<code>flow\.subWorkflow</code> · action

Execute another workflow on this canvas and optionally wait for its result. The target workflow must start with a Sub-workflow Trigger.

**Settings**

| Setting             | Required | What it does |
| ------------------- | -------- | ------------ |
| Target Sub-workflow | Yes      |              |
| Input Data          | No       |              |
| Wait for Result     | No       |              |

**Produces**

* `result` — Workflow Result
* `success` — Success
* `nodesExecuted` — Nodes Executed

***

## Split Into Records

<code>flow\.splitIntoItems</code> · action

Split an array field into individual records. Each element becomes a separate record flowing downstream.

**Settings**

| Setting        | Required | What it does                                                                      |
| -------------- | -------- | --------------------------------------------------------------------------------- |
| Array to split | Yes      | Select an array field from an upstream node. Each element becomes its own record. |

**Produces**

* `item` — Record

***

## Stop and Error

<code>flow\.stopAndError</code> · action

Halt the entire workflow with an error message. Use when a condition means execution should not continue.

**Settings**

| Setting                   | Required | What it does |
| ------------------------- | -------- | ------------ |
| Error Message             | Yes      |              |
| Error Category (optional) | No       |              |

**Produces**

*No outputs.*

***

## Wait

<code>flow\.wait</code> · action

Wait for a specified time before continuing.

**Settings**

| Setting  | Required | What it does |
| -------- | -------- | ------------ |
| Duration | No       |              |

**Produces**

* `result` — Result

***

## Wait for All

<code>flow\.waitForAll</code> · action

Wait for all parallel paths to complete before continuing. Results from all paths are available downstream.

**Settings**

*No configuration.*

**Produces**

* `result` — Result

***

## Webhook Response

<code>flow\.webhookResponse</code> · action

Send a custom HTTP response back to the webhook caller. Only effective in webhook-triggered workflows.

**Settings**

| Setting                     | Required | What it does |
| --------------------------- | -------- | ------------ |
| Status Code                 | No       |              |
| Response Body               | No       |              |
| Response Headers (optional) | No       |              |

**Produces**

* `responded` — Responded
