← All examples
83 / 100
Jev Inbound lead routing Code Example
Send an inquiry to the team suited to its scope.
We need SSO and 2,000 seats across five regions.
Message We need SSO and 2,000 seats across five regions.
Source contact form
Which sales team should respond?
0%
Enterprise.
Let the application enterprise.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"message": "We need SSO and 2,000 seats across five regions.",
"source": "contact form"
};
const decision = await evaluateDecision({
state,
question: "Which sales team should respond?",
options: ["Enterprise","Self-serve","Partnerships"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Enterprise"
&& decision.probability >= 0.85) {
routeLead(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.