001 Support ticket routing
Which team should handle this ticket? Support
Send the problem to the team that can actually solve it.
State
{
"message": "Charged twice after upgrading.",
"invoice": "INV-204",
"plan": "Pro"
} Question
Which team should handle this ticket?
Result Illustrative
- Billing 91%
- Technical 6%
- Account 3%
Fictional input. Illustrative probabilities.
Validate thresholds on your own data.
Code Conceptual pseudocode
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"message": "Charged twice after upgrading.",
"invoice": "INV-204",
"plan": "Pro"
};
const decision = await evaluateDecision({
state,
question: "Which team should handle this ticket?",
options: ["Billing","Technical","Account"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Billing"
&& decision.probability >= 0.85) {
routeToTeam(decision);
} else {
queueForReview(decision);
}