J.

Jev Onboarding next step Code Example

Offer the setup step most likely to unblock a new workspace.

The application receives context for a onboarding next step decision.

Invited Team Yes
Data Connected No
First Report No

What should the workspace do next?

0% Connect data.
Connect data 72%
Invite team 20%
Build report 8%

Let the application connect data.

Code
Conceptual pseudocode — not official Jev SDK syntax
// Conceptual pseudocode — not Jev SDK syntax
const state = {
  "invited_team": true,
  "data_connected": false,
  "first_report": false
};

const decision = await evaluateDecision({
  state,
  question: "What should the workspace do next?",
  options: ["Connect data","Invite team","Build report"],
});

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

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