A translator with a fixed language
Pin the model’s behaviour with a system prompt and a locked input, so users only send the text.
Beginner4 min
In this lesson
- System prompt and temperature
- A locked input with a fixed value
Build it yourself
This workflow is created in your account and opened in the editor, where you can change and run it.
The nodes in this workflow
Text
text
The text to translate.
Target language (locked)
language
A fixed value; API callers can’t change it.
Text template
{{text}} {{language}}
Builds the translation request.
Language model
GPT mini
With a “translate only” system prompt and low temperature it gives predictable output.
Translation
translation
Returns the result under this key in the API response and in chat.