Skip to main content
Routers support two HITL modes: user selection (user chooses routes) and confirmation (user approves automated routing).

User Selection

Let users choose which route(s) to execute. The router pauses and presents available choices.

Parameters

Selection Methods

Multiple Selection

Allow users to select multiple routes. Selected routes execute in sequence.
Handle multiple selections:
The selected steps execute in the order they appear in choices, not the selection order.

Confirmation Mode

Confirm automated routing decisions. A selector function determines the route, but the user must approve before execution.
Handle confirmation:

Confirmation Parameters

User Selection vs Confirmation

Use user selection when the user should decide the path. Use confirmation when the system decides but needs human approval.

Streaming

Handle router HITL in streaming workflows:

Developer Resources