After-hours Voicemail and Notification
After-hours Voicemail and Notification
After-hours Voicemail and Notification
Handle calls outside business hours by collecting a message, transcribing it, and notifying the team.
This use case demonstrates:
State flow (business hours): PENDING -> CONNECTED -> DISCONNECTED
State flow (after hours): PENDING -> ANSWERED -> DISCONNECTED
connect() without answering, and the agent leaves with close(). The caller goes straight to ringing the callee.connect() - Route to the original callee during business hours (pre-answer)close() - Leave the call after connecting the caller to the calleeanswer() - Answer for voicemail after hoursaudio_stream() - Record the caller’s messagesend_audio() - Play the voicemail promptdisconnect() - End the voicemail call after the goodbye prompt