manucmt_18551
09/11/2025, 6:55 AMAI Evy
09/11/2025, 6:55 AMAI Evy
09/11/2025, 6:55 AMretell_llm_dynamic_variables are optional dynamic variables in key-value pairs of strings that inject into your Response Engine prompt and tool description [(1) ]() . They allow you to personalize your agent's responses for each specific call using the {{variable_name}} syntax [(2) ]() .
These variables can be used in prompts, begin messages, tool configurations, and call handling . When making outbound calls, you set these variables in the API request [(1) ]() :
json
{
"retell_llm_dynamic_variables": {
"customer_name": "John Doe"
}
}
All values in retell_llm_dynamic_variables must be strings [(2) ]() .
## 2. collected_dynamic_variables
collected_dynamic_variables are dynamic variables collected from the chat or call [(3) ]() . They're only available after the chat or call ends . These represent data that was gathered during the conversation itself.
Example response format:
json
{
"collected_dynamic_variables": {
"last_node_name": "Test node"
}
}AI Evy
09/11/2025, 6:55 AMretell_llm_dynamic_variables payloads. However, there are a few common issues mentioned in the Discord discussions:
- Make sure you're using the correct variable syntax {{variable_name}} rather than {{retell_llm_dynamic_variables.variable_name}} [(4) ]()
- Ensure all variable values are strings, not other data types [(2) ]()
- Variables must be properly set when creating the call or chat session [(1) ]()
For specific troubleshooting of invalid values in your payloads, I'd recommend checking that your variable names match exactly between your API request and your agent configuration, and that all values are properly formatted as strings.AI Evy
09/11/2025, 6:55 AMAI Evy
09/11/2025, 6:55 AM