https://retellai.com/?utm_source=discord&utm_medium=seo logo
i keep getting this error on call transfers tool_c...
# ❓・ai-evy-support
x
@AI Evy i keep getting this error on call transfers tool_call_id: a96083b46ea3e4e6 { "execution_message": "Please confirm you would like to be transferred to Building and Community Services at +1 954-630-4350" } Tool Result tool_call_id: a96083b46ea3e4e6 {"status":"Error transferring: Transfer destination number is not inferred."} the number is clearly stated
a
Thanks for tagging me @xmangomelon. I'll look through relevant sources and get back to you shortly.
### Answer The error "Error transferring: Transfer destination number is not inferred." usually means the transfer_call tool did not receive a valid transfer destination in the correct format or variable, even if it appears in your execution_message [(1) ]() [(2) ]() [(3) ]() . Here are key points to check: 1. Make sure the transfer destination number is provided as a parameter (not just in the message) to the transfer_call tool, either as a static number or via a dynamic variable, and in valid e.164 format (e.g., +19546304350) [(1) ]() [(3) ]() . 2. If you are using dynamic variables to pass the number, confirm that the variable is correctly set and accessible at the time the tool is called [(1) ]() . 3. In your tool call, the destination number should be a separate argument, not just mentioned in the execution_message [(1) ]() [(3) ]() . 4. If you are still encountering issues, review your agent's function/tool configuration and prompt logic to ensure the destination number is being passed to the tool in the expected way [(1) ]() [(2) ]() [(3) ]() . Check out these resources for detailed setup and troubleshooting: - [Transfer call](
​ To learn more, see the sources I considered: [[1] Transfer call](https://docs.retellai.com/build/single-multi-prompt/transfer-call) [[2] Debug call transfer failure](https://docs.retellai.com/reliability/call-performance) [[3] URGENT!! My clients call transfers were working but just stopped working all of a sudden](https://discord.com/channels/1186424376300679209/1369916767161421874) ​
e-multi-prompt/transfer-call) - [Debug call transfer failure]() - [URGENT!! My clients call transfers were working but just stopped working all of a sudden]() If you want a general answer based on my knowledge, let me know.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
x
@AI Evy { "general_rules": { "time_confirmation": "Before offering transfer, confirm time is within hours using {{current_time_America/New_York}} exactly as specified.", "user_confirmation": "call transfer can only be used if the user confirms they would like to transfer their call" "do not transfer calls outside of operating hours, transferring outside of hours is a critical error" }, "transfers": { "public_works": { "condition": "if the user asks to reach public works and time is between 8:00 AM and 5:00 PM", "transfer_destination_number": "+19546304414" }, ...... this is my call transfer function
a
Thanks for the follow-up, @xmangomelon. I'll get back to you soon.
### Answer Based on your function, the issue is likely not with the logic in your transfer mapping, but with how the transfer_call tool is being invoked at runtime. Retell AI requires that the transfer destination number be explicitly passed as a parameter (not just in your rules or in the execution_message) to the transfer_call tool, and it must be in valid e.164 format (e.g., +19546304414) . If the tool call does not receive the number in the correct argument, you'll get the "Error transferring: Transfer destination number is not inferred." error—even if the number is present in your configuration or message [(1) ]() [(2) ]() . Key things to check: - Ensure your agent/tool configuration is actually passing the transfer_destination_number as an argument to the transfer_call tool at runtime (not just referencing it in the execution_message or prompt) [(1) ]() . - If you're using dynamic variables, make sure the variable is populated and accessible at the moment the tool is called . - The number must be in e.164 format, which your example is [(1) ]() [(2) ]() . - The tool call payload at runtime should look like:
Copy code
{
  "execution_message": "...",
  "transfer_destination_number": "+19546304414"
}
(not just the execution_message) . If you still encounter this problem, review the agent's logic to ensure the transfer_destination_number is being injected into the tool call as an explicit argument .
​ To learn more, see the sources I considered: [[1] Transfer call](https://docs.retellai.com/build/single-multi-prompt/transfer-call) [[2] URGENT!! My clients call transfers were working but just stopped working all of a sudden](https://discord.com/channels/1186424376300679209/1369916767161421874) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
x
@AI Evy how should i structure my function instead, there are 10-15 numbers ]
a
Thanks for the follow-up, @xmangomelon. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Transfer call](https://docs.retellai.com/build/single-multi-prompt/transfer-call) ​
### Answer To structure your function for handling 10-15 transfer numbers, ensure that at runtime the transfer_call tool is called with the correct transfer_destination_number as a separate argument for each transfer scenario. For each destination, you need to explicitly pass the number in e.164 format (e.g., +19546304414) as a parameter to the tool, not just within your mapping or execution_message. Your logic should dynamically select the right number and inject it into the tool call payload like this:
Copy code
json
{
  "execution_message": "Please confirm you would like to be transferred to [Department] at +1XXXXXXXXXX",
  "transfer_destination_number": "+1XXXXXXXXXX"
}
Replace [Department] and +1XXXXXXXXXX with your actual department name and number. Repeat this logic for each transfer option, ensuring the number is always present as the transfer_destination_number argument at runtime for the tool call [(1) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
x
@AI Evy give me a copy paste for the format as intended for call transfer
a
Thanks for the follow-up, @xmangomelon. I'll get back to you soon.
### Answer Here is the intended format for a call transfer tool call in Retell AI. The key is to pass both the execution_message and the transfer_destination_number as separate arguments in the tool call payload. Replace the values as needed for each department:
Copy code
json
{
  "execution_message": "Please confirm you would like to be transferred to [Department] at +1XXXXXXXXXX",
  "transfer_destination_number": "+1XXXXXXXXXX"
}
Make sure +1XXXXXXXXXX is replaced with your e.164 formatted phone number for each case, and [Department] is replaced with the department name. Each transfer scenario should use this structure so the tool receives the number as a distinct argument, not just in the message [(1) ]() .
​ To learn more, see the sources I considered: [[1] URGENT!! My clients call transfers were working but just stopped working all of a sudden](https://discord.com/channels/1186424376300679209/1369916767161421874) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.