Skip to main content
Use HITL with nested step lists in Router choices. When choices contain nested lists like [step_a, [step_b, step_c]], the nested list becomes a Steps container that executes ALL steps in sequence when selected.
router_nested_choices.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Run the example

Save the code above as router_nested_choices.py, then run:
Full source: cookbook/04_workflows/08_human_in_the_loop/router/03_router_nested_choices.py