Tools
Translate
Translate text into any language using an LLM, preserving formatting and context
The Translate block sends text to an LLM with an instruction to translate it into a target language, and returns only the translated text — no commentary or explanation is included in the output.
Configuration
- Text to Translate — the source text.
- Translate To — the target language, entered as free text (for example
Spanish,French,Japanese). Defaults to English when left blank. - Model — the LLM used to perform the translation. Optional; leave blank to use the workflow's default model.
Inputs and outputs
| Field | Type | Description |
|---|---|---|
context (input) | string | Text to translate. |
targetLanguage (input) | string | Target language. |
content (output) | string | Translated text. |
model (output) | string | Model used to perform the translation. |
tokens (output) | json | Token usage for the translation call. |
Example
Translate a customer support ticket's body into English before routing it to an agent block for triage, then translate the agent's reply back into the customer's original language before sending it.