# Routes


You are sending different records down different paths. Each heading is one part of a route.

## Routes [#routes]

Branches, loops or samples records based on one field of a step's output.

In the builder, you find this under Canvas.

### Use it when

- Different records should take different next steps.
- The choice depends on one field of this step output.

### Related

- [Route by](#route-by)
- [Configure a workflow](/tasks/workflow)

## Route by [#route-by]

One field from this step's own output, because routing cannot read other steps.

In the builder, you find this under Routes.

### Use it when

- The branch should read one field this step itself produced.
- You must not expect the route to read a field from another step.

### Related

- [Routes](#routes)
- [Field path](#field-path)

## Field path [#field-path]

The output field to branch on; a path that never resolves sends every record to the default.

In the builder, you find this under Routes.

### Use it when

- You are naming the output field to branch on.
- A path that never resolves should send every record to the default.

### Related

- [Route by](#route-by)
- [Route roles](#roles)

## Route roles [#roles]

next continues, case branches on a value, default catches the rest, loop goes back, done finishes.

In the builder, you find this under Connection labels.

### Use it when

- A record should continue, branch on a value, or fall through to a default.
- A record should go back to an earlier step.

### Related

- [Field path](#field-path)
- [Send it back at most](#loop-cap)
- [Configure a workflow](/tasks/workflow)
- [Get your first authorized data](/api/api-data)

## Send it back at most [#loop-cap]

Limit on how many times a record can return to an earlier step.

In the builder, you find this under Routes.

### Use it when

- A record should return to an earlier step only a limited number of times.
- You are setting that limit so a record cannot loop without end.

### Related

- [Route roles](#roles)
- [Once the limit is spent](#exhausted)
- [Export every delivered record](/api/cli-export)
- [Let a coding agent run these commands](/api/cli-mcp)

## Once the limit is spent [#exhausted]

Where a record goes after its last allowed loop.

In the builder, you find this under Routes.

### Use it when

- A record has used its last allowed loop and needs a next step.
- You are choosing where it goes once the limit is spent.

### Related

- [Send it back at most](#loop-cap)
- [Otherwise](#otherwise)

## Otherwise [#otherwise]

Catches records whose field matches no case, and without it they fall through.

In the builder, you find this under Routes.

### Use it when

- A record matches none of your cases and still needs a path.
- Without this catch, those records fall through.

### Related

- [Once the limit is spent](#exhausted)
- [Stuck](#stuck)
- [Run a Campaign well](/tasks/operate)
- [Use an agent with Humanbased](/api/agent-access)

## Stuck [#stuck]

Parked records that matched no route, waiting for you to act.

In the builder, you find this under Step counts.

### Use it when

- A record matched no route and is waiting.
- You need to see those parked records and decide what to do.

### Related

- [Otherwise](#otherwise)
- [Use the Humanbased CLI](/api/cli)
- [Withdraw USDC and check its status](/rewards/withdraw)
