Ai Translate
ai_translateTranslate text into a target language before replying to a customer. Detects the source language and returns the original text if no translation is needed.
Instructions
Translate a text into a language, e.g. a reply into the customer's language before conversation_reply. The language of the text is detected first: when it already is the target language the text comes back untouched with translated=false. An empty translation means the translation failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to translate. | |
| language | Yes | Target language as a two-letter code, e.g. the language of the conversation. | |
| organizationId | Yes | The organization id. Use organization_list to find it. |