_scaggs
07/30/2025, 3:01 PMAI Evy
07/30/2025, 3:01 PMAI Evy
07/30/2025, 3:02 PM{{customer_phone}} or {{escalation_number}} as the transfer destination [(2) ]() [(1) ]() .
However, there's an important limitation: dynamic variables are currently not supported in the Transfer To destination phone number field for some configurations [(3) ]() . The transfer destination number is typically expected to be hardcoded .
You can also use dynamic variables in custom SIP headers for call transfers [(4) ]() . These headers must start with X- and can include dynamic variable values to pass information extracted from the call to the receiving party .AI Evy
07/30/2025, 3:02 PMAI Evy
07/30/2025, 3:02 PM_scaggs
07/30/2025, 3:57 PM_scaggs
07/30/2025, 3:58 PMAI Evy
07/30/2025, 3:58 PMAI Evy
07/30/2025, 3:58 PMAI Evy
07/30/2025, 3:58 PMAI Evy
07/30/2025, 3:58 PM_scaggs
07/30/2025, 4:21 PMAI Evy
07/30/2025, 4:21 PMAI Evy
07/30/2025, 4:22 PM"If the user asks to book an appointment, use the agent_transfer tool to transfer to the Appointment Agent."
## Option 2: Multi-State Call Transfer with Dynamic Variables
Step 1: Set Up Dynamic Variables [(2) ]()
In your Create Phone Call API request, include dynamic variables in the retell_llm_dynamic_variables field [(3) ]() :
json
{
"retell_llm_dynamic_variables": {
"transfer_number": "+12137771234",
"customer_name": "John Smith"
}
}AI Evy
07/30/2025, 4:22 PM"If the user is angry or frustrated, use the transfer_call tool to transfer the conversation to a human agent."
## Workaround for Dynamic Transfer Numbers
As shown in the workshop example [(5) ]() , you can use dynamic variables to pass phone numbers from your CRM system and reference them in the transfer function using variables like {{transfer_number}} .
The key advantage of Agent Transfer over Call Transfer is lower latency, better reliability, and no need for separate phone numbers for each agent [(1) ]() .AI Evy
07/30/2025, 4:22 PMAI Evy
07/30/2025, 4:22 PM