In short.
Ticket routing is Anthropic’s guide for developers and support teams classifying customer requests with Claude, but it does not provide a finished routing service or demonstrated production results. It combines prompts containing labeled examples, XML-tag parsing and evaluation code in seven programming languages. The demonstration returns a summary and one intent per ticket; urgency, service-level priorities and help-desk actions require additional implementation. Accuracy, latency, SDK compatibility and actual cost have not been assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete documentation page at [https://platform.claude.com/docs/en/about-claude/use-case-guides/ticket-routing.md], including its prompts, SDK fragments, evaluation guidance and integration discussion. Linked recipes, authentication instructions, model documentation, pricing and guardrail pages are excluded. No explicit license notice appears in the supplied page. No code was executed; runtime behavior, compatibility, accuracy, latency and operating costs remain unassessed.
The overview
identity
Ticket routing is a Claude documentation guide published by Anthropic. The original source address is [https://platform.claude.com/docs/en/about-claude/use-case-guides/ticket-routing.md].
It teaches how to design a support-ticket classifier, call the Claude API, evaluate predictions and connect the classifier to a broader support system. The resource is documentation with illustrative code.
assessment
The guide is useful for turning a vague automation goal into concrete decisions about categories, examples, routing priorities and evaluation thresholds. Its strongest feature is connecting prompt design to measurable routing accuracy and token usage.
Implementation remains substantial: several snippets abbreviate the prompt with ellipses, some setup details are omitted, and the help-desk connection is described architecturally. No code was executed, so successful operation and production suitability are unknown.
users
Support operations staff can use the guide to define ticket categories, escalation priorities and acceptable error rates. Developers can use its examples to build the classifier and connect it to existing automation.
The page suggests this approach for changing categories, limited labeled data, multilingual tickets and requests whose meaning matters more than keywords. These are suggested use cases; the page does not establish performance for any particular organization or language. Beginners can follow the design discussion, while deployment requires programming and API integration skills.
capabilities
The examples request a one-sentence summary and exactly one intent label. Implementations are shown in Python, TypeScript, C#, Go, Java, PHP and Ruby. The evaluation extension compares the predicted label with a supplied correct label and returns API token usage.
The discussion covers urgency, customer type, service-level agreements and language as possible routing criteria, but the demonstrated output contains only summary and intent. Advanced options include a category hierarchy and retrieval of relevant labeled examples through similarity search.
Using it
requirements
The stated prerequisites are an installed Anthropic SDK, a Claude API credential, familiarity with the existing ticketing system and historical support tickets for evaluation. Measuring accuracy also requires correct intent labels for those tickets.
A working deployment needs a runtime for the chosen language, a service around the classifier and access to the ticketing system’s APIs. The page does not specify SDK package versions, minimum runtime versions, hosting requirements or ticket-data retention terms.
mechanism
The prompt places ticket text inside request tags, defines allowed labels and includes labeled examples. This is few-shot prompting: examples teach the requested behavior within the prompt. Claude is asked to return the summary inside summary tags and the label inside intent tags.
The wrapper calls the Messages API, takes the first text response block and extracts both fields with regular expressions. Deployment examples raise an error on refusal. Evaluation examples instead count refusal as an incorrect classification while retaining usage. Accuracy is measured by comparing labels after trimming whitespace.
setup
Start by documenting existing routing rules and defining categories with the support team. Establish evaluation thresholds, configure the SDK and authentication, and replace abbreviated prompt placeholders with the complete prompt adapted to those categories.
Connect returned labels to support queues through a service. The guide describes webhook delivery, where the ticketing system triggers classification, and scheduled retrieval, where the service periodically fetches tickets. Webhooks require a public endpoint; scheduled retrieval introduces a trade-off between delay and unnecessary requests. A finished connector is not supplied.
example
In the guide’s positive-feedback example, a customer asks where to leave a review after a fiber installation. The illustrated response summarizes that request and assigns the label Support, Feedback, Complaint. This is a written example, not an observed API result.
Support, Feedback, Complaint is one combined label. The other two demonstrated labels are Order Tracking and Refund/Exchange. This coarse label set illustrates the technique; an organization would need categories and queue mappings suited to its own support work.
Assessment & evidence
limitations
The demonstration forces one label even when a ticket contains several issues. The page acknowledges problems with implicit requests, emotion overshadowing intent and unclear priorities between issues. It recommends clearer instructions and representative examples, without establishing how reliably those changes resolve the problems.
The parsers return empty strings when expected tags are missing and do not enforce membership in the allowed label set. The examples do not show confidence thresholds, human-review routing, retries or truncation handling. Ticket text is inserted directly into the prompt; defenses against instructions embedded in tickets are not demonstrated.
reasoning
The proposed approach makes category changes a matter of revising instructions and examples. Its usefulness therefore depends on clear category boundaries and examples that represent actual tickets. The page’s broad comparisons with traditional machine learning are vendor claims rather than controlled comparisons.
The main prompt asks for a summary of the customer’s request, which does not explain why a label was chosen. The guide separately discusses short classification explanations and optional summarized thinking, noting that simple tickets may produce no thinking block. Those options are not enabled in the main examples.
alternatives
The guide discusses existing routing automation and traditional machine-learning classifiers as baselines. It supplies no comparative results that establish which approach is best for a particular help desk.
Within Claude, it suggests considering Sonnet for more demanding classification, a hierarchy for more than 20 intent categories, and similarity-based example retrieval for highly variable tickets. A hierarchy adds sequential classification and latency; retrieval adds a searchable example collection. Their actual benefits and costs remain workload-dependent.
evidence
The evidence is a single Anthropic documentation page containing explanations, code fragments and proposed evaluation criteria. It supplies no evaluation dataset, execution logs, measured latency or completed cost calculation.
The suggested 95 percent accuracy threshold is a target, not a demonstrated result. The page also attributes an improvement from 71 to 93 percent accuracy to a linked classification recipe. That recipe’s dataset and methodology are outside this page, so the figures do not establish expected performance for this implementation.
Access & freshness
costs
Actual cost is unknown. The page supplies no API rate table, measured token counts or operating-cost estimate. Its evaluation code returns input and output token usage so that classification cost can be calculated using applicable prices. The 2048 max_tokens setting is an output ceiling, not measured consumption.
The guide notes that some refusals are billed and preserves their usage during evaluation. Hierarchical routing can involve multiple classifier calls; retrieval adds infrastructure. The suggested 50 percent cost reduction is an example evaluation target, not a reported saving.
rights
The supplied page contains no explicit license or redistribution grant for the documentation or code samples. Reuse and redistribution rights are unknown from this evidence.
Claude API service terms and conditions governing submitted customer-ticket data are not included on the page.
freshness
The page was captured on 23 November 2026. It provides no publication date, last-updated date or SDK package version.
The examples name claude-haiku-5-5 and request low effort. The page describes that model as the fastest and most cost-effective current option, but supplies no supporting price or latency comparison. Current model availability and compatibility with installed SDK versions are unknown.
actions
Define the intended labels and routing priorities, then assemble labeled historical tickets covering ordinary requests, ambiguous wording, multiple issues and relevant languages. Reserve tickets for evaluation rather than using every example in the prompt.
Complete the snippets, confirm model and SDK compatibility, validate returned labels and add a human-review path for refusals or malformed output. Measure accuracy, assignment time, rerouting and token-based cost against the existing process before expanding automation. These are recommended next steps; no implementation or evaluation results are established here.
