← All examples
88 / 100
Jev Outreach relevance Code Example
Check a draft against the prospect’s stated problem.
Reducing manual reconciliation.
Problem Reducing manual reconciliation.
Draft Our social media analytics are industry leading.
Is this outreach relevant?
0%
Rewrite.
Let the application rewrite.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"problem": "Reducing manual reconciliation.",
"draft": "Our social media analytics are industry leading."
};
const decision = await evaluateDecision({
state,
question: "Is this outreach relevant?",
options: ["Rewrite","Ready","Need discovery"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Rewrite"
&& decision.probability >= 0.85) {
holdOutreachDraft(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.