← All examples
89 / 100
Jev Helpdesk ownership Code Example
Route employee requests without a maze of form fields.
My badge stopped opening the office door.
Message My badge stopped opening the office door.
Location Brisbane
Who should handle this request?
0%
Facilities.
Let the application facilities.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"message": "My badge stopped opening the office door.",
"location": "Brisbane"
};
const decision = await evaluateDecision({
state,
question: "Who should handle this request?",
options: ["Facilities","IT","People team"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Facilities"
&& decision.probability >= 0.85) {
routeEmployeeRequest(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.