← All examples
87 / 100
Jev CRM note quality Code Example
Find opportunity notes that lack a concrete next step.
Good call, they seem interested.
Note Good call, they seem interested.
Next Meeting none
Owner Ari
What is missing from this note?
0%
Next step and date.
Let the application next step and date.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"note": "Good call, they seem interested.",
"next_meeting": "none",
"owner": "Ari"
};
const decision = await evaluateDecision({
state,
question: "What is missing from this note?",
options: ["Next step and date","Nothing","Contact name only"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Next step and date"
&& decision.probability >= 0.85) {
requestCrmDetail(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.