← All examples
9 / 100
Jev Refund request intent Code Example
Separate a refund request from a question about policy.
Please return last month’s payment. I cancelled before renewal.
Message Please return last month’s payment. I cancelled before renewal.
Charge Status settled
What does the customer want?
0%
Request refund.
Ask for what is needed before choosing request refund.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"message": "Please return last month’s payment. I cancelled before renewal.",
"charge_status": "settled"
};
const decision = await evaluateDecision({
state,
question: "What does the customer want?",
options: ["Request refund","Explain policy","Download receipt"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Request refund"
&& decision.probability >= 0.85) {
openRefundReview(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.