https://retellai.com/?utm_source=discord&utm_medium=seo logo
how can you set up inbound calls to be automatical...
# ❓・ai-evy-support
u
@AI Evy how can you set up inbound calls to be automatically forwarded to you same transfer number NEW
a
Thanks for tagging me @.billyblues. I'll look through relevant sources and get back to you shortly.
### Answer For automatic call forwarding in Retell AI, you have several options depending on your setup: ## Using Transfer Call Tool You can set up automatic call transfers by adding the Transfer Call Tool to your agent [(1) ]() . Configure it to transfer calls to a static number (E.164 or SIP URI) or use dynamic variables . For the transfer destination, you can choose between a static number or the value of a dynamic variable . You can configure two types of transfers : - **Cold transfer**: The call is transferred to a destination number directly - **Warm transfer**: The AI agent first detects if the other side is a human, then speaks private and public messages ## Dynamic Routing Retell AI supports dynamic routing in call transfers [(2) ]() . You can set up call transfer logic to automatically direct calls to the right department based on customer requests . For example: - If the caller wants support, transfer to +1 (925) 222-2222 - If the caller wants sales, transfer to +1 (925) 333-3333 ## Alternative: Carrier-Level Call Forwarding For simple automatic forwarding without using an AI agent, you can set up call forwarding at the telephony provider level (like Twilio) [(3) ]() . This would forward all calls directly without the agent answering first . ## Custom Telephony Integration If you're using custom telephony providers, you can integrate with Retell using elastic SIP trunking or dial to SIP URI methods [(4) ]() . When using elastic SIP trunking, all telephony functionalities supported by Retell numbers will also be supported . The specific setup depends on
whether you want the AI agent to handle the call first before transferring, or if you want immediate forwarding without agent interaction.
​ To learn more, see the sources I considered: [[1] Transfer call](https://docs.retellai.com/build/single-multi-prompt/transfer-call) [[2] V1 API Deprecation, Listen to User Keypad Input, and More!](https://www.retellai.com/changelog/v1-api-deprecation-listen-to-user-keypad-input-and-more) [[3] Discord message from @ericsprouts on 2025-04-08](https://discord.com/channels/1186424376300679209/1294891368505937952/1359212612449079346) [[4] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
i want immediate transfer on inbound calls when people call back from a missed call on an outbound campaign
@AI Evy i want immediate transfer on inbound calls when people call back from a missed call on an outbound campaign Message "how can you set up inbound calls to be automatically forwarded to you same ..."
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer For immediate transfer on inbound calls from missed outbound campaigns, you can set up automatic call transfers using the Transfer Call Tool [(1) ]() . Here's how to configure it: ## Using Transfer Call Tool for Immediate Transfer Add the Transfer Call Tool and configure it to transfer calls to a static number in E.164 format or SIP URI format . For the transfer destination, you can choose between a static number or the value of a dynamic variable . Configure the transfer type as Cold transfer - the call is transferred to a destination number and that's it . This provides immediate forwarding without the AI agent speaking. ## Using Call Transfer Node in Conversation Flow Alternatively, you can use the Call Transfer Node in Conversation Flow [(2) ]() . The agent will not speak when it's in this node . If you want immediate transfer without any agent interaction, connect this node directly in your flow. Configure the transfer destination to be either a number in E.164 format, or a SIP URI in the format of
sip:username@domain
. You can also use a dynamic variable that gets substituted at runtime . ## Dynamic Variables for Campaign Context You can use dynamic variables to pass campaign-specific information during the transfer [(3) ]() . This allows you to route callbacks from specific outbound campaigns to the appropriate destination numbers. ## Custom Telephony Integration Option If you need more control over the telephony routing, you can use custom telephony providers via elastic SIP trunking [(4) ]() . When using this method, all the telephony functionalities that are supported by Retell numbers will also be su
pported . The key is configuring cold transfers for immediate forwarding without agent interaction, which transfers the call directly to your destination number.
​ 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] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[4] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy can i create a dynamic call transfer prompt to do a round robin to different agents?
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer Yes, you can create dynamic call transfer prompts for round robin routing to different agents. Retell AI supports dynamic routing in call transfers [(1) ]() . ## Using Dynamic Variables for Round Robin You can set up call transfer logic to automatically direct calls to different agents based on custom logic . For the transfer destination, you can choose between a static number or the value of a dynamic variable [(2) ]() [(3) ]() . ## Implementation Options **Transfer Call Tool**: Add the Transfer Call Tool and configure it to use dynamic variables that get updated with the next agent number in your round robin sequence [(2) ]() . **Call Transfer Node**: In Conversation Flow, use the Call Transfer Node and set the "Transfer To Target" as a dynamic variable that will be substituted at runtime [(3) ]() . ## Dynamic Number Assignment You can dynamically pass a phone number for transfer in real-time while the caller is on the phone, with the transfer number being different every single time [(4) ]() . This allows you to implement round robin logic where each call gets routed to the next available agent in your rotation. ## Community Discussion There's an active discussion in the community about round robin routing where users are exploring custom functions for routing calls (like routing the first 2 calls to one number and the 3rd call to another, then repeating the cycle) [(5) ](
1126560228442134) . The phone numbers should be in E.164 format when setting them as the transfer target [(2) ]() [(3) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
i dont have access to that discord chat
@AI Evy i dont have access to that chat
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer I understand you don't have access to those Discord chat links I referenced. Let me provide you with the key information about round robin routing without relying on those community discussions. ## Dynamic Round Robin Setup You can create dynamic call transfer prompts for round robin routing using these approaches: **Using Dynamic Variables**: Set up dynamic variables that contain the next agent number in your rotation sequence. The transfer destination can use the value of a dynamic variable that gets updated with each call. **Implementation Methods**: - **Transfer Call Tool**: Configure it to use a dynamic variable that cycles through your agent numbers - **Call Transfer Node**: In Conversation Flow, set the "Transfer To Target" as a dynamic variable that gets substituted at runtime **Dynamic Number Assignment**: You can dynamically pass different phone numbers for transfer in real-time while the caller is on the phone, allowing each call to be routed to the next available agent in your rotation. ## Technical Requirements - Phone numbers should be in E.164 format (e.g., +1234567890) - You can also use SIP URI format:
sip:username@domain
- The dynamic variable gets substituted at runtime for each call For the actual round robin logic implementation, you'd need to manage the rotation sequence through your backend system that updates the dynamic variables or through custom functions that determine which agent number to use next. Would you like me to explain more about how to set up the dynamic variables or the transfer configuration?
message has been deleted
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
so i can pass the dynamic variables to the transfer to number
@AI Evy
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
u
explain to me how i can implement the first 2 approches you mentioned
@AI Evy
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer Yes, you can pass dynamic variables to the transfer number. Here's how it works: ## Transfer Call Tool with Dynamic Variables For the transfer destination, you can choose between a static number (e.164 or SIP URI) , or the value of a dynamic variable [(1) ]() . This means you can set up your transfer number using a dynamic variable that gets updated for each call. ## Call Transfer Node with Dynamic Variables In Conversation Flow, you can set the transfer target to be a dynamic variable that gets substituted at runtime [(2) ]() . The transfer destination can be either: - A number in e.164 format, or a SIP URI in the format of
sip:username@domain
- A dynamic variable that gets substituted at runtime ## Dynamic Variables Usage Dynamic variables can be used in the transfer call function number, allowing you to transfer calls to a dynamic number [(3) ]() . You can use dynamic variables in: - Tool call url - Tool call description - Transfer call function number ## Example from Workshop In the live workshop, they demonstrated using dynamic variables for transfer numbers. They showed how you can create a transfer number variable and pass this information from external systems like GoHighLevel, allowing you to have different numbers for different locations or loan officers [(4) ](

▾

) . So yes, dynamic variables work perfectly for creating round robin routing by updating the variable with the next agent's number in your rotation sequence.
​ 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] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[4] LIVE WORKSHOP: Build an Outbound AI Caller for Mortgage Leads!](

https://www.youtube.com/watch?v=ID1d1bkVuNU▾

) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Yes, you can pass dynamic variables to the transfer destination number. Here's how to implement both approaches: ## Approach 1: Transfer Call Tool (Single/Multi Prompt) For the transfer destination, you can choose between a static number or the value of a dynamic variable [(1) ]() . When adding the Transfer Call Tool, set the transfer destination to use a dynamic variable that contains your agent phone numbers . The dynamic variable will be substituted at runtime with the actual phone number for that specific call . ## Approach 2: Call Transfer Node (Conversation Flow) In Conversation Flow, you can set the "Transfer To Target" to be either a number in e.164 format, or a SIP URI in the format of
sip:username@domain
, or use a dynamic variable that gets substituted at runtime [(2) ]() . The agent will not speak when it's in this node . If you want the agent to say something like "Let me transfer you right away" before performing the actual transfer, you can put a conversation node (with
skip response
turned on) before this node . ## Dynamic Variables Implementation Dynamic variables are automatically available during calls and can be used to pass call-specific data [(3) ]() . For your round robin implementation, you would: 1. Set up dynamic variables containing the next agent number in your rotation 2. Configure your transfer tool/node to use that dynamic variable as the destination 3. Update the dynamic variable value through your backend system to cycle through different agent numbers The phone numbers should be in E.164 format (like +1234567890) or SIP URI format [(1) ]() [(2) ](
lai.com/build/conversation-flow/call-transfer-node) .
​ 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] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy can you find the timestamp for that topic in the live workshop
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer Based on the workshop transcripts, the discussion about dynamic variables for transfer numbers appears at several timestamps in the "Build an Outbound AI Caller for Mortgage Leads" workshop: Main discussion starts at 188 seconds where they demonstrate creating a transfer number dynamic variable [(1) ](

▾

) . The presenter explains: "So here we were passing the client state. I can just create another dynamic variable. And I think I called it a transfer number transfer number. I can create another one. I can literally paste that phone number in there. And now it's going to use this phone number as that transfer number there." Detailed explanation continues around 572 seconds where they show how to use dynamic variables in the agent context [(2) ](

▾

) . The presenter demonstrates: "When you paste the variables, you always need to have the curly brackets. You need to have two. And then we're going to type the variable name, the exact name that we gave it here... It needs to match. I'm going to go back to retail. I'm going to paste that in there and then just close it with curly brackets." The workshop also mentions that dynamic variables can be used "more than just the prompt. As you saw, we use them in the functions. We use them in the transfer calls. You can use them in other places." These timestamps should help you find the specific sections where they demonstrate setting up dynamic variables for transfer numbers in Retell AI.
​ To learn more, see the sources I considered: [[1] LIVE WORKSHOP: Build an Outbound AI Caller for Mortgage Leads!](

https://www.youtube.com/watch?v=ID1d1bkVuNU▾

) [[2] LIVE WORKSHOP: Build an Outbound AI Caller for Mortgage Leads!](

https://www.youtube.com/watch?v=ID1d1bkVuNU▾

) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
so you can use transfer phone number as a dynamic variable
@AI Evy
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer Yes, you can use transfer phone numbers as dynamic variables in Retell AI. [(1) ]() [(2) ]() [(3) ]() ## Transfer Call Tool (Single/Multi Prompt) For the transfer destination, you can choose between a static number (e.164 or SIP URI) , or the value of a dynamic variable [(1) ]() . This allows you to set up dynamic phone number routing for your transfers . ## Call Transfer Node (Conversation Flow) You can set the transfer destination to be either a number in e.164 format, or a SIP URI in the format of
sip:username@domain
, or a dynamic variable that gets substituted at runtime [(2) ]() . ## Dynamic Variables Support Dynamic variables can be used in the transfer call function number, allowing you to transfer calls to a dynamic number [(3) ]() . You can use dynamic variables in various places including transfer call function numbers . ## Workshop Example The live workshop demonstrates creating a transfer number dynamic variable and using it in the transfer function [(4) ](

