Skip to main content
Demonstrates a decision tree mixing different HITL component types: Condition -> Loop -> Condition. Each pauses for user confirmation, enabling complex interactive workflows.
multi_component_decision_tree.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Run the example

Save the code above as multi_component_decision_tree.py, then run:
Full source: cookbook/04_workflows/08_human_in_the_loop/decision_tree/02_multi_component_decision_tree.py