### 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:
json
"voicemail_option": {
"action": {
"type": "static_text",
"text": "Please give us a callback tomorrow at 10am."
}
}