> ## Documentation Index
> Fetch the complete documentation index at: https://docs.goyappr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Languages

> The languages an agent can speak on calls, the multilingual setting, and what an agent's language changes.

An agent's `language` is the language it speaks and listens for on calls. It is one of seventeen languages, or `multi`: a **multilingual** agent answers in whatever language the caller speaks.

| `language` | Language | Its own name |
| - | - | - |
| `multi` | Multilingual | Answers in the caller's language |
| `he` | Hebrew | עברית |
| `en` | English | English |
| `ar` | Arabic | العربية |
| `ru` | Russian | Русский |
| `fr` | French | Français |
| `es` | Spanish | Español |
| `de` | German | Deutsch |
| `it` | Italian | Italiano |
| `pt` | Portuguese | Português |
| `nl` | Dutch | Nederlands |
| `tr` | Turkish | Türkçe |
| `pl` | Polish | Polski |
| `uk` | Ukrainian | Українська |
| `hi` | Hindi | हिन्दी |
| `ja` | Japanese | 日本語 |
| `ko` | Korean | 한국어 |
| `zh` | Chinese (Mandarin) | 中文 |

Every [model](https://docs.goyappr.com/api-reference/agents/models.md) speaks every one of them, and every [voice](https://docs.goyappr.com/api-reference/agents/voices.md) speaks every language: no voice belongs to a language.

`language` is sent and read as the short code. The locale spellings the API has always taken still work: `he-IL` and `iw` are stored as `he`, `en-US` and `en-GB` as `en`. Any other spelling, such as `fr-FR`, is refused; send `fr`.

## What the language changes

* **How the agent talks.** Each language comes with its own short set of speaking rules, the way a native front-desk agent talks: the polite form where the language has one (`vous`, `Sie`, `usted`, `Lei`, `вы`, `ви`, `siz`, `आप`, `您`, です/ます, 존댓말), how to say phone numbers, dates, times and prices aloud, and how to confirm names and e-mail addresses. Hebrew keeps the rules it has always had.
* **Gender.** In a language that marks the speaker's gender (Hebrew, Arabic, Russian, Ukrainian, Polish, Hindi, French, Spanish, Italian, Portuguese), the agent speaks about itself in the gender of its voice. It never guesses the caller's gender from a name or a voice: it uses neutral or polite forms until the caller reveals it.
* **Listening.** On a live call the model recognises the caller's speech itself. On the Gemini models an English agent is given English as its speech language; every other language, and a multilingual agent, is detected by the model, steered by the language's speaking rules in the agent's instructions. GPT Live takes no language setting and follows the instructions the same way.
* **The model, when it is automatic.** Hebrew and multilingual agents run `gemini-3.1-flash-live`; every other language runs `gemini-3.8-live`. A pinned `model` always wins. See [Automatic](https://docs.goyappr.com/api-reference/agents/models.md#automatic).
* **The transcript and summary.** After the call, the recording is transcribed as the agent's language (a multilingual agent's is left to the transcriber to detect), and the summary is written in the language the call was held in. For a multilingual agent, that is the language the caller spoke.

The instructions and the opening line can be written in any language. Write them in the language the agent speaks, or in English; the agent still speaks its `language`.

## Multilingual

`"language": "multi"` gives an agent that:

* answers in the language the caller speaks, and switches from its next sentence when they switch;
* never mixes two languages in one sentence (names, brands and addresses stay as they are);
* uses the language of its opening line, or of its instructions when it has none, when it cannot tell what the caller is speaking;
* says its opening line (`greeting_message`) exactly as written, so write it in the language most of your callers speak;
* keeps each language's own politeness, gender and number rules.

A multilingual agent runs `gemini-3.1-flash-live` when it is automatic, because a caller may open in Hebrew and that model is the more reliable one on a Hebrew first turn. Pin `gemini-3.8-live` when your callers do not speak Hebrew.

## Setting it

```bash theme={null}
# A new agent that speaks French.
curl --request POST "$YAPPR_API_URL/agents" \
  --header "Authorization: Bearer $YAPPR_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: french-front-desk-2026-0001" \
  --data '{"name":"Accueil","language":"fr","template":"inbound"}'

# Make an existing agent multilingual.
curl -X PATCH "$YAPPR_API_URL/agents/$AGENT_ID" \
  -H "Authorization: Bearer $YAPPR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "language": "multi" }'
```

`language` is accepted on [Create](https://docs.goyappr.com/api-reference/agents/create.md), [Update](https://docs.goyappr.com/api-reference/agents/update.md) and [Duplicate](https://docs.goyappr.com/api-reference/agents/duplicate.md), and read on every agent. The dashboard's **Call language** (New Agent and Agent settings) is the same field.

The starting steps a new agent is created with are written for the person editing it, not for the caller. They exist in Hebrew and English: `authoring_locale` picks one, and it defaults to `he` for a Hebrew agent and to `en` for any other.

## Errors

| Status | Code | Cause |
| - | - | - |
| `400` | `WORKFLOW_AGENT_REQUEST_INVALID` | On `POST /agents`: a `language` that is not one of the codes above. `issues[]` has an entry at `/language` listing them. |
| `422` | `WORKFLOW_SETTINGS_REQUEST_INVALID` | On `PATCH /agents/{id}`: the same, with an `issues[]` entry for `language`. Nothing is saved. |
| `400` | | On `PATCH /agents/{id}` for a prompt or flow agent made before the workflow engine: the same, in `error`. Nothing is saved. |
| `422` | `WORKFLOW_DUPLICATE_REQUEST_INVALID` | On a duplicate: the same. Nothing is copied. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.