freekzy
01/27/2025, 10:33 PMAI Evy
01/27/2025, 10:33 PMAI Evy
01/27/2025, 10:33 PMretell_llm_dynamic_variables field when making the API call [(1)]() . Here's the correct format:
json
{
"user_name": "John Smith",
"product_name": "Premium Plan",
"account_status": "active"
}
You cannot send variables outside of the retell_llm_dynamic_variables object [(2)]() . Any variables within that object will be mapped within the prompt using the format {{whatever_variable_name_you_used}} .
When using these variables in your prompt, they should be surrounded by double curly braces, like this:
json
"Hello {{user_name}}, I understand you're interested in {{product_name}}. How can I help you today?"
[(1)]()
If a dynamic variable is not assigned a value, it will remain unchanged in the output and appear as {{variable_name}} in the agent's speech .AI Evy
01/27/2025, 10:33 PM