https://retellai.com/?utm_source=discord&utm_medium=seo logo
Is it possible that my agent speaks in different l...
# ❓・ai-evy-support
j
@AI Evy Is it possible that my agent speaks in different languages depending on the caller ? e.g. I have one agent and it defaults to german. But if I provide a dynamic variable e.g. {{motherlanguage}} I would like that already the greeting is in that language. Possible?
a
Thanks for tagging me @joergsflow. I'll look through relevant sources and get back to you shortly.
### Answer Dynamic variables like {{motherlanguage}} can be used to personalize agent responses, including greetings, by injecting caller-specific data into prompts or begin messages [(1) ]() . However, the documentation does not explicitly state that dynamic variables can directly control the agent's spoken language at runtime. You can use a dynamic variable to conditionally change the greeting text (e.g., provide a German greeting if {{motherlanguage}} is "de", or English if "en") , but whether the Text-to-Speech engine will switch voices/languages accordingly is not documented . If you want the agent to always greet in the appropriate language based on a caller's property, you can structure your prompts or conversation flows to check the value of {{motherlanguage}} and output the appropriate greeting text . The actual language spoken will depend on the configuration of the agent and TTS settings, which are not directly documented as dynamic-variable-controllable . Check out these potentially useful sources: [Dynamic Variables]() , [List Retell LLMs]() , [Get Retell LLM]() Would you like a general answer based on my knowledge?
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.