wesleybldc
07/28/2025, 8:17 PMAI Evy
07/28/2025, 8:17 PMAI Evy
07/28/2025, 8:18 PMmetadata and retell_llm_dynamic_variables is their purpose and usage:
Metadata:
- Used for storage purposes only [(1) ]() [(2) ]() [(3) ]() [(4) ]() [(5) ]()
- Not used for processing
- Can contain arbitrary data like internal customer IDs
- Available for retrieval after the call but doesn't affect agent behavior
Retell LLM Dynamic Variables:
- Inject data into your Response Engine prompt and tool description [(6) ]() [(1) ]() [(3) ]() [(4) ]() [(5) ]()
- Only applicable for Response Engine [(1) ]() [(3) ]() [(4) ]() [(5) ]()
- Allow you to personalize your agent's responses while keeping the core conversation flow intact [(6) ]()
- Can be used in prompts, begin messages, tool call URLs, tool call descriptions, and other agent components
For your use case of passing data as custom variables in conversation workflow, you want retell_llm_dynamic_variables . Here's how to use them:
In API calls, set dynamic variables like this:
json
{
"customer_name": "John Doe"
}AI Evy
07/28/2025, 8:18 PM"Hello {{customer_name}}, how can I help you today?"
[(6) ]()
For outbound calls, use the Create Phone Call API with the retell_llm_dynamic_variables field [(6) ]() [(3) ]() . For inbound calls, supply dynamic variables in the Inbound Call Webhook [(6) ]() .
All values in retell_llm_dynamic_variables must be strings .AI Evy
07/28/2025, 8:18 PMAI Evy
07/28/2025, 8:18 PMwesleybldc
07/29/2025, 6:00 AMAI Evy
07/29/2025, 6:00 AMAI Evy
07/29/2025, 6:00 AMvoice_temperature parameter to make the voice more stable [(1) ]() [(2) ]() [(3) ]() [(4) ]() . The value ranges from [0,2], where a lower value means more stable speech generation and a higher value means more variant speech generation . This setting currently only applies to 11labs voices .
Voice Model Selection:
You can set the voice_model parameter to choose between different voice model options . Available options include:
- eleven_turbo_v2
- eleven_flash_v2
- eleven_turbo_v2_5
- eleven_flash_v2_5
- eleven_multilingual_v2
- tts-1
- gpt-4o-mini-tts
Speech Normalization:
Enable normalize_for_speech to convert entities like numbers, currency, and dates into spoken form for more consistent speech synthesis . This can help prevent issues where the voice synthesis system might not pronounce text correctly .
Pronunciation Dictionary:
You can use the pronunciation_dictionary parameter to provide specific pronunciation guidance for words or phrases . This is currently only supported for English & 11labs voices .
Global Settings Configuration:
In the conversation flow builder, you can access these voice settings by clicking on the empty canvas and accessing the global settings [(5) ]() . Here you can adjust voice temperature, speed, volume, and voice model selection .
From the Discord discussion, there was mention of voice model changes mid-call, which could contribute to inconsisteAI Evy
07/29/2025, 6:00 AMAI Evy
07/29/2025, 6:00 AMwesleybldc
07/29/2025, 8:20 AMAI Evy
07/29/2025, 8:20 AMAI Evy
07/29/2025, 8:20 AM{{#if reminiscent and medicine_reminders}}
....
{{#elsif reminiscent}}
....
{{#elsif medicine_reminders}}
....
{{else}}
...
{{/if}}
Use natural language instructions like:
## TASK
1.) You must transition to the next state. If {{variable_1}} is some_value_here, transition to state "name_of_state_1." If {{variable_2}} is some_other_value_here, transition to state "name_of_state_2."AI Evy
07/29/2025, 8:20 AM{{variable_name}} [(3) ]() . The LLM should handle JSON fairly well, especially if you tell it to understand it as JSON [(2) ]() .
## Alternative Approach
You can also handle this server-side by telling the agent what state to transition to based on the values of your custom variables .
The Logic Split Node approach gives you the most control and clarity for complex conditional logic, while plain English instructions work well for simpler conditionals within conversation nodes.AI Evy
07/29/2025, 8:20 AMAI Evy
07/29/2025, 8:20 AMwesleybldc
07/29/2025, 8:23 AMAI Evy
07/29/2025, 8:23 AMAI Evy
07/29/2025, 8:24 AMjson
"transition_condition": {
"type": "prompt",
"prompt": "Customer wants to book appointment"
}
The Logic Split Node can come in handy when you want to further split the conversation flow based on conditions, and do not want to stack all your conditions in previous nodes [(1) ]() . It can also be hard for the agent to handle a bunch of conditions all at once, so this node can help break it down . It can also be useful when you want to branch out based on dynamic variables .AI Evy
07/29/2025, 8:24 AMAI Evy
07/29/2025, 8:24 AMwesleybldc
07/29/2025, 9:22 AMAI Evy
07/29/2025, 9:22 AMAI Evy
07/29/2025, 9:23 AMAI Evy
07/29/2025, 9:23 AMAI Evy
07/29/2025, 9:23 AMAI Evy
07/29/2025, 9:23 AM