Workflow guide
Route a support ticket with Choice, Score, and Noul
Build one Jev request that picks a team, rates urgency, and checks for an explicit refund ask.
Step 1
Put only the ticket in state
State is the material to judge. Paste the customer message, not the question. Official TypeSafe guidance: state holds content and supporting facts; questions hold the judgments.
Step 2
Ask a Choice for the team
Give a closed set: billing, technical, other. Official docs recommend an other option when the list may not cover every input. Question ids are not shown to the model, so write the full question in instructions.
Step 3
Ask a Score for urgency
Levels are ordered and numbered from 0. Three descriptions means scores from 0 to 2, and the returned score can land between levels. Threshold in your code, not in the prompt.
Step 4
Ask a Noul for the refund
Noul returns the probability of yes. There is no separate confidence field. Optional true/false criteria can spell out what counts as an explicit ask.
Step 5
Compose answers in code
If department is billing and wants_refund is high, open a refund path. If urgency is near the top level, page a human. Jev does not execute those actions.
Related projects
- @typesafe-ai/sdk — Official TypeScript/JavaScript client for POST https://api.typesafe.ai/v1/systemone.
- fast-jev-compaction — Claude Code plugin and npm library that asks Jev which tool calls to keep, instead of summarizing the transcript.