IniziaInizia gratis

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.

Questo esercizio fa parte del corso

Prompt Engineering with the OpenAI API

Visualizza il corso

Istruzioni dell'esercizio

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

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

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)
Modifica ed esegui il codice