curl --location 'https://api.crazyrouter.com/api/alpha/decisions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "jev-1.13",
"state": "A customer requests a refund after being charged twice for the same order.",
"questions": {
"action": {
"type": "choice",
"instructions": "Choose the best next action for the support agent.",
"criteria": {
"refund": "Refund the duplicate charge",
"deny": "Deny the request",
"escalate": "Escalate to a human"
}
},
"urgency": {
"type": "score",
"instructions": "Rate urgency from 1 (low) to 5 (high).",
"criteria": [
"1",
"2",
"3",
"4",
"5"
]
}
}
}'