One change
Create an instance of the Claude API client
about-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.
about-claude/use-case-guides/ticket-routing Changed · +1 / -3 lines
from line 342
message = client.messages.create( model=DEFAULT_MODEL, max_tokens=500, - temperature=0, messages=[{"role": "user", "content": classification_prompt}], stream=False, )
from line 408
message = client.messages.create( model=DEFAULT_MODEL, max_tokens=500, - temperature=0, messages=[{"role": "user", "content": classification_prompt}], ) usage = message.usage # Get the usage statistics for the API call for how many input and output tokens were used.
from line 459
For 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. - + * **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.