
Route work before choosing a model
Selecting the right language model size is not just about performance or cost—it’s about aligning the model’s capabilities with the actual work you need automated. In a managed IT environment, this means mapping out the specific tasks your AI will handle before deciding which model to deploy. For example, a support ticket arrives in the incoming-tickets queue. The first job is to route it: Is this a password reset, a hardware fault, or something more nuanced? Here, a small model, perhaps a distilled BERT variant, can quickly classify the ticket’s intent with minimal compute. It can also extract fields such as device type or urgency, or summarise a user’s message against an approved knowledge base passage.
Problems arise when the workflow is not clearly segmented. If you send every ticket, regardless of complexity, to a large model like GPT-4, you’ll incur high costs and introduce unpredictable latency. Conversely, if you rely solely on a small model, it may misclassify nuanced requests, leading to incorrect routing—such as escalating a simple password reset to the critical-incidents queue. Good practice is to design a workflow where each model has a defined role, with clear handoff points. Avoid the temptation to let a large model handle everything by default—it’s rarely justified. Instead, use small models for high-volume, repetitive tasks, and reserve large models for synthesis or ambiguous cases flagged by earlier stages.
Measure each stage
To ensure your AI workflow is effective, you need to measure performance at each stage. This involves tracking accuracy, latency, and cost—not just in isolation, but across the entire workflow. For instance, after a ticket is classified in the incoming-tickets queue, measure how often the routing is correct by comparing the model’s output to a manually reviewed sample. Latency should be tracked from the moment a ticket enters the system to when it’s routed to the correct queue, such as network-issues or user-access.
A common failure mode is relying on a cheap initial model that misroutes too many tickets. This forces expensive reprocessing or manual intervention, driving up overall costs and response times. Another issue is failing to monitor the impact of model updates. When a model changes, it can introduce subtle shifts in classification boundaries. Without end-to-end tests—such as replaying a batch of historical tickets through the full workflow—you risk undetected drops in accuracy or unexpected routing loops.
Good practice is to keep routing rules observable. Log every decision and expose metrics such as the number of tickets per queue, average routing time, and error rates. Before deploying a new model version, run both classification and end-to-end tests. This ensures that changes do not degrade service or introduce new failure modes.
Define clear routing rules and escalation paths
A robust AI workflow for ticket management depends on explicit routing rules and well-defined escalation paths. Before any model is chosen, map out the possible ticket categories and the corresponding queues, such as hardware-replacement, software-install, and security-alerts. Each category should have a documented set of criteria, ideally codified in a routing configuration file. For example, if the ticket mentions "laptop not turning on," the rule should route it to hardware-replacement.
Failure to define these rules leads to ambiguous routing. Tickets may end up in the wrong queue, causing delays and frustration. For instance, a vague rule might send a "VPN not working" ticket to network-issues when it should go to user-access if the underlying problem is credential-related. Another failure mode is escalation dead-ends, where a ticket flagged by a small model as "complex" is sent to a large model for synthesis, but the large model lacks context or access to necessary artefacts, such as previous conversation logs or device inventory exports.
Good practice is to review and update routing rules regularly, especially after introducing new models or categories. Maintain an audit trail of routing decisions, including which model made the decision and why. This makes it possible to trace misrouted tickets and refine rules over time. Avoid relying on implicit or undocumented rules—these are hard to debug and nearly impossible to scale as your organisation grows.
Tune small models for intent and extraction
Small models excel at intent classification and field extraction when they are trained with clear, representative examples. For instance, in a ticket triage system, you might use a fine-tuned DistilBERT model to identify requests for "password reset" versus "device setup." The model’s configuration file should include canonical examples for each intent, along with negative examples to reduce false positives. Field extraction—such as pulling out device serial numbers or user IDs—can be handled by a lightweight named entity recognition model, with outputs written directly to the ticket’s metadata fields.
Problems occur when examples are too generic or the model is trained on ambiguous data. This can lead to misclassification, where a "forgotten username" request is routed as a "password reset," or field extraction fails to capture the right values, populating the wrong fields in the ticketing system. These errors may trigger downstream failures, such as an automated password reset script running on the wrong account, or an alert being raised in the identity-management queue for a non-issue.
To avoid these pitfalls, regularly review training data and update examples as new ticket types emerge. Use a validation set drawn from recent tickets to measure extraction accuracy. Monitor the number of tickets requiring manual correction—if this number rises, retrain the model or refine the examples. Avoid deploying small models without a feedback loop; without it, errors will accumulate and undermine trust in the system.
Manage large model unpredictability and cost
Large language models, such as GPT-4 or similar, offer impressive capabilities for complex synthesis, summarisation, and handling edge cases. However, they introduce unpredictability in both output and cost. For example, when a ticket is escalated to a large model for summarising a multi-thread email chain, the model may generate a summary that omits critical details or introduces subtle inaccuracies. This can lead to incorrect ticket resolution or unnecessary escalation to the escalations queue.
Cost is another concern. Each request to a large model incurs a higher per-token charge, and longer prompts—such as full email threads or chat logs—can multiply this cost. If routing is too aggressive, sending borderline cases to the large model, monthly expenses can spike unexpectedly. A specific failure mode is the "escalation loop," where a ticket bounces between small and large models without resolution, each incurring processing costs and delaying closure.
Good practice is to set clear thresholds for when a ticket is escalated to a large model. For example, only escalate if the small model’s confidence score falls below a certain value, or if the ticket contains specific keywords indicating complexity. Monitor the volume of requests to the large model and set budget alerts. Review a sample of large model outputs for quality and consistency. Avoid using large models for routine tasks—reserve them for genuinely complex or ambiguous cases that cannot be handled by smaller models or rule-based logic.
Monitor artefacts and workflow health
Effective AI workflows depend on monitoring concrete artefacts at each stage. For ticket classification, maintain a classification-results export that logs the model’s decision, confidence score, and input text. For field extraction, store a field-extraction-log that records which fields were populated and by which model version. These artefacts enable post-mortem analysis when failures occur, such as a ticket being routed to the wrong queue or a field being incorrectly extracted.
Workflow health can be tracked through alert thresholds. For example, set an alert if the number of tickets in the unclassified queue exceeds a certain value, indicating a possible model failure or drift. Similarly, monitor the average time tickets spend in each queue. A sudden increase in the awaiting-escalation queue may signal a bottleneck in the large model processing stage.
Good practice is to automate the collection and review of these artefacts. Schedule regular exports of classification and extraction logs, and review them for anomalies. Use dashboards to visualise key metrics, such as routing accuracy, latency, and queue sizes. Avoid manual monitoring—automated alerts and scheduled reports are more reliable and scalable, especially as ticket volumes grow.
Test and validate before deployment
Before deploying any new or updated model, rigorous testing is essential to prevent disruptions. This involves both unit tests—such as verifying that the model correctly classifies a set of known tickets—and end-to-end tests, where a batch of real or synthetic tickets is processed through the entire workflow. For example, replay a week’s worth of tickets through the updated workflow and compare the routing, extraction, and escalation outcomes to the current production system.
A specific failure mode is deploying a new model version that changes classification boundaries, resulting in a spike of misrouted tickets in the wrong-queue artefact. Another is a configuration error that causes the model to ignore certain fields, leading to incomplete ticket records and failed automation downstream. Good testing practice includes regression tests to catch these issues, as well as canary deployments—rolling out the new model to a small subset of tickets before full deployment.
Maintain a deployment-change-log that records model versions, configuration changes, and test results. This enables rollback if issues are detected post-deployment. Avoid deploying models without comprehensive test coverage or change tracking—such shortcuts often lead to costly incidents and loss of trust in the AI workflow.
Maintain feedback loops and continuous improvement
Long-term success with AI-driven ticket workflows depends on establishing feedback loops for continuous improvement. Collect feedback from IT staff on ticket routing and resolution quality. For example, add a field in the ticketing system for analysts to flag misrouted or poorly summarised tickets. Aggregate this feedback in a ticket-feedback queue for regular review.
Analyse artefacts such as the classification-results export and the field-extraction-log to identify patterns of recurring errors. For instance, if a particular ticket type is frequently misclassified, update the training data or adjust routing rules. If field extraction accuracy drops, retrain the model with more representative examples or refine the extraction patterns.
Schedule periodic reviews of workflow metrics, such as routing accuracy, average resolution time, and cost per ticket. Use these reviews to prioritise improvements—whether that means retraining models, updating routing rules, or refining escalation thresholds. Avoid static workflows; as your organisation evolves, so will the types and complexity of tickets. Continuous feedback and iteration are necessary to keep the workflow efficient, accurate, and cost-effective.
Starlink Nexus AI practice
If this reflects a problem you are dealing with, we can review your environment and tell you what we would change first - including if the answer is nothing.
Start a conversation