https://retellai.com/?utm_source=discord&utm_medium=seo logo
can we map out dynamic variables also in the outbo...
# ❓・ai-evy-support
a
@AI Evy can we map out dynamic variables also in the outbound call
a
Thanks for tagging me @akshat_9728. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can use dynamic variables in outbound calls. [(1) ]() [(2) ]() When making outbound calls using the Create Phone Call API, you can set dynamic variables through the
retell_llm_dynamic_variables
field. All values must be strings. [(1) ]() Here's how to implement it:
Copy code
javascript
const registerCallResponse = await retell.call.createPhoneCall({
 from_number: '+14157774444', // replace with the number you purchased
 to_number: '+12137774445', // replace with the number you want to call
 // Optional: per-call agent selection and overrides
 override_agent_id: 'agent_abc123',
 override_agent_version: 0, // or omit to use latest
 agent_override: {
 agent: {
 voice_speed: 1.1,
 enable_backchannel: true,
 },

 // retell_llm or conversation_flow overrides are also supported
 },
 retell_llm_dynamic_variables: { // dynamic variables (optional, string values only)
 name: 'John Doe',
 blood_group: 'B+'
 }, 
 custom_sip_headers: { // replace with custom sip headers you want to send (optional)
 X-Custom-Header: 'Custom Value'
 }
}) ;
These dynamic variables can then be used in your agent's prompts, begin messages, tool configurations, and other areas using the
{{variable_name}}
syntax. [(2) ]()
​ To learn more, see the sources I considered: [[1] Outbound Calls (Make Calls)](https://docs.retellai.com/deploy/outbound-call) [[2] 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.