https://retellai.com/?utm_source=discord&utm_medium=seo logo
when transferring to a human agent, is it possible...
# ❓・ai-evy-support
w
@AI Evy when transferring to a human agent, is it possible to transfer and make the number come from the customer
a
Thanks for tagging me @wesleybldc. I'll look through relevant sources and get back to you shortly.
### Answer Yes, when transferring to a human agent, you can configure the caller ID to display the customer's number instead of the Retell agent's number [(1) ]() [(2) ]() . For cold transfers, you can configure the caller ID to show as "Transferree's Number" . This means the transfer destination will see the number that the user is calling from . However, you need to configure the following in your telephony provider for this to work properly : - Enable SIP REFER - Enable transfer to PSTN - Set caller ID as transferee This option works internally by transferring via SIP REFER, and some telephony providers have the ability to set caller ID for SIP REFER . The alternative is "Retell Agent's number" where the transfer destination will see the Retell agent's number instead .
​ To learn more, see the sources I considered: [[1] Transfer call](https://docs.retellai.com/build/single-multi-prompt/transfer-call) [[2] Call Transfer Node](https://docs.retellai.com/build/conversation-flow/call-transfer-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
w
@AI Evy is it possible to warm transfer and uses the customer number
a
Thanks for the follow-up, @wesleybldc. I'll get back to you soon.
### Answer Based on the documentation, no, warm transfers do not currently support displaying the customer's number [(1) ]() [(2) ]() . The caller ID configuration options that allow showing the "Transferree's Number" (customer's number) are only available for cold transfers . For warm transfers, the transfer destination will see the Retell agent's number, not the customer's number . This limitation has been confirmed by Retell AI support, who stated that "cold transfers support forwarding the caller's number so your CRM can trigger screen pop events, but warm transfers do not currently support this" [(3) ]() . Several users have requested this feature for warm transfers, particularly for CRM screen pop functionality, but it's not currently available [(3) ]() [(4) ]() . While there are indications this may be worked on in the future, there's no specific timeline for when this feature might be added to warm transfers [(4) ]() . If you need the customer's number to display for CRM integration or other purposes, you'll need to use cold transfer instead [(3) ]() .
​ To learn more, see the sources I considered: [[1] Transfer call](https://docs.retellai.com/build/single-multi-prompt/transfer-call) [[2] Call Transfer Node](https://docs.retellai.com/build/conversation-flow/call-transfer-node) [[3] warm transfer caller ID](https://discord.com/channels/1186424376300679209/1396874200852992162) [[4] Transferring call using the customer number](https://discord.com/channels/1186424376300679209/1392101185359450235) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
w
@AI Evy in warm transfer, what does this part of warm transfer do Custom SIP Headers Add key/value pairs for call routing, metadata, or carrier integration. explain what this does and how i can integrate into my crm like hubspot to provide information to my crm
a
Thanks for the follow-up, @wesleybldc. I'll get back to you soon.
### Answer Custom SIP headers in warm transfers allow you to send additional metadata and routing information to your telephony provider during the transfer process [(1) ]() [(2) ]() [(3) ]() . ## What Custom SIP Headers Do Custom SIP headers are key-value pairs that start with
X-
and are forwarded to your SIP provider on the SIP INVITE . They can be used for: - Custom routing - Tagging - Metadata transmission - Carrier integration [(2) ]() [(3) ]() You can use dynamic variables for your custom SIP header values, allowing you to pass information extracted from the call to the receiving party [(1) ]() . ## Important Limitations for Warm Transfers However, there are significant limitations when using custom SIP headers with warm transfers: 1. **Cold transfer with transferee number limitation**: When using cold transfer with a transferee number, different telephony providers may or may NOT honor the custom SIP headers in the REFER request . For example, Twilio does not honor custom SIP headers in the REFER request, so the SIP headers you set in the transfer call tool will not work for cold transfer with transferee number when using Twilio . 2. **Metadata/dynamic variable transfer issues**: There appears to be a known issue where custom SIP headers and dynamic variables are not properly passed to transferred calls [(4) ]() . This has been reported as a bug that affects the ability to track parent-child call relationships . #
# CRM Integration Challenges For HubSpot integration specifically, the current limitations make it challenging to pass call context through custom SIP headers during warm transfers. The documentation indicates that custom SIP headers should be available in the
call.custom_sip_headers
field and automatically added to your dynamic variables [(1) ]() , but the Discord discussions suggest this functionality may not work reliably for transferred calls [(4) ]() . Given these limitations, you might need to explore alternative approaches for passing call context to your CRM during warm transfers, such as using webhooks or API calls to update your CRM records separately from the SIP header mechanism.
​ To learn more, see the sources I considered: [[1] Set & parse custom SIP headers](https://docs.retellai.com/build/telephony/sip-headers) [[2] Call Transfer Node](https://docs.retellai.com/build/conversation-flow/call-transfer-node) [[3] Transfer call](https://docs.retellai.com/build/single-multi-prompt/transfer-call) [[4] Why can't we pass metadata or dynamic variables to a transfered call ?](https://discord.com/channels/1186424376300679209/1388693750213116004) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
w
@AI Evy is there a webhook that listens to when the call is transferred?
a
Thanks for the follow-up, @wesleybldc. I'll get back to you soon.
### Answer Based on the available documentation, there isn't a specific webhook event that triggers when a call is transferred [(1) ]() . The webhook events supported by Retell AI are : -
call_started
- Triggered when a new call begins -
call_ended
- Triggered when a call completes, transfers, or encounters an error -
call_analyzed
- Triggered when call analysis is complete However, the
call_ended
webhook will be triggered when a call transfers . This webhook includes all fields from the call object except
call_analysis
. From the Discord discussion, it appears that the
call_analyzed
webhook will also be sent when a phone call is transferred [(2) ]() . So while there isn't a dedicated "call_transferred" webhook event, you can use the
call_ended
webhook to detect when transfers occur, as transfers are one of the conditions that trigger this event [(1) ]() .
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Call transfers](https://discord.com/channels/1186424376300679209/1318964000985448628) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
w
@AI Evy webhook that listens to when the call is transferred on zapier integration?
a
Thanks for the follow-up, @wesleybldc. I'll get back to you soon.
### Answer ### Answer For Zapier integration, you can use the
call_ended
webhook event to detect when a call is transferred [(1) ]() . While there isn't a specific "call_transferred" webhook event, the
call_ended
webhook is triggered when a call completes, transfers, or encounters an error . To set up this webhook with Zapier: 1. Create a webhook trigger in Zapier - Set up a "Catch Hook" trigger that will receive the webhook data from Retell AI [(2) ]() 2. Configure the webhook URL in your Retell AI agent - Add the webhook URL provided by Zapier to your agent configuration [(1) ]() 3. Set up the webhook to listen for
call_ended
events
- This event will fire when transfers occur The webhook payload will contain the event type and call object :
Copy code
json
{
 "event": "call_ended",
 "call": {
 "call_type": "phone_call",
 "from_number": "+12137771234",
 "to_number": "+12137771235",
 "direction": "inbound",
 "call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
 "agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
 "call_status": "registered",
 "metadata": {},
 "retell_llm_dynamic_variables": {
 "customer_name": "John Doe"
 },
 "start_timestamp": 1714608475945,
 "end_timestamp": 1714608491736,
 "disconnection_reason": "user_hangup",
 "transcript": "...",
 "transcript_object": [ [Object], [Object], [Object], [Object] ],
 "transcript_with_tool_calls": [ [Object], [Object], [Object], [Object] ],
 "opt_out_sensitive_data_storage": false
 }
}
You can then use the
disconnection_reason
field or other call data to determine if the call ended due to a transfer and trigger appropriate actions in Zapier .
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Connect AI call agent to zapier](https://www.retellai.com/integrations/zapier) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
w
@AI Evy how to setup webhook on retell?
a
Thanks for the follow-up, @wesleybldc. I'll get back to you soon.
### Answer Based on the available sources, I can provide information about setting up webhooks in Retell AI at the agent level, but I don't have complete information about global webhook setup from the dashboard. ## Agent-Level Webhook Setup You can configure webhooks when creating or updating an agent using the
webhook_url
parameter [(1) ]() [(2) ]() [(3) ]() [(4) ]() [(5) ]() [(6) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.update('16b980523634a6dc504898cda492e939', { agent_name: 'Jarvis' }) ;
console.log(agentResponse.agent_id) ;
[(3) ]() The
webhook_url
field is described as: "The webhook for agent to listen to call events. See what events it would get at [webhook doc](/features/webhook) . If set, will binds webhook events for this agent to the specified url, and will ignore the account level webhook for this agent. Set to
null
to remove webhook url from this agent." [(1) ]() [(2) ]() [(4) ]() [(5) ]() [(6) ]() Example webhook URL format:
Copy code
"<https://webhook-url-here%22>
## Inbound Call Webhook For inbound calls, there's a specific webhook that can be configured at the number level [(7) ]() . This webhook allows you to override agent settings and set dynamic variables when an inbound call is received . ## Webhook Events According to the Discord discussion, currently you receive all call events and cannot selectively choose specific events like
call_completed
or
call_started
[(8) ]() . Every call will send all its events . ## Webhook Response Requirements When setting up webhooks, your endpoint should respond immediately with a 200 OK status [(9) ]() . If you need to perform longer operations, launch them asynchronously after responding to the webhook . I don't have complete documentation about setting up global webhooks from the Retell dashboard. For more detailed webhook setup instructions, you may want to check the [webhook documentation](/features/webhook) referenced in the API docs or visit [Contact Sales]() or [) for additional support.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
w
@AI Evy what is the integration between retell and hubspot. i want all calls to be recorded into hubspot
a
Thanks for the follow-up, @wesleybldc. I'll get back to you soon.
### Answer Retell AI offers native integration with HubSpot to enable seamless call recording and data synchronization [(1) ]() [(2) ]() . The voice agent can integrate with HubSpot to create new leads, update contact details, and retrieve customer information during calls [(3) ]() . ## Integration Capabilities The HubSpot integration supports: - Creating new leads automatically - Updating contact details - Retrieving customer information during calls - Bidirectional data flow for conversation data, appointment bookings, and follow-up tasks [(1) ]() [(2) ]() ## Implementation Options You can connect HubSpot through: - Custom API integrations [(3) ]() - Help from Retell's integration partners - Native HubSpot integration [(1) ]() [(2) ]() ## Real-Time Data Synchronization For call recording into HubSpot, you can use Retell AI's webhook capabilities [(4) ]() . Webhooks enable real-time data transmission that allows AI phone agents to act on information instantly, pushing data to your business applications in real time . This means conversation data flows automatically into existing workflows with no silos or duplicated data entry [(1) ](
-ai-outbound-sales-calls) [(2) ]() . ## Webhook Integration for Call Recording Webhooks can be configured to: - Update CRM records when calls complete [(4) ]() - Archive call transcripts in your data warehouse - Trigger workflow automations based on call analysis The integration ensures that all call data, including recordings and transcripts, can be automatically pushed to HubSpot through webhook events like
call_ended
and
call_analyzed
. For detailed setup assistance with HubSpot integration, you can visit [Contact Sales]() or check [) .
​ To learn more, see the sources I considered: [[1] How Retell AI Voice Agents Transform Outbound Sales Calls | Retell AI | Retell AI](https://www.retellai.com/blog/retell-ai-voice-agents-transforms-ai-outbound-sales-calls) [[2] How Retell AI Voice Agents Transform Outbound Sales Calls | Retell AI | Retell AI](https://www.retellai.com/blog/retell-ai-voice-agents-transforms-ai-outbound-sales-calls) [[3] Connect AI call agent to Hubspot](https://www.retellai.com/integrations/hubspot) [[4] Retell AI Webhooks | AI Voice Agents With Live Data | Retell AI](https://www.retellai.com/blog/retell-ai-webhooks-feature) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.