Aan de slagGa gratis aan de slag

Customer support ticket routing

A large customer support team receives many tickets related to different business areas, such as technical issues, billing inquiries, and product feedback. Your task is to create a prompt that automatically classifies incoming tickets into these three groups and routes them to the appropriate support specialists, reducing response times and enhancing customer satisfaction. You will test your prompt on a provided sample ticket.

The OpenAI package, the ticket string, and the get_response() function have been pre-loaded for you.

Deze oefening maakt deel uit van de cursus

Prompt Engineering with the OpenAI API

Cursus bekijken

Oefeninstructies

  • Craft a prompt that classifies the ticket as technical issue, billing inquiry, or product feedback, without providing anything else in the response.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

client = OpenAI(api_key="")

# Craft a prompt to classify the ticket
prompt = ____

response = get_response(prompt)

print("Ticket: ", ticket)
print("Class: ", response)
Code bewerken en uitvoeren