def create_order_flow_state_predicate():
return {
"transition_kind": "branch",
"question_to_evaluate": "What is the user trying to do?",
"possible_values": ["place_order", "track_order", "return_item", "get_support"],
"re_evaluate": True,
"value_to_node": {
"place_order": {
"transition_kind": "branch",
"question_to_evaluate": "What product are they interested in?",
"possible_values": ["product_selected", "need_recommendation"],
"value_to_node": {
"product_selected": {
"transition_kind": "end",
"question_to_evaluate": "Proceeding to checkout..."
},
"need_recommendation": {
"transition_kind": "end",
"question_to_evaluate": "Let me recommend some products."
}
}
},
"track_order": {
"transition_kind": "end",
"question_to_evaluate": "Please provide your order number."
},
"return_item": {
"transition_kind": "end",
"question_to_evaluate": "I'll help with the return. What's your order number?"
},
"get_support": {
"transition_kind": "end",
"question_to_evaluate": "What issue are you experiencing?"
}
}
}