Skip to content

Jev in Customer Support: Triage, Routing, and Escalation

Support is a long chain of small judgments over text. Triage category and urgency separately, route with a confidence gate, decompose hard tickets, and decide the action in code.

Published
Category
Jev Practices & Patterns
Resources cited
6
Reading time
3 min
Tags#customer-support#routing#triage#confidence

Support is the use case the catalog reaches for Jev most often, and for good reason: it is a long chain of small judgments over text, and almost every step is a bounded choice. It is also where the failure modes are most visible, because a wrong decision reaches a customer. The use-case map and the intent-routing pattern are the canonical references; this is the shape of the whole pipeline.

Step one: triage, not resolution

The first decision is not "how do we fix this" but "what is this and how urgent." Those are separate, atomic questions. Ask a Choice for the category and a Noul for whether it needs a same-day response, against the same message state. The intake router is the clinical version of this exact split; the support case is identical.

Keep them separate because the thresholds differ. A category answer needs no gate; an urgency flag routes straight to a queue, so its threshold carries the cost of a missed escalation.

Step two: route with confidence, not just with a label

Routing is where the SDE cascade earns its place. The cascade is a sequence of decisions with an escalation gate: a fast decision handles the easy majority, and anything below a confidence floor moves to a slower, more careful step or to a person. The 0.7 escalation gate the cookbook uses is a starting point, not a constant.

This is the pattern that keeps cost proportional to difficulty. A clear billing question is answered by the first hop; an ambiguous, angry, multi-issue message falls through to a human, and only where it should.

Step three: decompose the hard tickets

A message that asks three things is not one classification. The hierarchical classification cookbook shows the general move: classify one level at a time rather than passing a whole taxonomy at once. In support that means classifying the primary issue, then asking about the secondary issue only if the primary is not "resolved." Chaining Choices beats a 200-option rubric, which hits the option limit and blurs easily confused categories.

Step four: draft or hand off, decided in code

The judgment stops at the label; the action is code. Whether a routed ticket gets an auto-reply, a macro suggestion, or a human owner is a policy decision, and it should branch on the category and the confidence rather than on anything the model writes. This is the fail-closed discipline at the support boundary: an uncertain answer goes to a person, never to a customer, unless you have decided otherwise.

What support teams get wrong

  • One giant rubric. A single "what is this ticket" Choice with dozens of options scores worse than a short first-pass Choice followed by a second.
  • Blending urgency and category. They have different costs of error and belong in different questions.
  • Trusting a confident wrong answer. The threshold article is the antidote; a high confidence is not a correctness guarantee.
  • Logging only the label. Keep the distribution and the model version, so a routing change can be explained later.

Triage, gate, decompose, then act in code. Support is the clearest demonstration that a decision pipeline is a set of small, separately tunable judgments rather than one big one.

From the Jev directory

The resources behind this article.

Explore TypeSafe use cases by industry and turn promising ideas into concrete software workflows.
Jev Practices & PatternsDocs#official#use-cases
Official
Classify intent with a Choice and complexity with a Score, then send each branch to deterministic code, a specialist model, or a person, with a 0.5 intent-confidence floor.
Jev Practices & PatternsDocs#official#patterns#routing
Official
A two-stage extraction cascade: a mini model extracts, a Noul battery verifies each field in one request, and a 0.7 gate escalates to a reasoning model, sitting on the cost/quality frontier.
Jev CookbooksDocs#official#cookbook#extraction
Official
Classify documents through deep patent, retail product, biomedical, and source-code hierarchies using parallel beam search over Choice probabilities.
Jev CookbooksDocs#official#cookbook#classification
Official
Pick one option from a set you define. Returns the option, the full probability distribution, and 0-1 confidence, with up to 255 options and parallel questions that barely add latency.
Jev Practices & PatternsDocs#official#primitives#choice
Official
A clinical intake router that picks a care pathway from a patient's reported reason for contact and flags whether the message needs a same-day response, without ever assigning a condition or a treatment.
Jev Tools & CLIs#community#python#healthcare
Community
Back to all articles

More Jev articles

Most Jev accuracy problems are state problems. What belongs in a state, what is a pre-made judgment to leave out, and why naming the slice you ask about matters more than the wording.
Jev Practices & Patterns#state#design#primitives
Read article
A Noul returns one number and no separate confidence. How to read the value, pin its boundary with criteria, split compound questions, and set a per-action threshold that matches the cost of being wrong.
Jev Practices & Patterns#noul#primitives#confidence
Read article

From the Jev community

Posts from builders shipping with Jev right now.

Follow @typesafeai