J.

Jev Survey follow-up Code Example

Route feedback toward a useful next conversation.

Love the product, but nobody helped us migrate.

Score 4
Comment Love the product, but nobody helped us migrate.

What follow-up fits this feedback?

0% Migration help.
Migration help 72%
Product tutorial 20%
Thank-you 8%

Let the application migration help.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "score": 4,
  "comment": "Love the product, but nobody helped us migrate."
};

const decision = await evaluateDecision({
  state,
  question: "What follow-up fits this feedback?",
  options: ["Migration help","Product tutorial","Thank-you"],
});

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

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