Introduction to Claude Models
Nikhil Rangarajan
Data Scientist




system_msg = "You're a helpful customer 
service agent. Be polite, concise, and 
always end with asking if there's 
anything else you can help with."
customer_query = "I can't log into my 
account and getting an error message"
response = client.messages.create(
model="..", max_tokens=150, 
system=system_msg,
messages=[{"role": "user", "content": 
           customer_query}])
classification_prompt = """
Classify this customer feedback into 
categories: 
Product Issue, Shipping Problem, 
Billing Question, or General Inquiry
Feedback: "My order arrived damaged 
and I need a replacement"
"""
$$
$$

Introduction to Claude Models