fiery_papaya_33507
12/04/2025, 8:02 AMAI Evy
12/04/2025, 8:02 AMAI Evy
12/04/2025, 8:02 AMPOST /v2/calls/{call_id}/transfer in the available sources for programmatically triggering call transfers.
Based on the documentation, call transfers in Retell AI are configured through the agent's setup rather than triggered via a direct API call during an active call [(1) ]() . The transfer functionality is implemented using the transfer_call tool within your agent configuration .
To set up call transfers:
1. Add the transfer_call tool to your agent
2. Configure whether you want a cold transfer or warm transfer
3. For warm transfers specifically, you can configure settings like on-hold music, human detection, whisper messages, and three-way messages
4. Update your agent's prompt to include conditions for when to trigger the transfer (e.g., "If the user is angry or frustrated, use the transfer_call tool to transfer the conversation to a human agent")
The LLM then decides when to invoke the transfer based on the conversation context, rather than being triggered by an external API call .
If you need to programmatically control transfers during an active call, you might need to explore the LLM WebSocket interface [(2) ]() , though the available documentation doesn't show a specific transfer command in that interface either.
Could you provide more context about your use case? I can try to offer a general approach if you'd like, though it wouldn't be based on the official documentation.AI Evy
12/04/2025, 8:02 AMAI Evy
12/04/2025, 8:02 AMakshat_9728
12/04/2025, 8:03 AMakshat_9728
12/04/2025, 8:03 AMfiery_papaya_33507
12/04/2025, 8:36 AMAI Evy
12/04/2025, 8:36 AMAI Evy
12/04/2025, 8:37 AMAI Evy
12/04/2025, 8:37 AMAI Evy
12/04/2025, 8:37 AMsip:user@retellai.com) .
4. Configure Warm Transfer Specific Settings :
- **On-hold music**: Audio played while the caller waits
- **Navigate IVR**: Prompt to help navigate IVR systems at the transfer destination
- **Enable human detection**: The agent checks if a human answers before connecting the caller
- **Auto-greet**: Agent says "Hello" immediately when transfer target picks up
- **Agent detection timeout**: Maximum time to wait for human detection (default 30 seconds)
- **Whisper message (optional) **: Private message to the transfer target before connecting the caller
- **Three-way message (optional) **: Message spoken to both parties once connected
5. Update Your Agent's Prompt with transfer conditions, such as: "If the user is angry or frustrated, use the transfer_call tool to transfer the conversation to a human agent" .
## Twilio-Specific Considerations
Retell Twilio numbers support showing the user's number on both warm and cold transfers . However, for cold transfers using SIP REFER, different telephony providers may handle custom SIP headers differently—Twilio, for example, does not honor custom SIP headers in REFER requests [(2) ]() .
## What Happens If You Set Up Transfer Through Twilio DirectlyAI Evy
12/04/2025, 8:37 AMfiery_papaya_33507
12/07/2025, 9:39 AMAI Evy
12/07/2025, 9:39 AMAI Evy
12/07/2025, 9:40 AMtransfer_number in the response event .
Here's the exact JSON structure for triggering a transfer via the WebSocket:
json
{
"response_type": "response",
"response_id": <matching_response_id>,
"content": "Let me transfer you now.",
"content_complete": true,
"transfer_number": "+14155551234"
}AI Evy
12/07/2025, 9:40 AMfrom and P-Asserted-Identity headers to the user's number
- For cold transfer, it uses SIP REFER, and it's up to the telephony provider to support caller ID override for SIP REFER
- Retell Twilio numbers support showing user's number on both warm and cold transfer
- If caller ID override is not supported, the transfer would fail
Custom SIP Headers:
You can add custom SIP headers for outbound calls . These headers are forwarded to your SIP provider on the SIP INVITE and can be used for custom routing, tagging, or metadata . All header names must start with X- .
Based on community discussions, users have encountered permission issues with Twilio when attempting warm transfers with custom telephony [(4) ]() . The warm transfer feature requires more permissions from Twilio compared to cold transfers . If you encounter issues, you may need to contact Twilio support to enable the necessary permissions for warm transfer functionality .
---
**AI Evy
12/07/2025, 9:40 AMtransfer_number field should be set to either a number in e.164 format or a SIP URI in the format sip:username@domain (e.g., sip:user@retellai.com) [(2) ]() .
Important: There is no direct REST API endpoint like /v2/calls/{call_id}/transfer documented in the available sources for triggering transfers programmatically during an active call. The transfer is triggered through the WebSocket response event when using Custom LLM [(1) ]() .
---
## Question 2: The SDK Error
Based on the available SDK documentation, the Node.js SDK examples focus on creating calls using retellClient.call.createPhoneCall() [(3) ]() . The documentation does not show a transfer() method on the call object .
The SDK is primarily used for:
- Creating phone calls
- Managing agents
- Handling webhooks
For Custom LLM implementations, call transfers are handled through the WebSocket interface (as described in Question 1) , not through SDK method calls [(1) ]() .
If you're looking to trigger transfers programmatically with a Custom LLM, you should use the WebSocket response event with the transfer_number field rather than an SDK method .
---
## Question 3: The BYON Factor
For Twilio BYON (Bring Your Own Number) setups, there are some important considerations:
Caller ID Display:
You can configure which caller ID shows up to the transfer destination [(2) ]() :
1. **Retell Agent's number**: The transfer destination will see the Retell agent's number
2. **User's Number**: The transfer destination will see the number of the user
Important BYON Limitations:
- For warm transfer, it uAI Evy
12/07/2025, 9:40 AMAI Evy
12/07/2025, 9:40 AM