MulaiMulai sekarang secara 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.

Latihan ini adalah bagian dari kursus

Prompt Engineering with the OpenAI API

Lihat Kursus

Petunjuk latihan

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

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

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 dan Jalankan Kode