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. Theother 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.
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.
