https://retellai.com/?utm_source=discord&utm_medium=seo logo
tell me about custom dynamic variables for convers...
# ❓・ai-evy-support
k
@AI Evy tell me about custom dynamic variables for converstional flow agents
a
Thanks for tagging me @kkoya_. I'll look through relevant sources and get back to you shortly.
### Answer Dynamic variables work with Conversation Flow agents, allowing you to inject personalized data into various parts of your agent configuration [(1) ]() . ## Where You Can Use Dynamic Variables In Conversation Flow agents, dynamic variables can be used in : - prompt - begin message - tool call url - tool call description - custom tool call properties description - voicemail setting (both prompt and static text) - transfer call function number - warm transfer setting (both prompt and static text) ## Setting Up Dynamic Variables **Syntax**: Dynamic variables use double curly braces, like
{{user_name}}
. **Default Variables**: You can configure agent-level default dynamic variables in the Conversation Flow using the
default_dynamic_variables
field [(2) ]() :
Copy code
json
{  
 "company_name": "Retell Inc",  
 "support_hours": "9 AM - 5 PM"  
}
**For Outbound Calls**: Pass variables in the
retell_llm_dynamic_variables
field when creating calls [(1) ]() :
Copy code
json
{
 "user_name": "John Smith",
 "product_name": "Premium Plan",
 "account_status": "active"
}
**For Inbound Calls**: Supply variables via the Inbound Call Webhook . ## Important Notes All values in
retell_llm_dynamic_variables
must be strings . When using variables in Conversation Flow, reference them directly as
{{variable_name}}
rather than
{{retell_llm_dynamic_variables.variable_name}}
[(3) ]() . If a dynamic variable isn't set, it will remain unchanged in the output (e.g.,
{{user_name}}
stays as
{{user_name}}
) [(1) ]() .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[3] Outbound Custom Variable](https://discord.com/channels/1186424376300679209/1371090783989530694) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.