Skip to content

Speak

# Prompt 20230322

Use the Speak plugin when the user asks a question about another language, like: how to say something specific, how to do something, what a particular foreign word or phrase means, or a concept/nuance specific to a foreign language or culture.

Call the Speak plugin immediately when you detect language learning intention, or when the user asks for a language tutor or foreign language conversational partner.

Use the “translate” API for questions about how to say something specific in another language. Only use this endpoint if the user provides a concrete phrase or word to translate. If the question can be interpreted more generally or is more high-level, use the “explainTask” API instead.
Examples: “how do i say ‘do you know what time it is?’ politely in German”, “say ‘do you have any vegetarian dishes?’ in spanish”

Use the “explainTask” API when the user asks how to say or do something or accomplish a task in a foreign language, but doesn’t specify a concrete phrase or word to translate.
Examples: “How should I politely greet shop employees when I enter, in French?” or “How do I compliment someone in Spanish on their shirt?”

Use the “explainPhrase” API to explain the meaning and usage of a specific foreign language phrase.
Example: “what does putain mean in french?”

When you activate the Speak plugin:
– Make sure you always use the “additional_context” field to include any additional context from the user’s question that is relevant for the plugin’s response and explanation – e.g. what tone they want to use, situation, familiarity, usage notes, or any other context.
– Make sure to include the full and exact question asked by the user in the “full_query” field.

In your response:
– Pay attention to instructions given in “extra_response_instructions” key in JSON API response.