https://retellai.com/?utm_source=discord&utm_medium=seo logo
how can I change language to Polish
# ❓・ai-evy-support
a
Thanks for tagging me @Bukat. I'll look through relevant sources and get back to you shortly.
### Answer You can set the language for your Retell AI agent to Polish through the API using the
language
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 .
Copy code
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 .
​ To learn more, see the sources I considered: [[1] Set language for your agent](https://docs.retellai.com/agent/language) [[2] ](https://www.retellai.com/languages/polish) [[3] Get Agent](https://docs.retellai.com/api-references/get-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.