AI Evy
09/01/2025, 6:18 PMAI Evy
09/01/2025, 6:18 PMlanguage field [(1) ]() . You can configure this when creating or updating an agent using the Create Agent API or Update Agent API by setting the language field to the desired language code .
Retell AI's Polish AI voice agents let you handle inbound and outbound calls, SMS, and conversational workflows in Polish [(2) ]() .
When you set the language, it will:
- Determine what language the agent would understand (language of speech to text) [(1) ]()
- Determine the default TTS model choice based on that language
- Pass that language code to TTS provider and influence the synthesized speech
- Influence the speech normalization process
However, setting the language does not enforce the agent to generate responses in Polish - you need to set that in the prompt yourself by adding something like "always respond in Polish" into the prompt .
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.retrieve('16b980523634a6dc504898cda492e939') ;
console.log(agentResponse.agent_id) ;
[(3) ]()
The language field appears in the agent configuration as shown in the API response example where "language": "en-US" is set .AI Evy
09/01/2025, 6:18 PMAI Evy
09/01/2025, 6:18 PM