Gza
01/23/2026, 11:47 AM{
"status": "Error transferring: Transfer destination number is a dynamic variable that's not populated."
}
> Agent: Thank you for waiting. Please hold while I try to connect you to the next available team member.AI Evy
01/23/2026, 11:47 AMAI Evy
01/23/2026, 11:47 AM"Transfer destination number is a dynamic variable that's not populated" indicates that while your agent can read the variable values in the prompt context, the dynamic variable is not being properly resolved when the Transfer Call tool executes. [(1) ]()
## How Dynamic Variables Work for Transfer Calls
The transfer number can be set to a dynamic variable that gets substituted at runtime. However, for this to work, the variable must be properly populated before the call starts or through the appropriate mechanism.
## Key Points to Check
1. **Variable Population Timing**: Dynamic variables in retell_llm_dynamic_variables are for passing in variables you want to use in the prompt before the call starts. [(2) ]() If you're trying to use values collected during the call as transfer numbers, this won't work the same way.
2. **For Inbound Calls**: Custom SIP headers (starting with X-) are automatically extracted and added to your dynamic variables collection. [(3) ]() You can access them by stripping the X- prefix.
3. **For Outbound Calls**: Set your variables in the retell_llm_dynamic_variables field when using the Create Phone Call API. [(4) ]()
## Likely Cause
The agent can read the numbers because they exist in the prompt context, but the Transfer Call tool requires the dynamic variable to be formally registered in the retell_llm_dynamic_variables collection at call initiation time.
## Solution
Ensure the transfer number variables (primary, secondary, third) are passed in the retell_llm_dynamic_variables field when the call is created, not just referenced in the prAI Evy
01/23/2026, 11:47 AMAI Evy
01/23/2026, 11:47 AMAI Evy
01/23/2026, 11:47 AMGza
01/23/2026, 12:16 PMAI Evy
01/23/2026, 12:16 PMAI Evy
01/23/2026, 12:16 PM"Transfer number is {{primary}}") to see if this resolves the transfer issue
2. If it works, you can make the reference subtle or use it in a way that doesn't expose it to the user
## Proper Variable Setup
Dynamic variables should be set in the retell_llm_dynamic_variables field and can be used in: [(2) ]()
- Prompts
- Begin message
- Tool configurations (including tool descriptions and transfer call phone numbers)
Make sure your webhook response is properly formatting the variables in the retell_llm_dynamic_variables object.
If the issue persists after trying the workaround, this may require reaching out to Retell support directly as it appears to be a known edge case with variable resolution in tool execution.AI Evy
01/23/2026, 12:16 PMAI Evy
01/23/2026, 12:16 PMGza
01/23/2026, 2:14 PMAI Evy
01/23/2026, 2:14 PMAI Evy
01/23/2026, 2:14 PMcall_inbound and use dynamic_variables instead of retell_llm_dynamic_variables. [(1) ]() [(2) ]()
Your current format:
json
{
"status": "ok",
"result": {
"retell_llm_dynamic_variables": {
"tech1": "{{53.Number}}",
...
}
}
}
Correct format for inbound call webhook:
json
{
"call_inbound": {
"dynamic_variables": {
"tech1": "+14157774444",
"tech2": "+12137774445",
"tech3": "+14157774446",
"tech4": "+12137774447"
}
}
}
Two issues to fix:
1. **Wrong wrapper**: For inbound webhooks, variables must be nested under call_inbound → dynamic_variables, not result → retell_llm_dynamic_variables
2. **Unresolved Make.com variables**: The values "{{53.Number}}" etc. appear to be Make.com template placeholders that aren't being resolved before sending. Make sure Make.com is actually substituting those with real phone numbers before the webhook fires.
The error "Transfer destination number is a dynamic variable that's not populated" occurs because Retell isn't recognizing the variables in that format. [(2) ]()AI Evy
01/23/2026, 2:14 PMAI Evy
01/23/2026, 2:14 PMGza
01/23/2026, 2:15 PMAI Evy
01/23/2026, 2:15 PMAI Evy
01/23/2026, 2:16 PMjson
{
"call_inbound": {
"dynamic_variables": {
"tech1": "+4477XXXXXXXX",
"tech2": "+4474XXXXXXXX",
"tech3": "+4478XXXXXXXX",
"tech4": "+4479XXXXXXXX"
}
}
}
Make sure Make.com is resolving those {{53.Number}} placeholders to actual phone number strings before the response is sent. Once the format is corrected with call_inbound → dynamic_variables, your Transfer Call tool should properly recognize the populated variables.
Let me know how it goes after the changes!AI Evy
01/23/2026, 2:16 PMAI Evy
01/23/2026, 2:16 PMGza
01/23/2026, 3:03 PMAI Evy
01/23/2026, 3:03 PMAI Evy
01/23/2026, 3:03 PM{{variable_name}} syntax. [(1) ]()
[(2) ]()
Ensure the exact variable name you're using in your Transfer Call node configuration matches what's being set in your webhook response. For example, if your webhook sets tech1, your transfer number field must be {{tech1}} exactly.
## Check How Variables Are Being Set
Dynamic variables can be used in tool configurations including transfer call phone numbers.
However, there's a distinction between:
- Variables set at call initiation (via webhook response in call_inbound → dynamic_variables)
- Variables the agent "knows about" in prompt context
The Transfer Call tool specifically requires the variable to be formally registered in the dynamic variables collection, not just referenced in a prompt.
## Agent Transfer Variable Persistence Issue
A similar issue has been reported where dynamic variables set via webhook weren't being interpolated properly in tool calls after certain flow transitions. In one case, the issue resolved itself after debugging, suggesting it may be intermittent or configuration-dependent. [(3) ]()
## Next Steps
Since you've stripped the workflow to basics and it still fails, this may require direct support investigation. You can:
- Visit [Contact Sales]()
- Check [)
Would you like me toAI Evy
01/23/2026, 3:03 PMAI Evy
01/23/2026, 3:03 PMAI Evy
01/23/2026, 3:03 PMGza
01/23/2026, 3:11 PMAI Evy
01/23/2026, 3:11 PMAI Evy
01/23/2026, 3:11 PMAI Evy
01/23/2026, 3:11 PMAI Evy
01/23/2026, 3:11 PM