/
Translate Text

Translate Text

The TranslateText action is used to translate the given content text from whatever language it is found in into the given target language. By default, the target language is pulled from the conversation, so by default anything translated will be translated into the local language of the user interacting with the bot.

The content-template is what is ultimately resolved and translated.

Options

language_id

This is the internal ID of the language that we should translate into. Prospera has a fixed list of supported languages and dialects that are largely defined by the underlying platforms we connect to.

 

By default, the language id to translate into is pulled from the conversation.

Output

text

The translated text

translation

The Translation object containing four fields:

source_text, source_language_code, target_text, and target_language_code

Properties

type

computation only

needs conversation

false

uses content template

true

uses options template

true

customizable output schema

false