The Spectrum Dispatch News

technology

Amazon Cuts Ticket Classification Costs 98% by Replacing Claude Sonnet with Decision Model

Amazon engineers swapped Claude Sonnet 4.6 for Strands Decider on internal ticket labeling, reducing token costs by 70% and saving millions annually.

Amazon Cuts Ticket Classification Costs 98% by Replacing Claude Sonnet with Decision Model

Amazon’s internal ticketing system processes customer escalations, capacity requests, security findings, and other operational data across the company, categorizing tickets into roughly 20 label types. For nine months, the company relied on Claude Sonnet 4.6 running through Amazon Bedrock to handle this classification task at scale.

Amazon Cuts Ticket Classification Costs 98% by Replacing Claude Sonnet with Decision Model

Two Amazon engineers working on the ticketing system recently replaced Sonnet 4.6 with Strands Decider, a decision model launched a month prior, according to a post on the Strands Agents blog. The switch delivers comparable accuracy while reducing costs by 98 percent—a change projected to save millions in annual token expenditures.

The key difference between the approaches lies in model architecture. Sonnet 4.6 generated full JSON responses with reasoning for each ticket using a lengthy system prompt. Strands Decider, by contrast, operates as a classification-specific tool: given a ticket’s state and a set of predefined label options, it returns probability scores for each option plus a confidence rating.

To implement the change safely, the engineers used a three-way configuration toggle in AWS AppConfig. The “DUAL” mode ran both models in parallel on live traffic, allowing them to compare results before fully committing to Strands Decider. This approach proved more informative than offline evaluation and ensured they could revert in 45 seconds if needed.

The performance metrics show substantial improvements. Average response time dropped from 4,215 milliseconds to 897 milliseconds—a 78 percent decrease. Token consumption fell from 6,724 tokens per ticket to 2,010 tokens, a 70 percent reduction driven by two factors: Strands Decider produces a single classification choice rather than verbose JSON, and its prompt is far shorter. The engineers condensed each of the 20 label descriptions into concise one- or two-sentence criteria sent as multiple-choice options.

Cost per ticket fell from $0.0222 with Sonnet to approximately $0.0005 with Strands Decider running on AWS SageMaker ml.g5.xlarge instances. At scale—processing one million tickets—the difference amounts to roughly $22,200 versus $500.

The engineers noted the approach works best for closed-choice classification tasks with high volume and tight latency constraints. It may not suit applications requiring explanation text, frequently changing label catalogs, or context exceeding a few thousand tokens. They also discovered that JSON key ordering affected output probabilities by up to 0.19, leading them to standardize key sorting across all requests.

Key facts

  • Amazon reduced ticket labeling costs by 98% by replacing Claude Sonnet 4.6 with Strands Decider decision model
  • Token consumption dropped 70%, from 6,724 to 2,010 tokens per ticket
  • Response time improved 78%, from 4,215 ms to 897 ms per request
  • Cost per ticket fell from $0.0222 to $0.0005, or $22,200 to $500 per million tickets
  • Engineers used a dual-mode testing approach before full switchover to validate accuracy

Sources

← All posts