Beginner30 min

Project: Smart Form Router

Replace a dropdown nobody reads with a Choice over free text, and measure whether it beats the dropdown.

Every support form has a “What is this about?” dropdown, and every support team knows the values in it are close to useless. Users pick the first plausible option, or the last one they used, or “Other”. Meanwhile the free-text box directly underneath contains an accurate description of the problem, written by someone who was actually trying to explain it.

So classify the text and ignore the dropdown. One Choice over what the user wrote, confidence-gated, with the dropdown kept as the fallback rather than the source of truth.

from typesafe_sdk import Choice, TypeSafeClient

client = TypeSafeClient(model="jev-1.13")

ROUTING = {
    "queue": Choice(
        instructions="Which team should handle what this person described",
        criteria={
            "billing": "Charges, invoices, refunds, plan changes, or payment failures",
            "bug": "Something in the product is broken or behaving incorrectly",
            "account_access": "Cannot log in, locked out, SSO, or password problems",
            "how_to": "Asking how to accomplish something the product supports",
            "sales": "Pricing, quotes, upgrades, or questions before buying",
        },
    ),
}

Full lesson

Keep reading Project: Smart Form Router

The rest of this lesson — including the interactive exercises and the worked project — is part of Jev Foundations.

  • Every lesson in all three courses
  • Interactive builders, graders, and playgrounds
  • 1,000 live Jev credits, for the courses and the playground
  • Project source you can run yourself
  • Free updates as Jev ships new versions
Browse free lessons

Already bought them? Sign in to unlock — no need to buy twice.