AI engines and prompts

Set up the AI engines that check and post-edit translations, the routers that pick an engine for each target language, and the prompts that tell the model what to send back.

The AI page in the left menu has three tabs. Engines holds the AI engines that check and fix translations, Prompts the instructions they follow, and Routers the AI routers that send each job to an engine by its target language. When your server keeps a log of AI requests, a fourth tab, Logs, shows them; see Read what was sent to the AI provider. A workflow step uses a router, and the engine it picks does its work on its own, with no one assigned. For what the checking itself means, read Quality estimation.

Owners and admins can create, edit and delete everything on this page. Project managers can read it. Linguists do not have the page.

Engines that translate are not here. An LLM translation engine and its prompt live on the MT page, next to the other things that translate — see Machine translation.

Know the three parts

Part What it is
AI router The thing you attach to a workflow step. It maps target languages to engines, with an optional default engine for every other language.
AI engine The thing that does the checking. It names a provider key and, for a language model, a model and the prompts to use.
System prompt The standing instructions for the model, the choice of what it sends back, and what each segment carries with it.

One system prompt can be used by any number of AI engines, so the wording stays the same everywhere.

Create an AI engine

You need an engine key for the provider first: on Integrations, open the provider's page and add one under Keys. Every provider needs its own. Keys on the " · Assistant" rows (Claude, OpenAI, Microsoft Azure, Google Gemini) serve only the built-in chat and are never offered for an engine.

  1. On the Engines tab, click New AI engine.
  2. Give it a name.
  3. Pick the System prompt — any prompt on the Prompts tab that reviews translations. See Write your own system prompt.
  4. Pick the Provider and the Model.
  5. Click Create.

The AI engines list with one review engine per provider, each row showing its provider, its model where it has one, and what it returns.

Google Gemini takes a Google AI Studio key and offers Gemini 2.5 and later models in the Model list.

For Microsoft Azure, the Model list holds the deployments listed for that key's endpoint on Integrations, each shown with the OpenAI model it runs; that model decides which model settings the engine offers. See Connect Microsoft Azure to list them.

Each row carries the provider or model it runs on and what it returns, so two similar names stay apart.

To change an engine later, click its card. Deleting one asks you to confirm; remove it from every AI router first, or the delete is refused.

When its key is removed, an engine keeps its settings and routes, is marked No key, and stops working: a step that reaches it fails with a message that names the engine and tells you to choose a key for it in AI → Engines. Open the engine and pick a key under Provider. A new key for that provider also offers itself to the engines without one — see Add a provider key.

A key the provider refuses reads Rejected on Integrations, and every engine on it fails until the key works again.

Control which extensions may be added

Custom QE and APE providers and connectors are both extensions: zip files that may be signed. Each one shows a trust level in the list on Integrations, and an added one shows its version on its page:

Trust level Meaning
Official Built by OpenLoc.
Verified From another developer, reviewed by OpenLoc.
Community Listed in the integrations store, not reviewed by OpenLoc.
Custom A zip file uploaded here, not from the integrations store.

The Allowed integrations section on the Integrations store page, in the account menu, has one checkbox per level and covers both kinds. By default every level except Community is allowed. Owners and admins change it, and each change saves at once. It decides what may be added from then on: integrations already added keep working. An upload at a level that is not allowed is refused, and the message says why.

An update must be signed with the same developer key as the version you have. Otherwise remove the integration first, then add it again.

Add from the integrations store

The list on Integrations includes every app in the integrations store: content connectors and quality estimation (QE) and post-editing (APE) providers. Owners, admins and project managers see them; owners and admins add them. An app that sells licenses asks for its license key in its own settings.

When this server is not connected to the integrations store, a notice at the top of the page says so: ask your platform admin to connect the integrations store. Added integrations keep working, and uploading a zip works as before.

Choose what the model sends back

Every system prompt has an output — the kind of answer it asks for. The Prompts tab shows it as a small chip, and so does the System prompt picker on an engine, both in its list and next to the chosen prompt.

Chip What the model does
QE Judges each translation and approves or rejects it with a score.
QE+APE Judges each translation and post-edits it when it needs fixing.
APE Post-edits every translation, correcting defects in place. It never approves anything, so a person reviews every segment it touches.
Comment only Leaves comments for the linguist; never changes text or status. It gives no score and approves nothing.
MT Translates the source segment from scratch.

