1. Learn
  2. /
  3. Courses
  4. /
  5. ChatGPT Prompt Engineering for Developers

Exercise

Tone adjustment for email marketing

An e-commerce company regularly conducts email marketing campaigns to promote its products, inform customers about new arrivals, and offer exclusive deals. The company has a hypothesis that their current strategy is too informal and they want to test out how tone adjustment to their emails could help boost customer engagement.

Your task is to craft a prompt that can effectively transform the tone of marketing emails. You will apply your prompt on the sample_email provided.

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

Instructions

100 XP
  • Set your API key to api_key within the OpenAI() class.
  • Craft a prompt that transforms the sample_email by changing its tone to be professional, positive, and user-centric.