← All examples
22 / 100
Jev Churn signal triage Code Example
Turn account activity into a review queue for customer success.
The application receives context for a churn signal triage decision.
Active Seats 18 to 3
Feedback We are evaluating replacements.
Period 30 days
Which retention review queue fits?
0%
High attention.
Let the application high attention.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"active_seats": "18 to 3",
"feedback": "We are evaluating replacements.",
"period": "30 days"
};
const decision = await evaluateDecision({
state,
question: "Which retention review queue fits?",
options: ["High attention","Monitor","Healthy"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "High attention"
&& decision.probability >= 0.85) {
queueRetentionReview(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.