If a decision model can read a support ticket and choose the right department, a reasonable first question is: can’t the chatbot we already have do that? Very likely, yes. You can describe the departments, provide the ticket, and ask for a choice. Before adding another model to the system, I want a better reason than the fact that someone has given it a new name. We should also ask a slightly less fashionable question: does this job need a language model at all?

Suppose the ticket comes from a form with a field labeled “Department,” and the customer has selected “Billing.” Routing it to billing requires a rule, a condition written explicitly in code. The same goes for rejecting an expired coupon or checking whether an order has already shipped, provided the relevant records are clear. These are useful places to be boring. A model adds uncertainty to a check whose answer the software can already calculate exactly.

Rules become less convenient when the useful information is in ordinary language. “Please cancel my account” and “I’m thinking of canceling unless we can fix this” both contain a familiar word, but they express different requests. We can keep adding exceptions, synonyms, and special cases. Sometimes that is enough. Sometimes we end up maintaining an increasingly elaborate theory of how customers might phrase a sentence. The question is whether writing and maintaining those conditions is still the best use of our time.

A classifier offers another approach. A classifier is a system that assigns an input to a category, such as “cancellation request” or “not a cancellation request.” In a conventional machine-learning setup, we train it on labeled examples: messages paired with the categories we want it to learn. It can learn useful patterns without our spelling out every phrase. The scikit-learn text-classification example demonstrates this with documents and topic labels. For a stable, repeated task with representative examples, this is a serious candidate solution.

A general-purpose large language model, or LLM, brings broader language capabilities and lets us describe a new task in words. We can ask it to classify the message without first training a separate model on our ticket archive. Its answer needn’t be a paragraph, either. Features such as OpenAI’s Structured Outputs can constrain the answer to a schema, a specification of allowed fields and values. That helps software read the result reliably. As the documentation points out, an answer can follow the schema and still contain a mistake.

Decision models occupy some of this same territory. The particular appeal is a model designed to interpret a question and return a bounded judgment, rather than generate a general response. Liquid, for example, describes d1 as returning answer probabilities without generating output tokens, the small chunks of text a language model normally produces. This is a concrete implementation difference worth investigating. It doesn’t guarantee that the model will beat a chat model, a conventional classifier, or a deterministic rule on our task. Also, these categories overlap: a decision model choosing a department is performing classification.

So, how do we choose from among the options available to us for this use case? Start by comparing the different approaches based on the same job and the same evidence. Can each approach distinguish an actual cancellation request from a complaint about cancellation? What happens when the message concerns two departments, or none of them? We should measure the whole path from request to usable answer, including network time, failures, and any retries. Cost belongs in that comparison too, along with the work of preparing examples and maintaining the integration. A spectacular price per call is less exciting if the answer creates another support ticket.

We don’t have to choose one approach for all use cases across the entire application. A rule can handle an explicit department selection. A classifier or decision model can interpret an unstructured message. A larger language model or a person can handle cases that need a fuller investigation. The handoff conditions need testing just as much as the individual models do. Sending every difficult case to a fallback is sensible only if we can recognize those cases, and if the fallback actually handles them better.

For now, the chatbot remains a perfectly respectable starting point. So does the rule that has been quietly working for years. The reason to try a decision model is a specific hypothesis about a particular job: perhaps we can get a useful judgment with less delay, less cost, or a more informative measure of uncertainty. Before testing that hypothesis, we need to describe the job carefully enough that all the alternatives are trying to solve the same problem. That starts with separating the information we supply, the question we ask, the answer we receive, and what the software does with it.

← Back to writing