J.

Jev Vendor request routing Code Example

Get external requests to the person with the right responsibility.

Updated data processing agreement

Subject Updated data processing agreement
Vendor Type analytics
Renewal next month

Who should review this first?

0% Privacy and legal.
Privacy and legal 83%
IT helpdesk 12%
Marketing 5%

Let the application privacy and legal.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "subject": "Updated data processing agreement",
  "vendor_type": "analytics",
  "renewal": "next month"
};

const decision = await evaluateDecision({
  state,
  question: "Who should review this first?",
  options: ["Privacy and legal","IT helpdesk","Marketing"],
});

// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Privacy and legal"
    && decision.probability >= 0.85) {
  routeVendorRequest(decision);
} else {
  queueForReview(decision);
}

This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.