J.

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.
Wrong item 86%
Fit issue 10%
Changed mind 4%

Let the application wrong item.

Code
Conceptual pseudocode — not official Jev SDK syntax
// 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.