▾

) . They show how you can pass different phone numbers for different locations or agents using dynamic variables . However, there's some conflicting information in the community discussions - one Discord thread mentions that dynamic variables are not supported in the Transfer To destination phone number [(5) ]() , but the official documentation clearly states they are supported [(2) ](
com/build/conversation-flow/call-transfer-node) [(1) ]() [(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] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[4] LIVE WORKSHOP: Build an Outbound AI Caller for Mortgage Leads!](

https://www.youtube.com/watch?v=ID1d1bkVuNU▾

) [[5] Currently dynamic variables are not supported in the #Transfer To (the destination phone number)](https://discord.com/channels/1186424376300679209/1287253684492828733) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy so will i format is like this {{agent_phone}} and place that within the transfer call function and select dynamic routing
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer Yes, you format it exactly like
{{agent_phone}}
for dynamic variables in transfer calls.
[(1) ]() ## Formatting Dynamic Variables Dynamic variables are placeholders surrounded by double curly braces . For example:
Copy code
"Hello {{user_name}}, I understand you're interested in {{product_name}}. How can I help you today?"
## Using in Transfer Call Function For the transfer destination, you can choose between a static number (e.164 or SIP URI) , or the value of a dynamic variable [(2) ]() . You can use dynamic variables in the transfer call function number: in case you want to transfer call to a dynamic number [(1) ]() . ## Implementation Steps 1. Set up your dynamic variable with the agent phone number in your system 2. Configure the Transfer Call Tool to use
{{agent_phone}}
as the transfer destination [(2) ]() 3. Choose dynamic variable option when configuring the transfer destination ## Supported Formats The phone number should be in e.164 format or SIP URI format like
sip:username@domain
. The dynamic variable gets substituted at runtime with the actual phone number for that specific call . There's also confirmation from community discussions that you can pass dynamic variables to the agent using double curly braces inside function descriptions, just like other dynamic variables [(3) ]() .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Transfer call](https://docs.retellai.com/build/single-multi-prompt/transfer-call) [[3] Discord message from @shahzad_38468 on 2025-02-25](https://discord.com/channels/1186424376300679209/1186462578310910112/1343940366252118026) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy how can i make it to where my retell hosted phone number, forwards all inbound calls to my company number?
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer ## Setting Up Automatic Call Forwarding To forward all inbound calls from your Retell hosted phone number to your company number, you need to configure your phone number with an inbound agent that uses the Transfer Call Tool. ### Update Phone Number Configuration You can update your phone number to bind an inbound agent using the Update Phone Number API [(1) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.update('+14157774444', {
 inbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
 nickname: 'Frontdesk Number',
 outbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
}) ;
### Configure Agent for Immediate Transfer Create an agent configured with the Transfer Call Tool set to immediately transfer to your company number. The agent should be set up to perform a cold transfer without speaking first. ### Alternative: Inbound Call Webhook You can also use the inbound call webhook to handle call routing [(2) ]() . Set up an inbound webhook URL on your phone number [(1) ]() :
Copy code
javascript
const phoneNumberResponse = await client.phoneNumber.update('+14157774444', {
 inbound_webhook_url: "<https://example.com/inbound-webhook%22,>
}) ;
The webhook receives a payload when inbound calls arrive [(2) ]() , and you can respond with an agent override that's configured for immediate transfer to your company number. ### Webhook Response for Transfer When the webhook is triggered, respond with an agent configured for immediate forwarding :
Copy code
javascript
{
 "call_inbound": {
 "override_agent_id": "agent_12345",
 "override_agent_version": 1,
 "dynamic_variables": {
 "transfer_number": "+1234567890"
 }
 }
}
The key is setting up either a bound inbound agent or webhook response that uses an agent configured with Transfer Call Tool for immediate cold transfer to your company number.
​ To learn more, see the sources I considered: [[1] Update Phone Number](https://docs.retellai.com/api-references/update-phone-number) [[2] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy what is the cost incurred for inbound transfers, with no speak time just transfer
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer ### Answer Based on the available sources, I can provide some information about costs related to transfers, though the sources don't contain specific pricing details for immediate transfers. ## Cost Benefits with Advanced Transfer Solutions When using advanced transfer solutions like Cloudonix with Retell AI, there are cost advantages [(1) ](

▾

) . When you do a call transfer with Cloudonix, Retell AI gets completely disconnected from the call, so there will be no more additional charges on the call . Additionally, if the PBX is connected directly to Cloudonix, the outbound call to the PBX itself is free of charge because it's not going into the telephony network at all . ## Native Retell Transfer Limitations With native Retell transfers, you're more limited in functionality . The native transfer will show the Retell number rather than the original caller's number, which can be problematic for call centers that rely on caller ID for customer information pop-ups . ## Immediate Transfer Scenarios The sources mention scenarios where immediate transfers are needed, such as when credits run out [(2) ]() , but don't specify the exact costs for these immediate transfer scenarios. For specific pricing information about inbound transfers with no speak time, I'd recommend checking the official Retell AI pricing documentation or contacting their support team, as the current sources don't contain detailed cost breakdowns for this specific use case. Would you like me to help you find more information about Retell AI's pricing structure or transfer configurations?
​ To learn more, see the sources I considered: [[1] Smarter Call Transfers with Alex & Nir (Cloudonix)](

https://www.youtube.com/watch?v=H9UgBB7qnGk▾

) [[2] If I run out of credits, I need the inbound call to immediately transfer to the Transfer To number](https://discord.com/channels/1186424376300679209/1278742552115150970) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy is using retell hosted phone numbers like twillio, cheaper than using a twillio number hosted on twillio via sip trunking
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer Based on the available sources, I don't have specific pricing comparisons between Retell-hosted Twilio numbers versus using your own Twilio numbers via SIP trunking. ## Retell-Hosted Numbers vs SIP Trunking When you purchase numbers directly through Retell AI, they use Twilio as the provider [(1) ]() . However, if you buy numbers directly from Twilio and connect them via Elastic SIP Trunking, you have more flexibility [(2) ]() . ## Key Differences Retell-Hosted Numbers: - Numbers purchased through Retell AI cannot be moved to other platforms - You're limited to using them only within the Retell AI ecosystem SIP Trunking with Your Own Twilio Numbers: - You can connect your Twilio numbers to multiple platforms - Greater flexibility to switch between providers - You maintain direct control over the telephony infrastructure [(3) ]() ## SIP Trunking Benefits Elastic SIP Trunking enables organizations to connect their existing PBX or VoIP infrastructure to the Public Switched Telephone Network (PSTN) over the internet . When using this method, all the telephony functionalities that are supported by Retell numbers will also be supported, assuming that your telephony provider supports it . For specific pricing comparisons between these approaches, I'd recommend checking Retell AI's current pricing documentation and comparing it with Twilio's direct pricing, as the sources don't contain detailed cost breakdowns for this comparison.
​ To learn more, see the sources I considered: [[1] AI Phone Numbers: How to Buy & Set Up | Retell AI](https://www.retellai.com/blog/how-to-buy-an-ai-phone-number-a-guide-on-your-options-and-providers) [[2] Retell phone numbers](https://discord.com/channels/1186424376300679209/1398964527940239410) [[3] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy how can i set it up to where, an agent will immediately transfer a call within seconnds without saying a word
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer To set up an agent that immediately transfers calls without speaking, you need to configure a cold transfer with specific settings. ## Configure Cold Transfer Choose Cold transfer as your transfer type [(1) ]() . Cold transfer means the call is transferred to a destination number and that's it . The AI transfers without speaking [(2) ]() . ## Agent Configuration for Immediate Transfer Set up your agent with a very brief or no initial message. You can configure
message has been deleted
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
would this be better with conversation flow or single prompt
@AI Evy
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer For immediate call transfers without speaking, Conversation Flow is better than single prompt for this specific use case. ## Why Conversation Flow is Better Conversation Flow provides the most control over dialogue paths, allowing developers to create intricate conversation structures that guide users through various scenarios effectively [(1) ]() . For immediate transfers, this precision is crucial. ## Setting Up Silent Transfer with Conversation Flow You can use a Call Transfer Node that performs the transfer without the agent speaking [(2) ]() . In Conversation Flow, the agent will not speak when it's in the transfer node . ## Configuration Steps 1. Create a Conversation Flow with a call transfer node as the first or early node [(3) ]() 2. Configure the transfer destination to use either a static number (e.164 format) or dynamic variable like
{{agent_phone}}
[(2) ]() 3. Set transfer type to Cold Transfer - this means the call is transferred to a destination number without the AI speaking ## Code Example for Conversation Flow
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const conversationFlowResponse = await client.conversationFlow.create({
 model_choice: { model: 'gpt-4o', type: 'cascading' },
 nodes: [
 {
 id: 'start',
 instruction: { text: 'Greet the customer and ask how you can help them.', type: 'prompt' },
 type: 'conversation',
 },
 ],
 start_speaker: 'agent',
}) ;
[(3) ]() ## Alternative: Skip Response Option If you want the agent to say something brief before transferring, you can put a conversation node with
skip response
turned on before the transfer node [(2) ]() . Conversation Flow gives you the precise control needed for immediate, silent transfers compared to the more flexible but less controlled single prompt approach.
​ To learn more, see the sources I considered: [[1] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) [[2] Transfer call](https://docs.retellai.com/build/single-multi-prompt/transfer-call) [[3] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy how can you tell if a call is answered or not, which parameter will tell you that
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer To determine if a call was answered or not, you can use the
disconnection_reason
parameter, which provides specific information about how the call ended [(1) ]() [(2) ]() [(3) ]() . ## Key Parameters for Call Status The main parameters to check are:
disconnection_reason
- This enum field tells you exactly why the call ended : -
dial_busy
- The called number was busy -
dial_failed
- The call failed to connect -
dial_no_answer
- The call rang but was not answered -
user_hangup
- The caller hung up (indicating they answered) -
agent_hangup
- The AI agent ended the call -
voicemail_reached
- Call went to voicemail
call_status
- Shows the current state of the call [(2) ]() [(3) ]() : -
registered
- Call initiated but not yet connected -
ongoing
- Call is active and connected -
ended
- Call has completed -
error
- Call encountered an error ## Using Webhooks for Real-Time Status You can receive real-time updates through webhook events [(1) ]() :
Copy code
json
{
  "event": "call_ended",
  "call": {
    "call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
    "disconnection_reason": "dial_no_answer",
    "call_status": "ended"
  }
}
## API Call for Status Check You can also retrieve call details using the List Calls API [(2) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
  apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponses = await client.call.list() ;
The response will include the
disconnection_reason
field that clearly indicates whether the call was answered, went to voicemail, or failed to connect .
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] List Calls](https://docs.retellai.com/api-references/list-calls) [[3] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
it never says that though t just says user hangup, agent hangup
@AI Evy it never says that though t just says user hangup, agent hangup
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer You're experiencing a known issue. According to the documentation, there are actually many more disconnection reasons available beyond just
user_hangup
and
agent_hangup
[(1) ]() . The full list of disconnection reasons includes : -
dial_busy
- Outbound call not connected, the number dialed is busy -
dial_failed
- Outbound call not connected, dialing failed with no or unknown sip error code -
dial_no_answer
- Outbound call not connected, the number dialed did not answer -
invalid_destination
- Outbound call not connected, the number dialed is invalid -
marked_as_spam
- Outbound call not connected, the number dialed is marked as spam -
user_declined
- Outbound call not connected, user declined the call However, there are two known issues that might explain what you're seeing: 1. **Missing webhook events**: There was a bug where webhook events weren't being sent for disconnection reasons other than
user_hangup
or
agent_hangup
[(2) ]() . A fix was patched to ensure you receive
call_ended
webhooks for those cases . 2. **Incorrect disconnection reason reporting**: Some calls made via Twilio are incorrectly marked as
user_hangup
but actually disconnect while the agent is speaking [(3) ]() . This issue doesn't occur when using web calls from the Retell app . To check the actual disconnection reason, you can use the Get Call API [(4) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponse = await client.call.retrieve('119c3f8e47135a29e65947eeb34cf12d') ;
console.log(callResponse) ;
The response will include the
disconnection_reason
field that should show the correct reason .
​ To learn more, see the sources I considered: [[1] Debug call disconnection](https://docs.retellai.com/reliability/debug-call-disconnect) [[2] No webhook event on call disconnect if reason is anything than user_hangup or agent_hangup](https://discord.com/channels/1186424376300679209/1250822904552357890) [[3] Calls show user hangup but drop while the agent is speaking](https://discord.com/channels/1186424376300679209/1334212011818618961) [[4] Get Call](https://docs.retellai.com/api-references/get-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy im using a zapier for this using the integration of retell
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer When using Zapier with Retell AI, you can access call details including disconnection reasons through the "Get a Call" action [(1) ]() . ## Setting Up Call Status Monitoring in Zapier To monitor call status with Zapier, you'll need to: 1. Add the Retell AI action "Get a Call" 2. Use the call ID from your previous step to fetch call summaries and transcripts 3. Test to ensure Zapier retrieves the call data accurately ## Accessing Disconnection Reason in Zapier The "Get a Call" action will retrieve all call details including the
disconnection_reason
field [(2) ](

▾

) [(3) ](

▾

) . In the tutorial example, after making a call, the workflow shows how to "retrieve all the call details" which would include the disconnection status . ## Alternative Webhook Approach You can also use webhooks with Zapier to receive real-time call status updates [(4) ]() . Set up a webhook URL in your Retell agent settings, and Zapier will receive the call data including disconnection reasons when calls end . However, as noted in community discussions, Zapier may be limited for complex Retell AI integrations, and many users find Make.com or n8n more suitable for handling detailed call data and status monitoring [(5) ]() [(6) ]() .
​ To learn more, see the sources I considered: [[1] How to Automate Calls with Retell AI Voice Agents & Zapier | Retell AI | Retell AI](https://www.retellai.com/blog/zapier-ai-voice-agent-integration-guide) [[2] Zapier x Retell Tutorial | How to Automate Follow-Up Calls from Customer Inquiries](

https://www.youtube.com/watch?v=I3TyMad74F4▾

) [[3] Zapier x Retell Tutorial | How to Automate Follow-Up Calls from Customer Inquiries](

https://www.youtube.com/watch?v=I3TyMad74F4▾

) [[4] I'm trying to connect retail AI to zapier I'm unable to find the proper web hook URL](https://discord.com/channels/1186424376300679209/1340502948027039754) [[5] Discord message from @qcumbers1_cc on 2024-11-05](https://discord.com/channels/1186424376300679209/1294891368505937952/1303322849280266252) [[6] Discord message from @fyodor2572 on 2025-02-16](https://discord.com/channels/1186424376300679209/1294891368505937952/1340548970849636445) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy but it only ever says 2 disconnection reasons, but i want to be able to track how many of the calls are actually answered
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer ### Answer To track answered calls, you need to use the
call_status
field in combination with
disconnection_reason
to distinguish between answered and unanswered calls [(1) ]() [(2) ]() . ## Call Status Values for Tracking Answered Calls The
call_status
field provides these values [(3) ]() [(4) ]() [(2) ]() : - `registered`: Call id issued, starting to make a call using this id [(3) ]() - `not_connected`: Call was not connected [(1) ]() - `ongoing`: Call connected and ongoing [(3) ]() - `ended`: The underlying websocket has ended for the call - `error`: Call encountered error ## Disconnection Reasons for Unanswered Calls According to the documentation, calls that are not answered will have
call_status
of
not_connected
with these specific
disconnection_reason
values [(1) ]() : - `dial_busy`: Outbound call not connected, the number dialed in busy - `dial_failed`: Outbound call not connected, dailing failed with no or unknown sip error code - `dial_no_answer`: Outbound call not connected, the number dialed did not answer - `invalid_destination`: Outbound call not connected, the number dialed is invalid - `user_declined`: Outbound call not connected, user declined the call ## Answered Calls Logic Calls that are answered will have: -
call_status
of
ended
(not
not_connected
) -
disconnection_reason
values like
user_hangup
, `agent_han
gup`,
call_transfer
, etc. ## Using the Get Call API You can retrieve this data using the Get Call API [(2) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponse = await client.call.retrieve('119c3f8e47135a29e65947eeb34cf12d') ;
console.log(callResponse) ;
The key insight is that answered calls will never have
call_status
of
not_connected
. If you're only seeing
user_hangup
and
agent_hangup
, those are actually answered calls where someone picked up and then hung up.
​ To learn more, see the sources I considered: [[1] Debug call disconnection](https://docs.retellai.com/reliability/debug-call-disconnect) [[2] Get Call](https://docs.retellai.com/api-references/get-call) [[3] Update Call](https://docs.retellai.com/api-references/update-call) [[4] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy i see calls that have been completed where the agent left a voicemail but it still says agent hangup as the end reason, how am i supposed to be able to tell
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer When voicemail is detected and the agent successfully leaves a message, the call should have a
disconnection_reason
of
voicemail_reached
[(1) ]() [(2) ]() . If you're seeing
agent_hangup
instead of
voicemail_reached
for calls where voicemail was left, this indicates that voicemail detection may not be working properly. According to the documentation, "If the call is detected as voicemail and the action defined was taken successfully, the call will have a disconnection reason of `voicemail_reached`" [(1) ]() . ## Troubleshooting Voicemail Detection Issues Based on community discussions, this can happen when voicemail detection fails [(3) ]() . The agent might leave a message but the system doesn't recognize it as voicemail, causing it to be treated as a normal call that ends with
agent_hangup
. ## Check Call Analysis Data You can also check the
call_analysis
object in your call data [(4) ]() [(5) ]() [(6) ]() [(7) ]() [(8) ]() , which includes an
in_voicemail
field:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponse = await client.call.retrieve('119c3f8e47135a29e65947eeb34cf12d') ;
console.log(callResponse) ;
[(4) ]() The response will include a
call_analysis
object with an
in_voicemail
boolean field that indicates whether the call was detected as voicemail [(4) ]() [(5) ]() [(6) ]() [(7) ]() [(8) ]() . ## Voicemail Detection Settings Check your voicemail detection settings in your agent configuration [(1) ]() . Voicemail detection only runs for the first 3 minutes of the call, and if the timeout is reached without detection, the system continues as a normal call . If voicemail detection is working correctly, you should see
voicemail_reached
as the disconnection reason rather than
agent_hangup
[(2) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy can i set up my agent to automatically make an outbound call twice if the first call isnt answered
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer I don't see automatic retry functionality built directly into Retell AI agents. However, you can implement this using external automation tools. ## Manual Implementation with Webhooks You can set up a webhook to receive call status updates and trigger a second call when the first one isn't answered [(1) ]() . When a call ends with
disconnection_reason
of
dial_no_answer
, you can automatically initiate another call. ## Code Example for Outbound Calls Here's how to make outbound calls programmatically :
Copy code
javascript
const registerCallResponse = await retell.call.createPhoneCall({
 from_number: '+14157774444', // replace with the number you purchased
 to_number: '+12137774445', // replace with the number you want to call
 retell_llm_dynamic_variables: { // replace with the dynamic variables you want to send (optional)
 name: 'John Doe',
 blood_group: 'B+'
 }, 
 custom_sip_headers: { // replace with custom sip headers you want to send (optional)
 X-Custom-Header: 'Custom Value'
 }

}) ;
## Using External Automation Tools Based on community discussions, you can use tools like Make.com or n8n to create workflows that [(2) ]() : 1. Monitor webhook events for call completion 2. Check the
disconnection_reason
3. Automatically trigger a second call if the first wasn't answered A community member mentioned needing similar functionality - to automatically handle unanswered calls and receive dynamic data sent to the agent . ## CPS Considerations Keep in mind the Calls Per Second (CPS) limits when implementing retry logic [(1) ]() . Each account has a default CPS limit of 1 call per second, so implement retry logic with exponential backoff to handle throttling gracefully . For the most robust solution, you'll need to build this retry logic into your application using webhooks and the outbound calling API.
​ To learn more, see the sources I considered: [[1] Outbound calls (make calls)](https://docs.retellai.com/deploy/outbound-call) [[2] Outbound call - No Answer function](https://discord.com/channels/1186424376300679209/1399023267460681739) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy based on user feedback and common sentiment in this discord community, which gpt it the best for calls on retell
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer Based on the available sources and community feedback, here's what I found about GPT model preferences for calls on Retell AI: ## GPT-4.1 Family Overview The GPT-4.1 family is now available on Retell AI with the following performance characteristics [(1) ]() : Intelligence ranking: GPT 4.1 > GPT 4o mini > GPT 4o > GPT 4.1 mini > GPT 4.1 nano Latency (lower is faster) : GPT 4.1 nano < GPT 4.1 mini < GPT 4o mini < GPT 4o < GPT 4.1 Price per minute: GPT-4.1 nano ($0.004) < GPT-4o mini ($0.006) < GPT-4.1 mini ($0.016) < GPT-4.1 ($0.045) < GPT-4o ($0.050) ## Community Feedback on Model Performance From the Discord discussions, there are some specific issues to consider: GPT-4o-realtime challenges: Community members report that the gpt-4o-realtime model sometimes ignores the general prompt and defaults to its "helpful assistant" persona [(2) ]() . The suggested fixes include always resending the system/general prompt at the start of each session and keeping prompts short and clear . Response speed concerns: Users experiencing slow response times have been advised to use GPT-4 models, with one community member asking if GPT-4o is better than GPT-4.1 for faster responses [(3) ]() . Cost considerations: One community discussion mentions that if clients find GPT models too costly, GPT-4o-mini is recommended as a more affordable option [(4) ]() . ## Recommendation Based on Available Data Based on the performance metrics from the changelog, GPT-4o mini appears to offer the best balance of speed, cost, and intelligence for most voice call use cases, ranking second in int
elligence while being significantly faster and cheaper than GPT-4.1 and GPT-4o [(1) ]() . However, I don't have comprehensive community sentiment data from the sources to definitively state which model the Discord community considers "best overall" for calls.
​ To learn more, see the sources I considered: [[1] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[2] gpt-4o-realtime General Prompt Issues](https://discord.com/channels/1186424376300679209/1313624681903034398) [[3] Long time to Respond](https://discord.com/channels/1186424376300679209/1396968460231376896) [[4] Discord message from @faiz006297 on 2025-01-27](https://discord.com/channels/1186424376300679209/1294891368505937952/1333429018300645386) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy can i have it to where my voice agent will only leave a voicemail if its the first call to the client, any subsequent calls will not recieve a voicemail
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer Based on the available sources, Retell AI doesn't have built-in functionality to conditionally leave voicemails based on call history. However, you can implement this logic using dynamic variables and external systems. ## Current Voicemail Options The voicemail detection feature is configured at the agent level with these options [(1) ]() [(2) ]() [(3) ]() :
Copy code
json
{  
 "action": {  
 "type": "static_text",  
 "text": "Please give us a callback tomorrow at 10am."  
 }  
}
[(1) ]() , [(3) ]() The
voicemail_option
can be set to either hangup or leave a static message when voicemail is detected [(1) ]() [(2) ]() [(3) ]() . ## Implementing Conditional Voicemail Logic To achieve your goal, you'll need to: 1. Track call history externally - Store whether this is the first call to each client in your database 2. Use dynamic variables - Pass this information to the agent using
retell_llm_dynamic_variables
when creating calls 3. Update agent settings dynamically - Modify the
voicemail_option
before each call using the Update Agent API [(3) ]() [(4) ]() ## Example Implementation
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;

// For first-time calls - enable voicemail
const agentResponse = await client.agent.update('agent_id', {
 voicemail_option: {
  action: {
   type: "static_text",
   text: "Please give us a callback tomorrow at 10am."
  }
 }
}) ;

// For subsequent calls - disable voicemail  
const agentResponse2 = await client.agent.update('agent_id', {
 voicemail_option: null
}) ;
[(3) ]() , [(4) ]() ## Alternative Approach You could also create two separate agents - one with voicemail enabled for first calls, and another with voicemail disabled for follow-ups, then choose which agent to use based on your call history logic. The key limitation is that voicemail settings are configured at the agent level [(5) ]() , so you'll need external logic to determine which configuration to use for each call.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy what does call succesful mean in retell ? what does it not mean can you explain what makes a call succesful/ unsuccesful
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer The
call_successful
field in Retell AI is part of the post-call analysis that's available after a call ends [(1) ]() [(2) ]() [(3) ]() [(4) ]() [(5) ]() [(6) ]() . This boolean field indicates whether the call was deemed successful based on the analysis. ## Where to Find Call Success Status The
call_successful
field appears in the
call_analysis
object :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponses = await client.call.list() ;
console.log(callResponses) ;
[(1) ]() The response includes a
call_analysis
object with the
call_successful
field [(1) ]() [(2) ]() [(3) ]() [(4) ]() [(5) ]() [(6) ]() :
Copy code
json
"call_analysis": {
 "call_summary": "The agent called the user to ask question about his purchase inquiry. The agent asked several questions regarding his preference and asked if user would like to book an appointment. The user happily agreed and scheduled an appointment next Monday 10am.",
 "in_voicemail": false,
 "user_sentiment": "Positive",
 "call_successful": true,
 "custom_analysis_data": {}
}
## Important Distinctions What
call_successful
is NOT:
- It's not about technical call completion (that's
call_status
) - It's not about whether the call connected (that's determined by
disconnection_reason
) - It's not about call duration or audio quality What determines success: The documentation shows that
call_successful
is part of the post-call analysis that includes information such as sentiment, status, summary, and custom defined data to extract . You need to subscribe to the
call_analyzed
webhook event type to receive this data once it's ready . The exact criteria for what makes a call "successful" versus "unsuccessful" in Retell AI's analysis isn't detailed in the available sources. This appears to be determined by Retell AI's post-call analysis algorithms, potentially based on factors like conversation completion, goal achievement, or other conversational metrics.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy how can i track if a call is answered or unanswered in "get a call"
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer To track if a call is answered or unanswered using the "Get Call" API, you need to check the combination of
call_status
and
disconnection_reason
fields [(1) ]() . ## Identifying Unanswered Calls Unanswered calls will have
call_status
of
not_connected
with these specific
disconnection_reason
values [(2) ]() : - `dial_busy`: Outbound call not connected, the number dialed in busy - `dial_failed`: Outbound call not connected, dailing failed with no or unknown sip error code - `dial_no_answer`: Outbound call not connected, the number dialed did not answer - `invalid_destination`: Outbound call not connected, the number dialed is invalid - `user_declined`: Outbound call not connected, user declined the call ## Identifying Answered Calls Answered calls will have
call_status
of
ended
(not
not_connected
) with disconnection reasons like : - `user_hangup`: Expected behavior, user hangup the call - `agent_hangup`: Expected behavior, AI agent hangup the call - `call_transfer`: Expected behavior, AI agent transferred the call - `voicemail_reached`: Expected behavior, if AI agent configured voicemail settings, and reached voicemail ## Using the Get Call API
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponse = await client.call.retrieve('119c3f8e47135a29e65947eeb34cf12d') ;
console.log(callResponse) ;
[(1) ]() ## Key Logic The key insight is that answered calls will never have
call_status
of
not_connected
. If you see
user_hangup
or
agent_hangup
, those are actually answered calls where someone picked up and then hung up.
​ To learn more, see the sources I considered: [[1] Get Call](https://docs.retellai.com/api-references/get-call) [[2] Debug call disconnection](https://docs.retellai.com/reliability/debug-call-disconnect) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy will the dial_busy be visible after calls were made or will it be in the call started webhook
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer ### Answer The
dial_busy
disconnection reason will be visible after the call attempt, not in the
call_started
webhook [(1) ]() . ## Webhook Event Behavior for Failed Calls When a call has
dial_busy
(or any failed connection) , the webhook behavior is : - **`call_started` webhook**: Will NOT be triggered - **`call_ended` webhook**: WILL be triggered with the
dial_busy
disconnection reason - **`call_analyzed` webhook**: WILL be triggered According to the webhook documentation: "When the call did not connect (like calls with
dial_failed
,
dial_no_answer
,
dial_busy
disconnection reason) , it will not have its
call_started
webhook triggered. It will still have its
call_ended
and
call_analyzed
webhook triggered" . ## Call Status for dial_busy Calls with
dial_busy
will have [(2) ]() : - `call_status`:
not_connected
- `disconnection_reason`:
dial_busy
- Description: "Outbound call not connected, the number dialed in busy" ## Where You'll See dial_busy You can access the
dial_busy
status through: 1.
call_ended
webhook
- Receives the full call object with disconnection reason [(1) ]() 2. Get Call API - After the call attempt is complete [(3) ]() , [(4) ]() 3. Dashboard - In the call history after the call attempt The key point is that
dial_busy
indicates the call never connected, so there's no
call_started
event to trigger [(1) ]() .
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Debug call disconnection](https://docs.retellai.com/reliability/debug-call-disconnect) [[3] Update Call](https://docs.retellai.com/api-references/update-call) [[4] List Calls](https://docs.retellai.com/api-references/list-calls) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy how can i effectively make an ai agent "double tap" like call people twice if the first time they do not answer
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer To implement "double tap" calling (calling twice if the first call isn't answered) , you'll need to build this functionality using webhooks and external automation since Retell AI doesn't have built-in retry functionality [(1) ]() . ## Implementation Strategy ### 1. Use Call Event Webhooks Set up webhooks to monitor call completion and automatically trigger a second call when the first isn't answered [(2) ]() . The webhook will POST call data to your endpoint when calls end . ### 2. Monitor for Unanswered Calls Check for these disconnection reasons that indicate unanswered calls [(3) ]() : - `dial_no_answer`: Outbound call not connected, the number dialed did not answer - `dial_busy`: Outbound call not connected, the number dialed in busy - `dial_failed`: Outbound call not connected, dailing failed with no or unknown sip error code These calls will have
call_status
of
not_connected
. ### 3. Automatic Retry Logic When your webhook receives a
call_ended
event with one of the above disconnection reasons, automatically trigger a second call using the Create Phone Call API [(4) ]() :
Copy code
javascript
const registerCallResponse = await retell.call.createPhoneCall({
 from_number: '+14157774444', // replace with the number you purchased
 to_number: '+12137774445', // replace with the number you want to call
 retell_llm_dynamic_variables: { // replace with the dynamic variables you want to send (optional)
 name: 'John Doe',
 blood_group: 'B+'
 }, 
 custom_sip_headers: { // replace with custom sip headers you want to send (optional)
 X-Custom-Header: 'Custom Value'
 }

}) ;
[(1) ]() ### 4. Important Considerations **CPS Limits**: Each account has a default CPS limit of 1 call per second . Implement retry logic with exponential backoff to handle throttling gracefully . **Webhook Behavior**: For unanswered calls, the
call_started
webhook will NOT be triggered, but
call_ended
and
call_analyzed
webhooks WILL be triggered [(2) ]() . ### 5. Community Solutions Based on community discussions, some users have implemented similar functionality and mentioned setting up workflows to keep calling until connected [(5) ]() . One user mentioned detecting "dial no answers" and setting up workflows to continue calling . ## External Automation Tools You can use platforms like Make.com, Zapier, or n8n to create workflows that: 1. Listen for webhook events 2. Check disconnection reasons 3. Automatically trigger second calls for unanswered attempts This approach gives you full control over retry timing, maximum attempts, and can include logic to space out retry attempts appropriately.
​ To learn more, see the sources I considered: [[1] Outbound calls (make calls)](https://docs.retellai.com/deploy/outbound-call) [[2] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[3] Debug call disconnection](https://docs.retellai.com/reliability/debug-call-disconnect) [[4] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[5] outbound calls failing "dial no answer"](https://discord.com/channels/1186424376300679209/1375656628967182376) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy why is my pickup rate so low on my ai calls, any insights ?
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer ### Answer Based on the available sources, low pickup rates can be caused by several factors, with one key issue being numbers getting marked as spam [(1) ]() . ## Primary Cause: Numbers Marked as Spam When a number experiences high outbound call volume spike without any warmup, and/or has a low pickup rate, it might be marked as spam by carriers . When this happens, the number will get blocked frequently . ## Solutions to Improve Pickup Rate To remedy low pickup rates, you can try to : 1. Purchase a new number and warm it up - Slowly add outbound traffic to it before pouring all traffic to it 2. Register the number with spam remediation - Use the verified phone number feature 3. Increase the pickup rate - This creates a positive feedback loop where better pickup rates prevent spam marking ## Monitoring Your Disconnection Reasons You can track what's causing low pickup rates by monitoring the
disconnection_reason
field in your call data [(2) ]() . For unanswered calls, you'll see reasons like [(1) ]() : - `dial_no_answer`: The number dialed did not answer - `dial_busy`: The number dialed is busy - `marked_as_spam`: The call is marked as spam - `user_declined`: The user explicitly declined the call ## Getting Call Data You can analyze your pickup rates using the Get Call API [(2) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponse = await client.call.retrieve('119c3f8e47135a29e65947eeb34cf12d') ;
console.log(callResponse) ;
The key insight is that if your numbers are getting marked as spam due to high volume without proper warmup, this will significantly impact your pickup rates [(1) ]() . The solution involves number warming strategies and potentially using verified phone numbers .
​ To learn more, see the sources I considered: [[1] Debug outbound connection issues](https://docs.retellai.com/reliability/debug-outbound-call) [[2] Get Call](https://docs.retellai.com/api-references/get-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy how can i set it up to have an agent have context, lets say an i want an agent to say something different on the 1st, 2nd or 3rd call
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer To set up an agent with context that behaves differently on the 1st, 2nd, or 3rd call, you can use dynamic variables to track and pass call history information [(1) ]() . ## Implementation Strategy You'll need to track call attempts externally (in your database or CRM) and pass this information to the agent using
retell_llm_dynamic_variables
when creating each call . ## Setting Up Dynamic Variables Dynamic variables can be used in your prompts, begin messages, and other agent configurations . For example:
Copy code
"This is call number {{call_attempt}} to {{user_name}}. {{call_specific_message}}"
## For Outbound Calls When using the Create Phone Call API, set your variables in the
retell_llm_dynamic_variables
field :
Copy code
{
  "user_name": "John Smith",
  "call_attempt": "1",
  "call_specific_message": "Thank you for your interest in our services"
}
## For Inbound Calls You can supply dynamic variables in the Inbound Call Webhook . The community has discussed this approach where you can populate caller details based on the phone number and call history [(2) ]() . ## Example Implementation Your external system would: 1. Track call history - Store how many times you've called each contact 2. Set dynamic variables - Pass different messages based on call count: - Call 1:
"call_specific_message": "Thanks for your interest"
- Call 2:
"call_specific_message": "Following up on our previous conversation"
- Call 3:
"call_specific_message": "This is my final attempt to reach you"
3. Use in prompts - Reference these variables throughout your agent's configuration [(1) ]() ## Important Notes All values in
retell_llm_dynamic_variables
must be strings . Numbers, booleans, or other data types are not supported. If a dynamic variable is not assigned a value, it will remain unchanged in the output as
{{variable_name}}
rather than being replaced with an empty string . This approach allows you to create personalized, context-aware conversations that adapt based on your relationship history with each contact [(3) ](

▾

) [(4) ]() .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Populating dynamic variables (caller details) based on the entity provided by the user (inbound)](https://discord.com/channels/1186424376300679209/1257709468251066439) [[3] Make x Retell Tutorial | How to trigger a call from google sheet](

https://www.youtube.com/watch?v=pjm8y3uILg4▾

) [[4] AI for After-Hours Call Answering Services | Retell AI](https://www.retellai.com/blog/transforming-after-hours-call-answering-services-with-ai-phone-agents) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy so how would i prompt it to do this, how do i structure my prompt to consider this, give an example prompt please
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
### Answer Based on the available sources, here's how to structure your prompt to handle different call attempts using dynamic variables: ## Example Prompt Structure Here's how you can structure your agent prompt to consider call history [(1) ]() :
Copy code
You are a sales representative calling {{customer_name}}. This is call attempt number {{call_attempt}} to this customer.

CALL BEHAVIOR BASED ON ATTEMPT:
- If {{call_attempt}} equals "1": Be friendly and introduce yourself. Say "Hi {{customer_name}}, this is my first time reaching out about our premium services."
- If {{call_attempt}} equals "2": Reference the previous attempt. Say "Hi {{customer_name}}, I called earlier but wanted to follow up on our conversation about your needs."  
- If {{call_attempt}} equals "3": Be more direct and urgent. Say "Hi {{customer_name}}, this is my final attempt to reach you about this limited-time opportunity."

{{call_specific_message}}

Remember to always use the customer's name {{customer_name}} and adapt your tone based on the call attempt number.
## Dynamic Variables Setup When making the API call, you'd pass these variables :
Copy code
{
  "customer_name": "John Smith",
  "call_attempt": "1",
  "call_specific_message": "I'm calling about our premium plan that could save you 30% on your monthly costs."
}
For the second call:
Copy code
{
  "customer_name": "John Smith",
  "call_attempt": "2",
  "call_specific_message": "I wanted to follow up on the premium plan we discussed and answer any questions you might have."
}
## Alternative Approach Using Begin Message You can also use dynamic variables in the begin message field :
Copy code
"Hello {{customer_name}}, {{call_opening_message}}"
Where
call_opening_message
would be different for each attempt: - Call 1: "I'm reaching out for the first time about our services" - Call 2: "I'm following up on our previous conversation" - Call 3: "This is my final attempt to connect with you" ## Important Notes All values in
retell_llm_dynamic_variables
must be strings . When a dynamic variable is not assigned a value, it will remain unchanged in the output as
{{variable_name}}
. You can use dynamic variables in prompts, begin messages, tool call descriptions, and other parts of your agent configuration .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
u
@AI Evy how can I make retell ai leave a different voicemail every time, call 1 x voice mail, call 2 y voicemail call 3 z voicemail etc..
a
### Answer ### Answer To make Retell AI leave different voicemails for each call attempt, you can combine dynamic variables with voicemail configuration using the Update Agent API before each call [(1) ]() [(2) ]() . ## Two Approaches Available ### Approach 1: Dynamic Variables in Static Text You can use dynamic variables within the voicemail static text [(1) ]() [(3) ]() :
Copy code
json
{  
 "action": {  
 "type": "static_text",  
 "text": "{{voicemail_message}}"  
 }  
}
[(4) ]() [(5) ]() Then pass different voicemail messages via
retell_llm_dynamic_variables
when creating calls [(1) ]() :
Copy code
{
  "customer_name": "John Smith",
  "call_attempt": "1",
  "voicemail_message": "Hi, this is Sarah calling about your inquiry. Please call us back at your convenience."
}
### Approach 2: Update Agent Before Each Call Dynamically update the agent's voicemail settings before each call using the Update Agent API [(2) ]() : For Call 1:
Copy code
json
{
 "voicemail_option": {
  "action": {
   "type": "static_text",
   "text": "Hi, this is our first attempt to reach you about our services."
  }
 }
}
For Call 2:
Copy code
json
{
 "voicemail_option": {
  "action": {
   "type": "static_text", 
   "text": "Hi, we called earlier but wanted to follow up on your inquiry."
  }
 }
}
## Implementation Strategy 1. Track call history externally - Store how many attempts you've made to each contact 2. Set appropriate voicemail message - Either via dynamic variables or by updating the agent before each call 3. Dynamic variables are supported in both static message and prompt for voicemail settings [(3) ]() ## Important Notes Dynamic variables are supported in voicemail settings for both static text and prompt . All values in
retell_llm_dynamic_variables
must be strings [(1) ]() . The voicemail detection will only run for the first 3 minutes of the call [(3) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
u
@AI Evy how can I do this without using update agent function
a
Thanks for the follow-up, @.billyblues. I'll get back to you soon.
## Important Notes - All values in
retell_llm_dynamic_variables
must be strings - Dynamic variables can be used in voicemail settings for both static text and prompt [(2) ]() - When a dynamic variable is not set, it will remain unchanged as
{{variable_name}}
in the output [(1) ]() - Make sure there are no spaces inside the curly braces (use
{{voicemail_message}}
not
{{ voicemail_message }}
) [(6) ]() This approach allows you to have one agent configuration but deliver personalized voicemails based on call history without needing to update the agent before each call.
### Answer ### Answer To create different voicemails without using the Update Agent function, you can use dynamic variables in your voicemail configuration [(1) ]() [(2) ]() . ## Solution: Dynamic Variables in Voicemail Settings Dynamic variables are supported in voicemail settings for both static message and prompt [(2) ]() . You can set up your agent once with a dynamic variable placeholder, then pass different voicemail content for each call. ### Setup Your Agent's Voicemail Configuration Configure your agent's voicemail to use a dynamic variable [(3) ]() [(4) ]() [(5) ]() :
Copy code
json
{  
 "action": {  
 "type": "static_text",  
 "text": "{{voicemail_message}}"  
 }  
}
### Pass Different Messages Per Call When making outbound calls, use the
retell_llm_dynamic_variables
field to pass different voicemail content [(1) ]() : For Call 1:
Copy code
json
{
 "customer_name": "John Smith",
 "call_attempt": "1",
 "voicemail_message": "Hi, this is Sarah from ABC Company. I'm calling about your recent inquiry. Please give us a callback at your convenience."
}
For Call 2:
Copy code
json
{
 "customer_name": "John Smith", 
 "call_attempt": "2",
 "voicemail_message": "Hi John, this is Sarah again. I called earlier but wanted to follow up on your inquiry. Please call us back when you have a moment."
}
For Call 3:
Copy code
json
{
 "customer_name": "John Smith",
 "call_attempt": "3", 
 "voicemail_message": "Hi John, this is my final attempt to reach you about this time-sensitive opportunity. Please call us back today."
}
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.