1. Data source
  2. Decision schema
  3. Model inference
  4. Structured result
2 Decision schema 3 typed questions
  • departmentchoicebillingtechnicalsales
  • urgencyscorenormalelevatedurgentcritical
  • needs_humannoulprobability 0–1

3 Model inference typesafe/jev-1.13

Waiting for a run.

4 Structured result

Run the demo to see the JSON answers, the highlighted pick and the final action.

Call Jev yourselfSame data and schema, straight to Flatkey. Set FLATKEY_API_KEY and run.
curl -sS https://router.flatkey.ai/api/alpha/decisions \
  -H "Authorization: Bearer $FLATKEY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "typesafe/jev-1.13",
  "state": "Customer was charged twice for the same invoice and wants a refund today.",
  "questions": {
    "department": {
      "type": "choice",
      "criteria": {
        "billing": "Payments, invoices, refunds or subscriptions",
        "technical": "Bugs, APIs or integrations",
        "sales": "Plans, pricing or sales questions"
      },
      "instructions": "Pick the department that best fits the state."
    },
    "urgency": {
      "type": "score",
      "criteria": [
        "normal",
        "elevated",
        "urgent",
        "critical"
      ],
      "instructions": "Rate the urgency of the state."
    },
    "needs_human": {
      "type": "noul",
      "instructions": "Is this true for the state: needs human?"
    }
  }
}'

No Flatkey key yet? Get one for Jev 1.13 →

Run with real Jev

Sign in and connect a key

  1. Sign in with Google.
  2. Connect your Flatkey or OpenRouter key on the next screen. Get a Flatkey key for Jev 1.13.
  3. Come straight back here and press Run again.

This site is for researching, sharing and cataloguing Jev use cases. Your key is only there to make trying Jev convenient: it is stored encrypted, used only for runs you trigger, never used for anything else, and you can delete it anytime.

About this use case

Use Jev for support-ticket routing: incoming state, Jev decision, routed outcome

Who / when

Audience

  • support ops leads who need consistent ownership rules
  • platform engineers wiring decision gates into ticketing tools
  • product teams replacing fragile prompt-and-parse routers

Triggers

  • a new ticket lands in the shared inbox
  • an escalation queue needs urgency triage
  • agents disagree on department ownership
  • you want auto-route only when confidence is high

The workflow

  1. 01
    Ticket stateMessage and contextInput
  2. 02
    Choicebilling / technical / salesJev
  3. 03
    ScoreUrgency levelJev
  4. 04
    Code gateRoute or escalateYour code

Question shape

{
  "department": {
    "type": "choice",
    "criteria": {
      "billing": "Payments, invoices, refunds or subscriptions",
      "technical": "Bugs, APIs or integrations",
      "sales": "Plans, pricing or sales questions"
    }
  },
  "urgency": {
    "type": "score",
    "criteria": [
      "normal",
      "elevated",
      "urgent",
      "critical"
    ]
  },
  "needs_human": {
    "type": "noul"
  }
}

Gate policy

≥ 0.90

Auto-route low-risk tickets.

0.65–0.90

Ask an agent to confirm.

< 0.65

Escalate to a human.

Failure modes

Pre-launch checks before you trust auto-routing:

  • Refunds, duplicate charges and account-access edge cases;
  • Colloquial language, typos and mixed-language text;
  • Prompt injection, irrelevant history and contradictions;
  • Stability when candidate order changes;
Keep exact work in code: amounts, dates, order state and permissions should be deterministic. Use the decision model for semantics and routing.

FAQ

Why not let a chat model write the routing decision as free text?

Free text still needs parsing, and confidence is hard to gate. Jev returns bounded answers and probabilities so your code can auto-route, confirm or escalate.

Can I bring my own API key?

Yes. Try the free demo above without signing in. To run it live on your own text, sign in with Google and connect a Flatkey or OpenRouter key (a quick test call runs when you save it). Manage or delete it anytime under Dashboard → BYOK. Keys are stored encrypted on the server, used only for runs you trigger, and never sent back to the browser. Need a Flatkey key? Get one for Jev 1.13 on Flatkey.

When should a ticket escalate to a human?

When confidence falls below your low band (here < 0.65), or when deterministic checks fail—refunds, account access, legal language and conflicting history.

Is this the official TypeSafe Jev product page?

No. jev-llm.com is an independent research and practice site. Verify pricing, models and terms at the original TypeSafe sources.

Independent-site note: jev-llm.com is an independent research and practice site. It is not the TypeSafe AI official site. Verify models, pricing and terms at the original source.