Ai Translate
ai_translateTranslate text into a target language before replying, auto-detecting the source and returning the original when it already matches.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"organizationId": "<organizationId>",
"text": "<text>",
"language": "<language>"
},
"name": "ai_translate"
}
}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. |