IniziaInizia gratis

Translation for multilingual communication

A multinational company wants to expand its reach to more international markets. They need a language translation solution to convert their product descriptions and marketing materials into multiple languages. These will then be verified before being published.

Your task is to design a prompt that translates text from one language to multiple other languages, facilitating effective communication with customers worldwide. You will apply your prompt on a provided marketing_message that introduces their latest collection of premium leather handbags.

The OpenAI package, the marketing_message 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 translates the marketing_message from English to French, Spanish, and Japanese.

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

client = OpenAI(api_key="")

# Craft a prompt that translates
prompt = ____
 
response = get_response(prompt)

print("English:", marketing_message)
print(response)
Modifica ed esegui il codice