sairam_09164
11/19/2025, 2:55 AMAI Evy
11/19/2025, 2:55 AMAI Evy
11/19/2025, 2:55 AMAI Evy
11/19/2025, 2:56 AMretell_llm_dynamic_variables to pass your two values [(2) ]() [(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',
}) ;
[(1) ]()
## Passing Dynamic Variables
When creating the call, include your two values in the retell_llm_dynamic_variables field (all values must be strings) [(3) ]() [(1) ]() :
javascript
{
"from_number": "+16504144521",
"to_number": "your_target_number",
"override_agent_id": "agent_71724df7636716ceb3a7e244c8",
"retell_llm_dynamic_variables": {
"name": "Sarah"
}
}
[(4) ]()
## Using Variables in Your Agent
You can reference these variables in your agent's prompts using the {{variable_name}} syntax [(3) ]() :
"Hello {{user_name}}, I understand you're interested in {{product_name}}. How can I help you today?"AI Evy
11/19/2025, 2:56 AM