A decision, start to finish
Imagine a refund agent using AskWithAI’s Payment Refund template. A customer asks for a $240 refund on a monitor bought 34 days ago, reporting a power-supply failure under its 1-year warranty. (The numbers below come from a recorded run of the Payment Refund template on its practice cases.)1
Fast model answers in 71 ms
The fast decision model evaluates the request and answers
approve, with 89% confidence.2
Plain code checks the mistake-cost math
A wrong approval would lose the full **$240**. An 11% chance of losing $240 is about $26 of expected loss — far more than the ~1.5 cents a reasoning model costs for a second opinion.
3
Runtime escalates to a reasoning model
The control plane automatically escalates the case. A reasoning model reads the 1-year warranty rule and also confirms
approve.4
Your app gets the answer and a receipt
AskWithAI returns the typed answer alongside a plain-language receipt showing which tier answered, why it escalated, latency, and cost.
5
Real outcome improves the next version
Later, when the warranty claim is confirmed valid, your app reports the outcome. It becomes a verified test case, and future runtime versions are replayed against it before release.
The escalation ladder
AskWithAI routes each request up a predictable ladder of tiers, stopping as soon as the current tier is trustworthy enough for the stakes:1. Plain rules (free & instant)
1. Plain rules (free & instant)
Deterministic conditions checked before any model runs — for example, “If the order amount is under $5, approve automatically.” Rules cost nothing and execute in under a millisecond.
2. Fast model (milliseconds)
2. Fast model (milliseconds)
A small, calibrated decision model (such as Jev or Gemini Decisions) that handles the majority of routine cases at minimal latency and cost, returning both an answer and a calibrated confidence score.
3. Reasoning model or council (second opinion)
3. Reasoning model or council (second opinion)
When expected mistake loss exceeds the cost of asking, the control plane escalates to a stronger reasoning model — or a council of diverse models — to weigh nuanced policies and edge cases.
4. Expert Review (human in the loop)
4. Expert Review (human in the loop)
When models remain unsure on a high-stakes case, or when a crucial fact is missing, the decision routes to Expert Review. A person settles it, the answer goes back to your agent, and the ruling becomes a verified test case.
Key safeguards explained
These concepts explain why AskWithAI behaves predictably in production instead of acting like a black box.Expected loss
Expected loss = (chance of being wrong) × (mistake cost). Plain code compares this number against the price of a second opinion on every request.Asymmetric mistake costs
Not all errors hurt equally. Approving a fraudulent $950 refund costs $950, while wrongly denying a valid one might cost $15. Setting both costs lets the control plane demand much higher certainty before approving.
Calibration checks
A fast model that is 85% accurate and honest about its doubt is more valuable than one that is 90% accurate but overconfident when wrong. AskWithAI tests calibration and refuses to let an overconfident model answer alone.
Verified labels only
Only a person’s ruling or a real-world outcome can become a test label. Two models disagreeing is a signal to investigate — never treated as ground truth.
Privacy by default: AskWithAI does not retain raw request inputs unless you explicitly opt in. By default, only a one-way fingerprint of each input is kept.