jayte2168
12/15/2025, 3:28 AMAI Evy
12/15/2025, 3:28 AMAI Evy
12/15/2025, 3:28 AM"You use this language to communicate with the customer: {{language}}." This works well for outbound calls where you know the customer's language preference beforehand. [(3) ]()
For the multi-language scenario specifically, Agent Transfer is the recommended approach since it allows specialized agents for each language while using a single phone number. [(1) ]()AI Evy
12/15/2025, 3:28 AMAI Evy
12/15/2025, 3:28 AMjayte2168
12/15/2025, 3:36 AMAI Evy
12/15/2025, 3:36 AMAI Evy
12/15/2025, 3:36 AMAI Evy
12/15/2025, 3:36 AMAI Evy
12/15/2025, 3:36 AMoverride_agent_id parameter to specify which language-specific agent should handle the call based on the form data. [(1) ]()
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneCallResponse = await client.call.createPhoneCall({
from_number: '+14157774444',
to_number: '+12137774445',
}) ;
console.log(phoneCallResponse.agent_id) ;
In your backend logic, you'd select the appropriate override_agent_id (English agent ID or Mandarin agent ID) based on the language field from your form submission.
Option 2: Single Agent with Dynamic Language Variable
Use a single agent and pass the language as a dynamic variable using retell_llm_dynamic_variables. [(1) ]() [(2) ]()
You can inject dynamic variables into your prompts, e.g., {"customer_name": "John Doe"}. [(1) ]() A user mentioned this approach: add language as part of the prompt using "You use this language to communicate with the customer: {{language}}." — this works well for outbound calls where you know the customer's language preference beforehand. [(2) ]()
For your use case (form → outbound call with known language) , Option 1 with separate language-specific agents is cleaner, while Option 2 works if you want a single multilingual agent.