1. Learn
  2. /
  3. Courses
  4. /
  5. Prompt Engineering with the OpenAI API

Connected

Exercise

Customer support chatbot

You are tasked with developing a customer support chatbot for an e-commerce company specializing in electronics. This chatbot will assist users with inquiries, order tracking, and troubleshooting common issues. You aim to create a system prompt that clearly defines the chatbot's purpose and provides response guidelines that set the tone for interactions and specify the intended audience. A sample user prompt is provided.

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

Instructions

100 XP
  • Write out who this chatbot is for and what it should do and save this as the chatbot_purpose.
  • Define the target audience as tech-savvy individuals interested in purchasing electronic gadgets and save to audience_guidelines.
  • Define the tone_guidelines that ask the chatbot to use a professional and user-friendly tone while interacting with customers.