### Answer
The language setting in Retell AI determines what language the agent understands (speech-to-text) and influences the TTS model choice and synthesized speech [(1) ](
) . However, it does not enforce the agent to generate responses in a certain language .
To fix the inconsistent Spanish responses, you need to explicitly instruct the agent in the prompt [(1) ](
) [(2) ](
) . Add clear Spanish instructions like "always respond in Spanish" or "Habla solo en español" directly into your agent's prompt .
The language setting can be configured:
- In the dashboard by selecting Spanish (es-ES or es-419) from the language dropdown [(1) ](
) [(3) ](
)
- Programmatically via the
language
field in the Create Agent API or Update Agent API [(1) ](
) [(4) ](
)
If you need multilingual support (Spanish and English code-switching) , select the
multi
option for the language setting [(1) ](
) [(4) ](
) [(5) ](
) . When using multilingual mode, English prompts work better than Spanish prompts [(2) ](
) .