1. Learn
  2. /
  3. Courses
  4. /
  5. Prompt Engineering with the OpenAI API

Connected

Exercise

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.

Instructions

100 XP
  • Craft a prompt that translates the marketing_message from English to French, Spanish, and Japanese.