# Create decide node with conditions
decide = DecideNode(
id="route_support",
provider_model_name="claude-3-5-sonnet-20241022",
conditions=[
Condition("billing", "User needs billing help"),
Condition("technical", "User has technical issues")
]
)
# Create target nodes
billing_help = SendTextNode(id="billing", message="Billing support")
tech_help = SendTextNode(id="tech", message="Technical support")
# Connect with matching edge labels
flow.add_edge("route_support", "billing", "billing") # Label matches condition
flow.add_edge("route_support", "tech", "technical") # Label matches condition