Skip to main content
The Vocode API allows you to configure your outbound call agent’s behavior when the other end of a phone call is an answerphone as well as subscribe to events relating to machine detection.

Example 1: Hang up the call if it goes to voicemail

The on_no_human_answer parameter defines what should happen if a machine answers the phone.

Example 2: Hook into when a call goes to voicemail

If you’d like the bot to stay on the call and leave a voicemail, set on_no_human_answer to "continue". You can also configure a webhook to be fired when the answering machine detection status is populated.
Once the call is picked up, the webhook URL configured above will get the following POST request:

On the horizon

Stay tuned for more features here, for example:
  • Instructing your agent to leave a particular voicemail
  • Routing the call to a human when a human picks up, otherwise leave a voicemail