afrah_85175
09/08/2025, 6:57 AMAI Evy
09/08/2025, 6:57 AMAI Evy
09/08/2025, 6:57 AMAI Evy
09/08/2025, 6:57 AMuser, agent, or function as the role of the transcript [(2) ]() . When selecting function as the role, you can fill out both the invocation and result of the function .
For finetune examples in conversation nodes, supplying a transcript as the context is everything you need to do . It's not necessary to provide the entire call transcript - you can simply provide the relevant part . At least one agent response is required, as this is finetuning the agent's response .
The documentation mentions that default dynamic variables can be referenced throughout the conversation flow [(3) ]() , and these variables can be used in transition conditions using equation syntax like {{variable_name}} [(4) ]() . However, the specific process for incorporating variable values into finetune conversation examples isn't detailed in the available sources.
For more specific guidance on using variables within finetune examples, you might want to check out these potentially helpful resources:
- [Finetune Examples]()
- [Create Conversation Flow]()
- [Debug guide](AI Evy
09/08/2025, 6:57 AMAI Evy
09/08/2025, 6:57 AMafrah_85175
09/08/2025, 7:23 AMAI Evy
09/08/2025, 7:23 AMAI Evy
09/08/2025, 7:24 AMAI Evy
09/08/2025, 7:24 AM"Hello {{user_name}}, how can I help you today?" and user_name is not provided, it will display as "Hello {{user_name}}, how can I help you today?" .
## Common Issues and Solutions
### 1. Agent Version Mismatch
Check that your phone number is associated with the current version of your agent [(2) ]() . Make sure it's the version you're looking at in the dashboard, as commonly people phone an older version of their agent .
### 2. Default Variables Not Saving
There have been reported issues with default dynamic variables not saving properly [(3) ]() . Users have experienced situations where they enter values for default dynamic variables, click save, but when they return to the flow, the variables show the previous values . This issue has been reported as fixed .
### 3. Agent Publishing
Ensure you have published your agent after making changes to the default dynamic variables [(4) ]() .
### 4. Prompting Specificity
Be more explicit in your prompting, especially if you're using a weaker model [(2) ]() . For example, use "The user's name is: {{name}}" rather than just referencing the variable indirectly .
## Setting Default VaAI Evy
09/08/2025, 7:24 AMAI Evy
09/08/2025, 7:24 AMafrah_85175
09/08/2025, 7:46 AMAI Evy
09/08/2025, 7:46 AMAI Evy
09/08/2025, 7:46 AM{{variable_name}} syntax [(1) ]() . These variables can be used in several places including prompts, begin messages, tool configurations, and call handling .
## Extract Dynamic Variable Node
To capture and store information as dynamic variables during conversation flow, you can use the Extract Dynamic Variable Node [(2) ]() . This node allows you to:
- Extract information from conversations and store them as dynamic variables
- Create variables of different types: Text, Number, Enum, or Boolean
- Define variable names and descriptions for what the value should be
## Checking Variable Values in Transition Conditions
You can check if dynamic variables exist or have specific values using equation conditions in transition conditions [(3) ]() :
{{variable_name}} exists
{{variable_name}} does not exists
{{user_age}} > 18
{{user_location}} == "New York"AI Evy
09/08/2025, 7:46 AM{{current_agent_state}} - Current state name for multi-state agents
- {{previous_agent_state}} - Previous state name for multi-state agents
- {{current_time}} - Current time in America/Los_Angeles
- {{call_type}} - Call type, web_call or phone_call
## Community Insights
Based on community discussions, you can set static values in Extract Variables nodes instead of dynamic ones based on conversation, which can help track which node the flow came from [(4) ]() . For example, setting a state variable to "BUY" for a house buying node and "RENT" for a house renting node .
The documentation doesn't specifically detail how to view variable values during individual node testing. For more specific guidance on debugging and viewing variable values during node testing, you might want to:
Check out these potentially useful sources:
- [Dynamic Variables]()
- [Extract Dynamic Variable Node]()
- [Step 3: Add transition conditions]()
Would you like me to provide a general approach based on my knowledge instead?AI Evy
09/08/2025, 7:46 AMAI Evy
09/08/2025, 7:46 AMafrah_85175
09/08/2025, 7:48 AMAI Evy
09/08/2025, 7:48 AMAI Evy
09/08/2025, 7:49 AMdefault_dynamic_variables field [(2) ]() [(3) ]() :
javascript
const llmResponse = await client.llm.update('16b980523634a6dc504898cda492e939', {
begin_message: 'Hey I am a virtual assistant calling from Retell Hospital.',
}) ;
[(2) ]()
The response includes the default dynamic variables structure [(2) ]() [(3) ]() :
json
{
"default_dynamic_variables": {
"customer_name": "John Doe"
}
}
[(2) ]() , [(3) ]()
### For Conversation Flow
When creating a conversation flow, you can also set default dynamic variables [(4) ]() :
json
{
"default_dynamic_variables": {
"company_name": "Retell Inc",
"support_hours": "9 AM - 5 PM"
}
}AI Evy
09/08/2025, 7:49 AM{{variable_name}} syntax in [(1) ]() :
- **Prompts**: Agent instructions and personality
- **Begin message**: Opening greeting
- **Tool configurations**: Custom function URLs, tool descriptions, property descriptions
- **Call handling**: Voicemail prompts and messages, transfer call phone numbers, warm transfer instructions
## Important Notes
All values in retell_llm_dynamic_variables must be strings . Numbers, booleans, or other data types are not supported .
Based on community feedback, make sure dynamic variables are sent as strings and match the exact names in your prompt (case-sensitive) [(5) ]() . If the prompt doesn't explicitly use them or the tool isn't set up correctly, they may just show in the Data tab but aren't used .AI Evy
09/08/2025, 7:49 AMAI Evy
09/08/2025, 7:49 AMafrah_85175
09/08/2025, 7:51 AMAI Evy
09/08/2025, 7:51 AMAI Evy
09/08/2025, 7:52 AMretell_llm_dynamic_variables for conversation flow agents:
## For Outbound Calls
When using the Create Phone Call API, set your variables in the retell_llm_dynamic_variables field [(1) ]() . All values must be strings:
json
{
"user_name": "John Smith",
"product_name": "Premium Plan",
"account_status": "active"
}
## For Inbound Calls
You can supply dynamic variables in the Inbound Call Webhook . The documentation notes that more details are available at the linked documentation.
## JSON Format Requirements
Based on community discussions, ensure your JSON is properly formatted as an object, not a string [(2) ]() . The correct format is:
json
"retell_llm_dynamic_variables": {
"first_name": "Fred2",
"business_type": "Chiropractor"
}
Avoid this incorrect format:
json
"retell_llm_dynamic_variables": "{ 'first_name' : 'Fred2', 'business_type' : 'Chiropractor' }"
## Important Notes
- All values in retell_llm_dynamic_variables must be strings [(1) ]() . Numbers, booleans, or other data types are not supported.
- The variables work in general prompts and begin messages [(3) ]() .
- You can also use the {{}} format in dashboard prompts .
## Default Dynamic Variables
You can also configure default dynamic variables at the agent level using the default_dynamic_variables field [(1) ]() , [(4) ]() . These serve as fallback values when specific variables aren't included in the call request.AI Evy
09/08/2025, 7:52 AMAI Evy
09/08/2025, 7:52 AMafrah_85175
09/08/2025, 7:54 AMAI Evy
09/08/2025, 7:54 AMAI Evy
09/08/2025, 7:55 AMAI Evy
09/08/2025, 7:55 AMretell_llm_dynamic_variables [(1) ]() .
## How Default Dynamic Variables Work
Default dynamic variables serve as fallback values and will only be used when specific variables aren't included in the call request . You can set default values for dynamic variables at the agent level .
## For Conversation Flow Agents
When creating a conversation flow, you can configure default dynamic variables using the default_dynamic_variables field [(2) ]() :
json
{
"default_dynamic_variables": {
"company_name": "Retell Inc",
"support_hours": "9 AM - 5 PM"
}
}AI Evy
09/08/2025, 7:55 AM{{variable_name}} syntax in [(1) ]() :
- **Prompts**: Agent instructions and personality
- **Begin message**: Opening greeting
- **Tool configurations**: Custom function URLs, tool descriptions, property descriptions
- **Call handling**: Voicemail prompts and messages, transfer call phone numbers, warm transfer instructions
## Default System Variables
Retell also automatically provides system variables that require no configuration :
- {{current_agent_state}} - Current state name (for multi-state agents)
- {{previous_agent_state}} - Previous state name (for multi-state agents)
- {{current_time}} - Current time in America/Los_Angeles
- {{call_type}} - Call type, web_call or phone_call
The key point is that default dynamic variables act as fallbacks - they're automatically available throughout your conversation flow without needing to be sent in each individual call request .AI Evy
09/08/2025, 7:55 AM