J.
95 / 100

Email routing

A customer asks to cancel next month's renewal while keeping access until the paid period ends.

Which workflow should start?

Cancellation review94%
Immediate deletion4%
Billing question2%
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "subject": "Please cancel next month’s renewal",
  "body": "Keep access until the paid period ends."
};

const decision = await evaluateDecision({
  state,
  question: "Which workflow should start?",
  options: ["Cancellation review","Immediate deletion","Billing question"],
});

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

Start the cancellation review and preserve access until the paid period ends.