Get startedGet started for free

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 its current strategy is too informal and wants 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.

This exercise is part of the course

Prompt Engineering with the OpenAI API

View Course

Exercise instructions

  • Craft a prompt that transforms the sample_email by changing its tone to be professional, positive, and user-centric.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

client = OpenAI(api_key="")

# Craft a prompt to change the email's tone
prompt = ____

response = get_response(prompt)

print("Before transformation: \n", sample_email)
print("After transformation: \n", response)
Edit and Run Code