Skip to main content
Every Jev answer comes with probabilities. For each action your code can take, decide how high the probability must be before you take it. Riskier actions get higher thresholds, and an answer below the threshold gets its own outcome, such as asking the user to clarify, instead of counting as a yes. The actions can be anything your code can call: a function in your app, an LLM, or a person.

Example: acting on voice banking commands

Say you’re building a voice banking interface where users manage their account by speaking. Before acting on a command, you want to be reasonably sure what the user asked for, and very sure for the riskier actions.

Ask what the user wants to do

Send the user’s command with one Choice question. The other option catches commands this system doesn’t handle. It keeps the example short, but a companion Noul usually works better as a catch-all. Jev’s response:

Set a threshold for each action

Compare the probability of the chosen option, probabilities[choice], against the threshold. That number is how likely it is that this option is what the user asked for.
The thresholds only choose which workflow runs; none of them moves money. A clear transfer request opens a confirmation screen with the amount and recipient, and the transfer runs only after the user confirms them. A less certain one asks the user what they meant first. The confirmation step matters because a hesitant command can still have a clear intent. With jev-1.14.0, “Um, the transfer thing… yeah, go ahead I guess.” got 0.99 for approve_transfer. That answer says which action the user wants, but not that the user has checked the transfer details.
Why not confidence? For a Choice question with a fixed number of options, confidence is calculated from the top probability, so a threshold on it adds nothing, and the probability is easier to read as risk. If it matters how the other options compare, check their probabilities too. Confidence is more useful for a Score, as in Routing by confidence. Also take a look at When to act on confidence.