Skip to main content
Demonstrates building a multi-step interactive decision tree using sequential top-level Condition steps. Each Condition pauses for user confirmation, enabling workflows where the user guides execution through multiple branching decisions.
decision_tree.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Run the example

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