Create an instance of the Claude API client changedabout-claude/use-case-guides/ticket-routing
Nearest release: v2.1.239, published 2 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+1added
Lines−3removed
From line
342
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits10to this page, all time
The whole hunk
from line 342, old and new numbered
/
from line 342
342342 message = client.messages.create(
343343 model=DEFAULT_MODEL,
344344 max_tokens=500,
345 temperature=0,
346345 messages=[{"role": "user", "content": classification_prompt}],
347346 stream=False,
348347 )
from line 408
409408 message = client.messages.create(
410409 model=DEFAULT_MODEL,
411410 max_tokens=500,
412 temperature=0,
413411 messages=[{"role": "user", "content": classification_prompt}],
414412 )
415413 usage = message.usage # Get the usage statistics for the API call for how many input and output tokens were used.
from line 459
461459
462460For example, you might have a top-level classifier that broadly categorizes tickets into "Technical Issues," "Billing Questions," and "General Inquiries." Each of these categories can then have its own sub-classifier to further refine the classification.
463461
464
462
465463
466464* **Pros - greater nuance and accuracy:** You can create different prompts for each parent path, allowing for more targeted and context-specific classification. This can lead to improved accuracy and more nuanced handling of customer requests.
467465
No line in this hunk matches that.