curl --request POST "https://api.mixroute.ai/typesafe/v1/systemone" \
--header "Authorization: Bearer $MIXROUTE_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"model": "jev-1.13.0",
"state": "I was charged twice for order 123. Please refund the duplicate charge today.",
"questions": {
"department": {
"type": "choice",
"instructions": "Which team should handle this request?",
"criteria": {
"billing": "Duplicate charges, payments and refunds",
"technical": "Broken software and integration issues",
"shipping": "Shipment delivery and tracking"
}
},
"urgency": {
"type": "score",
"instructions": "How time-sensitive is the request?",
"criteria": [
"No deadline; routine request",
"Needs attention within a week",
"Explicitly requires action today"
]
},
"duplicate_charge": {
"type": "noul",
"instructions": "The customer was charged twice for the same order.",
"criteria": {
"true": "Explicit duplicate payment for the same order",
"false": "No duplicate payment is mentioned"
}
}
}
}'