Record a voicemail

This example shows how to record a voicemail message. The recording will stop when the caller presses the star key or after 30 seconds, whichever comes first.

Example

In this example, the caller hears a message asking them to leave a voicemail. After the beep, the recording begins. The recording will stop when the caller presses the star key (*) or after 30 seconds. If no recording is received, the caller will hear "Recording not received."

XML Response

XML Response
<Response>
    <Speak>Please leave a message at the beep. Press the star key when done.</Speak>
    <Record action="https://vobiz.ai/record/" method="POST" maxLength="30" finishOnKey="*"/>
    <Speak>Recording not received.</Speak>
</Response>