https://retellai.com/?utm_source=discord&utm_medium=seo logo
Can the agent leave voicemails
# ❓・ai-evy-support
y
@AI Evy Can the agent leave voicemails?
a
Thanks for tagging me @yoavbg. I'll look through relevant sources and get back to you shortly.
### Answer Yes, Retell AI agents can leave voicemails [(1) ]() . You can configure your agent to detect and handle voicemails automatically with two options : 1. **Hang up**: The agent will disconnect when it detects a voicemail 2. **Leave a message**: The agent will leave a message after it's the agent's turn to speak When choosing to leave a message, you have two sub-options : - **Static message**: The agent will leave a pre-recorded message with dynamic variable support, like "Hi, this is {{your name}}, please give us a callback tomorrow at 10am." - **Prompt**: The agent will leave a message generated dynamically based on instructions you provide, like "summarize the call and ask user to call back" To enable this feature, navigate to your agent settings → call settings and enable "Voicemail Detection" . The system runs voicemail detection continuously within the timeout period . You can also configure voicemail options via the API using the
voicemail_option
parameter when creating or updating agents [(2) ]() [(3) ]() . Here's an example of the API structure:
Copy code
json
"voicemail_option": {
  "action": {
    "type": "static_text",
    "text": "Please give us a callback tomorrow at 10am."
  }
}
​ To learn more, see the sources I considered: [[1] Handle voicemail](https://docs.retellai.com/build/handle-voicemail) [[2] Update Agent](https://docs.retellai.com/api-references/update-agent) [[3] Create Agent](https://docs.retellai.com/api-references/create-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.