Skip to navigation

Language options

Call languages (language_id) and multi-language agents

View as Markdown

Use these UUIDs for language_id (call language) on POST /api/agent and PATCH /api/agent/{id}.

Your account may only support a subset of these options. If the API rejects a UUID, contact your administrator.

Voice Options

NameUUID
Auto detect (detects the caller’s language; use it for multi-language agents)88296485-1c49-4931-919e-7333986e16da
Assamese India795a422d-62df-49cc-ba85-b268b384bf48
Bengali India7f012455-9c9a-4efe-bd68-8de3b2271939
English India14b8d8a0-5c56-450d-877d-cd3d7d922a00
Gujarati India23e9dd0c-d62a-4a22-b0b9-1ec3e39d33ef
Hindi India38695ff2-ee6f-4a1c-837b-27ab241377f7
Kannada Indiaf727e061-0217-4446-8b23-c13d7a65515f
Malayalam India28eaf83d-eea3-45c6-9a65-fafb3bbe431c
Marathi India9046a14a-e2f6-46df-95e8-3a9883ca40f7
Punjabi India07c2438d-923b-4f50-a8ab-fccf4f8e042e
Tamil India8892e25b-a9df-4669-8312-7d28e457819a
Telugu India100912e7-cf45-46f8-af36-713699e1deff

The older “Multilingual” option is no longer offered for new agents. Agents that already use it keep working; use Auto detect instead.

Agents that speak several languages

Set these fields on POST /api/agent or PATCH /api/agent/{id}. GET /api/agent/{id} returns them.

FieldWhat it does
languagesThe languages the agent speaks, as codes from the table below. The first one is the starting language.
language_idMust be Auto detect (88296485-1c49-4931-919e-7333986e16da) when languages has two or more entries.
voice_idMust be a multilingual voice that speaks every language in languages. The M1 voices are the best fit for multilingual agents. See multilingual voices.
stt_language_modeHow the caller’s language is detected: auto (detect every turn), lock (lock to the first detected language, code-mix on), handoff (lock to the detected language, code-mix off).
default_voice_idOnly for a composite voice, a mix of one voice per language that our team prepares on request: the member voice the call starts with. null clears it.
CodeLanguageCodeLanguage
hiHindibnBengali
enEnglishasAssamese
mrMarathiguGujarati
teTelugumlMalayalam
knKannadaneNepali
taTamilpaPunjabi

A request that breaks these rules gets a 400 that says which field to change. There is no hard limit on the number of languages, but with more than 4 the response includes a note in messages: detection gets less reliable as the list grows, and we recommend 3 or fewer.

curl -X PATCH https://v1.getraya.app/api/agent/AGENT_UUID \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"language_id": "88296485-1c49-4931-919e-7333986e16da",
"voice_id": "a5784bf2-f79b-4f84-bbde-75323d533dc1",
"languages": ["hi", "en", "mr"],
"stt_language_mode": "lock"
}'

Copy a template agent

To create many agents with the same setup (for example one agent per workflow), set up one template agent and clone it with POST /api/agent/{id}/clone. The copy gets every setting, including languages, stt_language_mode and the voice, keeps the outgoing number and has no inbound number. Then change what differs, such as instructions, with PATCH /api/agent/{id}.

curl -X POST https://v1.getraya.app/api/agent/TEMPLATE_AGENT_UUID/clone \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Loan follow-up - Workflow 2" }'

The response is the new agent, with its own uuid.