The output decides what the engine can be used for, so you never pick that separately: a prompt that only translates makes a translation engine, and anything else makes a quality-review engine. This is fixed once the engine is created.

AI comments are always written in English, whatever the language pair, so every reviewer reads the same language. A prompt cannot change that.

A reply is checked before it is used. A translation or post-edit far too short for a long source (a stray "x" for a full sentence), and a reply that gives one segment's answer twice, count as no answer, and those segments are asked for again. So does a reply the provider cut off at its output limit, and, for a translation engine, a JSON reply with no text translation in it; the segments are asked for again one by one, and a segment that still gets no answer stays empty. A request that times out is sent once more.

A Comment only engine runs on a Hybrid or AI step and reviews every segment that has text, including ones a person translated, confirmed or locked. It only adds AI comments: text, status, score and history stay as they are, and nothing is approved, so nothing goes to the translation memory. Find its remarks with the editor's comment filter (speech-bubble pill); see Comment on a segment.

Write your own system prompt

The Prompts tab lists your own prompts. Built-in ones, such as Default Comment only (which sends the translation memory match and the glossary terms with each segment), are read-only — open one and use Duplicate to get a copy you can edit. A prompt opens on its own page, so you can link to it.

  1. Click New prompt, or Duplicate on a prompt that is close to what you want.
  2. Click one of the What this prompt does cards: Quality estimation, Quality estimation and automatic post-editing, Automatic post-editing or Comment only. The type becomes a fixed label — the chip shown in the list — and the remaining fields appear with matching starter instructions. A duplicate starts with the original type and instructions.
  3. Keep the name the type gives it, or type your own.
  4. Write the Base prompt in plain words. Collapse it when you want to focus on the other sections. Use the small Insert buttons to drop a token into the text; each is replaced with the job's value when the prompt runs. Hover over a token, or focus it with the keyboard, for help.
Token Becomes
<source_lang>, <target_lang> The job's languages, as a name and a code — an English to Austrian German job sends English (en) and Austrian German (de-AT).
<file_name> The name of the file being translated.
<project_name>, <project_description> The project's own values. Empty when the project has none.
<labels> The project's labels, one "Name: value" line each.
<domain>, <customer> The project's domain and customer. Empty when the project has none.
5. Click Create. The type is fixed after creation and appears as a label when you reopen the prompt.

The Prompts tab, each row with its output chip; built-in prompts offer only Duplicate

A built-in prompt offers Duplicate. Delete your own prompts from the list. Rename a saved prompt with the pencil beside its name in the breadcrumb; its type appears below the breadcrumb. Update becomes available after you change the prompt contents. Expand Output format, which is read-only and follows the selected type. It has two parts: Prompt, the instructions added to every request, and JSON schema, the shape a reply must satisfy, which opens when you click it. There is no matching section for what goes in: a segment reaches the model as JSON with named keys, so Context already shows it exactly as it is sent. There is nothing to choose there: every provider that supports a schema is held to the same one, and it follows from the type rather than from the model. An engine on an older model that takes no schema is asked for the shape in words instead. The shape of the answer is not yours to write: the field names and their types are added when the prompt is sent, and enforced as a schema on models that support one. What each field means is in your own text, under the instructions — reword it to steer what the model puts in a field. Delete it and the model still gets the field names, so replies keep their shape; only the guidance is gone.

Choose what each segment carries

Expand Context on the prompt page to choose what each request carries. It has two parts: Document context, described below, and Segment context, what travels with every sentence. Source text is always checked and locked. For prompts that judge or post-edit translations, Target text is also checked and locked.

Each part ends with an example of its message, with placeholder values, that updates as you choose. A … at the end of a list means the real list can hold more entries. These are yours to choose:

Option What it sends
Terms The approved and forbidden glossary terms found in the segment's source text, each with its concept's definition and domain and the term's notes when you filled them in. They help the model choose between two meanings of the same source term.
Matches The closest translation memory entries (one unless you set more): source, target and match score. The score is the one in the Match column, after penalties, so the model can tell a weak or less trusted match from a strong one.
QA The results of the QA checks on each segment: rule name, severity and message. The checks run fresh for each request and save nothing. Offered on every prompt type except machine translation, which has no translation to check yet. A project without a QA profile sends none.

