Skip to content

Translate Text

🤖 AI Drafted (Not reviewed)

Translate extracted or transcribed text into the user’s preferred language. Target language, source language, and model are all editable on the node.

Tool id text_translate
Category llm
Uses a language model yes
Needs a generative model yes
Runs over many items yes
Item handling batch
Structured output yes
Human-verified not yet

What it reads

Port Type Required What it is
Text (text) text yes Source-language text to translate.
Context (context) any no Previous text/transcription
Metadata (metadata) json no Existing metadata
Documents (documents) json no Document metadata

What it emits

Port Type Required What it is
Text (text) text — Raw text response
Value (value) any — Parsed value
Texts (texts) array — Per-item texts
Values (values) array — Per-item values
Results (results) json — Full results
Records (records) array — Per-document text records [{doc_id, text}, …].
Artifacts (artifacts) json — Artifact IDs

Options

Option Type Default What it does
choices array — Valid choices. (Not shown in the editor.)
chunk_size_chars integer 0 Chunk large input text above this character budget (0=auto).
match_mode string prefer Match mode. One of: prefer, strict, inform.
max_items integer 10 List max items.
max_tokens integer 8192 Max response.
max_words integer 50 Word limit.
metadata_field string — Save to field.
model_name string — Model name.
output_format string text Response format. One of: text, boolean, choice, number, words, list, json.
preserve_names boolean yes Keep proper names, place names, institutions, and archival citations in their original form rather than translating them.
prompt string — Custom prompt.
provider_name string — LLM provider. One of: openai, anthropic, google, ollama, lmstudio, groq, together, deepseek, mistral, openrouter, dashscope, xai, perplexity, fireworks, deepl.
quality_gate boolean yes Stop the run if output is unreadable.
reference_values object — Known values to match. (Not shown in the editor.)
save_to_db boolean yes Save to library.
save_to_file boolean no Export to file.
source_language string auto Source language; ‘auto’ lets the model detect it.
target_language string English Language to translate INTO (e.g. English, Spanish, French).
temperature number 0.7 Creativity.
thinking_mode string off Chain-of-thought reasoning depth. One of: off, short, medium, long.

The prompt it sends

This is what the tool asks a model, with every option left at its default. Changing the options above changes this text.

Translate the following text into English.

Rules:
- Produce a faithful, accurate translation into English. Convey the full meaning of the source — do NOT summarize, omit, paraphrase away, or add information.
- Preserve the document structure: keep paragraph breaks, lists, and line layout.
- Keep proper names, place names, institutions, and archival citations in their original form — do not anglicise or translate them.
- If a passage is illegible or marked [ilegible] / [uncertain], carry the marker across unchanged and do not replace it with a guess.
- Output ONLY the English translation, with no preamble, notes, or the original text.
- Return PLAIN TEXT: no markdown formatting, no trailing spaces on lines, and no added blank lines beyond the original paragraph breaks.