← All posts
Guides

What is an AI decision model? A routing example

Learn how AI decision models route support tickets, return probabilities for each option, and hand off uncertain cases. Try a worked example with the Seb Labs API.

An AI decision model evaluates context against a defined set of outcomes. Give it a support ticket and a list of queues. It returns the most likely queue and a probability for each option, so your application can decide whether to route the ticket or ask for a review.

Seb Labs builds Seb, an open-weight decision model you can call through a REST API or Model Context Protocol (MCP). It handles bounded judgments such as routing a request, labeling a document, or checking whether a passage supports a claim.

How an AI decision model routes a ticket

A customer writes, “I was charged twice for my November subscription.” The available queues are Billing, Account access, Technical support, and Needs review. Send the message and the options to Seb.

curl --fail-with-body https://api.seblabs.dev/v1/systemone \
  -H "Authorization: Bearer $SEB_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "context": "I was charged twice for my November subscription.",
    "options": ["Billing", "Account access", "Technical support", "Needs review"]
  }'

The response includes a choice and one probability per option. Here is a shortened, illustrative response.

{
  "choice": "Billing",
  "options": [
    { "label": "Billing", "probability": 0.91 },
    { "label": "Account access", "probability": 0.03 },
    { "label": "Technical support", "probability": 0.02 },
    { "label": "Needs review", "probability": 0.04 }
  ]
}

The model estimates where the ticket belongs. A handler in your application moves it to the queue. The billing system still checks whether two charges actually occurred.

Decide when to route automatically

Build a labeled set of tickets from the workflow you want to automate. Include routine requests, ambiguous messages, mixed intents, and cases outside your queues. For each threshold you try, measure two things.

  • Coverage. What share of tickets get routed automatically?
  • Routing accuracy. Of the tickets routed automatically, what share reach the correct queue?

Pick a threshold based on the cost of a misroute. If queue probabilities are close or the top probability falls below your threshold, send the ticket to review. Where a probability drives an important decision, check calibration on held-out tickets. For example, see whether tickets assigned probabilities near 0.80 are routed correctly about 80% of the time.

Where a decision model fits

Use a decision model where the task depends on understanding language and you can define the allowed outputs in advance. An agent can choose a workflow, a document pipeline can label an incoming file, and a retrieval system can score whether a passage is relevant. Use a rule for an exact condition such as whether an invoice ID is present. Use a generative model when the task calls for drafting a reply or explaining a plan.

Try the decision model playground to see the options and probabilities together. The Seb Labs API quickstart covers tokens, request formats, and the MCP setup for calling Seb from an agent.