https://retellai.com/?utm_source=discord&utm_medium=seo logo
transfer call function isnt working-URGENT
# ❓・bug-report
a
this is urgent and for a client. I have an agent and the call transfer isn't working. I tried EVERYTHING! I tried passing it in as a dynamic variable, yet that didnt work. I then tried it with a static number just to see if it would even work, and STILL it is not working. Attached img is the error message I am getting. It says maybe the user didnt pick up, but it didnt even ring! A client needs this done ASAP! Please help! @AI Evy
a
Thanks for tagging me @alphaautomation. I'll look through relevant sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Dynamic Variables]() * [Call Transfer Node]() * [Transfer call]() * [Debug call transfer failure]() -----------------------------
### Answer Important Note About Dynamic Variables Dynamic variables are not currently supported for transfer destination numbers [(1)]() . Debug Steps 1. Verify transfer_call function implementation: - Check your agent configuration - Confirm you've added the transfer_call function to your agent's function list [(2)]() 2. Confirm call type: - Call transfer only works for phone calls, not web calls 3. Review transfer conditions: - Update your agent's prompt to clearly define transfer conditions - Ensure the transfer_call function description is specific Transfer Types Available You can use either: - Cold transfer: The call is transferred to a destination number directly - Warm transfer: The call is transferred and the AI agent leaves a handoff message [(3)]() For Custom Telephony Users If you're using custom telephony: - Check your SIP trunking provider settings - Ensure SIP REFER is configured if using cold transfer with transferee's number - Verify PSTN transfer settings are correct [(4)]() For detailed guidance on specific features, consider reviewing the [Transfer call]() documentation [(5)]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy So there is no way to get dynamic variables?
a
Thanks for the follow-up, @alphaautomation. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Dynamic Variables]() * [Call Transfer Node]() * [Currently dynamic variables are not supported in the #Transfer To (the destination phone number)]() * [Issue with Dynamic Variables.]() -----------------------------
### Answer While dynamic variables are supported in many parts of the agent configuration [(1)]() , they are currently not supported for the transfer destination phone number [(2)]() . However, there is a potential workaround using multi-state agents. For reference, here are the areas where dynamic variables are supported: - prompt - begin message - tool call description - custom tool call properties description - voicemail setting - warm transfer setting [(1)]() If you need a truly dynamic solution, one community member suggested creating a custom tool for transfer calls with custom telephony integration [(2)]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy what is the proper format for static numbers for call transfer
a
Thanks for the follow-up, @alphaautomation. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Transfer call]() * [Call Transfer Node]() * [Dynamic Variables]() * [Overview]() -----------------------------
### Answer The number should be in e.164 format [(1)]() . This means it should include the country code with a plus sign, for example +1 for US numbers, followed by the area code and phone number without spaces or special characters. For example, if transferring to a US number: - ✓ +12137771234 - ✗ (213) 777-1234 - ✗ 213-777-1234 When setting up the transfer, you can configure whether the receiving end sees: 1. The Retell Agent's number [(2)]() 2. The transferee's number (requires additional telephony provider configuration) If using the transferee's number option, your telephony provider needs these configurations: - Enable SIP REFER - Enable transfer to PSTN - Set caller ID as transferee
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy Can you give me the workaround using a multi-state agent? How would I achieve dynamic call transfers?
a
Thanks for the follow-up, @alphaautomation. I'll get back to you soon.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Dynamic Variables]() * [Transfer call]() * [Build a multi-prompt agent]() * [Platform Changelogs | Retell AI]() -----------------------------
### Answer Based on the information sources, here's how you can implement dynamic call transfers using multi-state agents: 1. Break down your conversation into states [(1)]() 2. Define state transition logic based on user responses. For example:
Copy code
7. Ask if user is interested in an in person tour.
 - if yes, transition to schedule_tour.
 - if no or hesitant, call function end_call to hang up politely and say will reach out if any other interesting properties pop up.
3. In each state, you can configure a different transfer number based on the specific conditions or responses from the caller [(2)]() For example: - State A can transfer to Number A - State B can transfer to Number B [(3)]() This approach allows you to effectively route calls to different numbers based on the conversation flow and user responses, even though dynamic variables aren't directly supported in the transfer function [(4)]() . For implementation, you would need to: 1. Create a multi-prompt agent 2. Define your states 3. Set up transfer conditions within each state 4. Configure the appropriate transfer numbers for each state [(1)]() Remember that for each transfer, you can still choose between cold transfer or warm transfer options in the configuration [(5)]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
Hi @alphaautomation i saw you are using dynamic number in static number field in call transfer
You have to use this {{roofer_numbrr}} in Dynamic Routing not on Static Routing
This will resolve your issue
e
@alphaautomation can you share this call id?
If you get the phone number in real time in call, you cannot use dynamic variable, you need a dynamic routing.