← All examples
30 / 100
Jev Return reason classification Code Example
Make messy return comments useful to operations.
Ordered medium but received a small.
Comment Ordered medium but received a small.
Item Condition unopened
What caused the return?
0%
Wrong item.
Let the application wrong item.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"comment": "Ordered medium but received a small.",
"item_condition": "unopened"
};
const decision = await evaluateDecision({
state,
question: "What caused the return?",
options: ["Wrong item","Fit issue","Changed mind"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Wrong item"
&& decision.probability >= 0.85) {
classifyReturn(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.