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.
This exercise is part of the course
Prompt Engineering with the OpenAI API
Exercise instructions
- Craft a prompt that classifies the
ticket
as technical issue, billing inquiry, or product feedback, without providing anything else in the response.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
client = OpenAI(api_key="")
# Craft a prompt to classify the ticket
prompt = ____
response = get_response(prompt)
print("Ticket: ", ticket)
print("Class: ", response)