When Matches is ticked, TM matches per segment (1 to 5, default 1) sets how many entries each segment carries, best first.

Leave one unticked and it costs nothing — the lookup is skipped entirely. A field with nothing to fill in is left out, so a segment with no memory match does not send the model an empty one.

On a segment with inline tags, the source and the translation carry those tags as the numbered chips the editor shows (see Work with tags); other segments stay plain text. The prompt needs nothing extra for this.

Send the document around the segments

Document context, the first part of Context, sets with a slider how much of the file each request carries besides its own segments. It is read-only: the model uses it to understand the text and never returns anything for it. A new prompt starts at 5.

Stop What each request also carries
0 Nothing; only the segments it asks about.
1, 2, 5, 10 That many segments just before and after its own, fewer near the start or end of the file. When the segments around them add up to a lot of text, the farthest ones are left out.
Max Every segment of the file. A very large file is sent in sections: each request carries the part of the file it sits in.

Each segment in the context that has a translation also says whether it is approved or locked and, until a person changes its text, where it came from (an in-context or exact match, a fuzzy match, machine translation, automatic post-editing or an imported file), so the model can rely on a confirmed match and treat a fuzzy one as a draft.

The provider caches the system prompt and the Max context, so repeated requests pay less for them. The example under Document context shows the message.

Add rules for particular languages

Additional prompts on the prompt page holds extra wording that applies only to some jobs. Every rule is listed there, one under the other. Click Add prompt, pick the target languages it applies to, and write the text. The rule is appended to the instructions only when a job goes into one of those languages. A language covers its regional variants, so German covers Austrian German. Add prompt stays closed until the open rule has a language and some text.

Change the model settings of an engine

Once you pick a model, click Model settings under it to see the settings it offers. The section opens by itself when an engine already has some set, and shows how many when you close it. Leave a setting on Default to use the model's own. Two of them cut the work into requests, for any language-model engine:

A Gemini model offers settings by generation:

Send each language to the right engine with an AI router

  1. On the Routers tab, click New AI router.
  2. Give it a name.
  3. A new router starts with one route: All languages to your first engine. That engine is the default and reviews every language no other route lists. Change the engine if you want another default, or replace All languages with specific languages if you do not want a default; without one, the other languages are not checked.
  4. Under Routes, click Add route for each further engine and pick the target languages it reviews. A route is either All languages or a list of languages, never both, and every route needs both halves before you can save. A router always keeps at least one route.
  5. Click Create.

The AI routers list, one row per router, with New AI router above it.

Only review engines are offered — any engine that is not built for machine translation. For a language-model engine, what it does to a segment follows from its prompt's mode, above: an APE engine post-edits and leaves every segment for a person. A job takes the engine of the rule for its target language; a rule also covers regional variants of its language, so a rule for French serves a Canadian French job unless Canadian French has a rule of its own. Every other language takes the default. With no rule and no default, the job skips the check and its segments are left as they are for the person on the step.

To change a router, click its row. A step points at the router itself, so the change reaches every job that starts the step from then on, including in projects that already exist. Deleting a router asks you to confirm; remove it from every workflow step first, or the delete is refused.

Put the router to work

An AI router does nothing until a workflow step uses it. Open Workflows, edit a step, set its type to Hybrid or AI, and pick the router under AI router. See Workflows and tasks for the step itself.

Wherever a workflow lists its steps, a step's router name is a link: it opens the Routers tab, scrolls to that router's card and highlights it for a moment.

Read what was sent to the AI provider

The Logs tab lists the requests your organization's AI steps sent to AI providers, newest first: quality estimation, post-editing and extension calls. The same tab on the MT page lists the requests of LLM translation engines, and LLM logs in the account menu at the top right lists both kinds together. Owners, admins and project managers see them; they appear only when your server keeps a log of these requests.

Each row shows the time, the kind of call, the provider and model, the result code, how long it took and the job and file it was for. Click a row to read the full system prompt, the segments sent and the answer that came back. When the request carried document context, it shows apart from the batch of segments the model was asked about. Use this to see why an engine approved, changed or rejected a segment.

The log keeps your organization's last 1,000 calls, none older than 30 days; the oldest time it still holds is shown below the list. A link to a call that is no longer kept says so.

Related