https://retellai.com/?utm_source=discord&utm_medium=seo logo
How can i stop the agent from calling back if ther...
# ❓・ai-evy-support
c
@AI Evy How can i stop the agent from calling back if there was no answer. i get a second call very quickly after a no answer
a
Thanks for tagging me @conner8079. I'll look through relevant sources and get back to you shortly.
### Answer Looking at the available documentation, I don't see specific settings for preventing automatic callback behavior when there's no answer. The agent configuration options in the sources focus on voice settings, response engines, and call handling features like voicemail options [(1) ]() [(2) ]() , but don't explicitly cover retry/callback behavior for unanswered calls. The closest related setting I can find is the
voicemail_option
which handles what happens when a call reaches voicemail :
Copy code
javascript
"voicemail_option": {
  "action": {
    "type": "static_text", 
    "text": "Please give us a callback tomorrow at 10am."
  }
}
[(1) ]() However, this doesn't specifically address preventing callbacks for unanswered calls. For the specific callback behavior you're experiencing, I'd recommend checking these resources for more detailed configuration options: - [Create Agent]() - [Update Agent]() Would you like me to provide a general answer about typical call retry configurations, or would you prefer to contact support for specific guidance on this callback behavior?
​ To learn more, see the sources I considered: [[1] Create Agent](https://docs.retellai.com/api-references/create-agent) [[2] Update Agent](https://docs.retellai.com/api-references/update-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
c
@AI Evy is there a way to detect if a call was answered or not
a
Thanks for the follow-up, @conner8079. I'll get back to you soon.
### Answer Yes, you can detect if a call was answered or not through the call history. You can check the call status in the call history where unanswered calls will show up under "end reason" with "dial no answer" [(1) ]() . For checking whether a bot successfully picked up and answered a call, you can also check this information from the call history [(2) ]() . However, if you need to automate this detection (such as triggering an HTTP request when a call isn't answered) , the current approach has limitations. When a call is not answered, the agent isn't activated, so function calling won't trigger to send automated notifications about the unanswered call [(1) ]() . The call history appears to be the primary method for detecting call answer status, but for real-time automated responses to unanswered calls, you may need to check with support for additional options.
​ To learn more, see the sources I considered: [[1] Outbound call - No Answer function](https://discord.com/channels/1186424376300679209/1399023267460681739) [[2] Bot successfully picked and answer or not](https://discord.com/channels/1186424376300679209/1381917259961860117) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
c
i need this via api
@AI Evy i need this via api
a
Thanks for the follow-up, @conner8079. I'll get back to you soon.
### Answer Yes, you can detect if a call was answered via the API using the Get Call endpoint [(1) ]() . The
disconnection_reason
field in the API response will indicate whether the call was answered or not . Here's how to retrieve call information:
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 API response includes a
disconnection_reason
field that will show specific reasons for call disconnection . For unanswered calls, you'll see values like: -
dial_no_answer
- when the call wasn't answered -
dial_failed
- when the call failed to connect -
dial_busy
- when the line was busy You can also check the
call_status
field which will show values like
registered
,
ongoing
,
ended
, or
error
. Additionally, you can set up webhooks to receive real-time notifications about call events, which would allow you to programmatically respond when calls aren't answered [(2) ]() .
​ To learn more, see the sources I considered: [[1] Get Call](https://docs.retellai.com/api-references/get-call) [[2] API Integration](https://www.retellai.com/glossary/api-integration) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.