BaşlayınÜcretsiz Başlayın

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.

Bu egzersiz

Prompt Engineering with the OpenAI API

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

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

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

client = OpenAI(api_key="")

# Craft a prompt to classify the ticket
prompt = ____

response = get_response(prompt)

print("Ticket: ", ticket)
print("Class: ", response)
Kodu Düzenle ve Çalıştır