# Decision point
decision = DecideNode(
id="check_complexity",
conditions=[
Condition(label="simple", description="Issue is simple"),
Condition(label="complex", description="Issue requires human help")
]
)
# Automated response
simple_response = SendTextNode(
id="automated_help",
message="Here's how to resolve this issue..."
)
# Human handoff
complex_handoff = HandoffNode(id="human_assistance")
# Connect decision paths
flow.add_edge("check_complexity", "automated_help", "simple")
flow.add_edge("check_complexity", "complex_handoff", "complex")