How it works
- The AI Assistant initiates a transfer using the transfer tool.
- AMD (Answering Machine Detection) monitors the transfer destination.
- If voicemail is detected, the configured action triggers immediately.
- The assistant returns to the caller and continues the conversation.
Configuration options
Detection mode
Thedetection_mode field controls whether voicemail detection is active on the transfer:
| Value | Description |
|---|---|
disabled | No voicemail detection (default). |
premium | ML-based detection with high accuracy. Recommended for production use. |
Actions when voicemail is detected
Theon_voicemail_detected.action field determines what happens when voicemail is detected:
| Action | Behavior |
|---|---|
stop_transfer | Cancels the transfer immediately and returns the assistant to the caller. |
leave_message_and_stop_transfer | Delivers a TTS message to the voicemail, then cancels the transfer and returns to the caller. |
Voicemail message options
When usingleave_message_and_stop_transfer, the on_voicemail_detected.voicemail_message object configures what message is left:
| Field | Value | Description |
|---|---|---|
type | message | Plays a custom TTS text as the voicemail message. |
type | warm_transfer_instructions | Uses the warm transfer audio instructions as the voicemail message. |
message | string | The TTS text to deliver when type is message. |
Setting up via the Portal
- Navigate to AI, Storage and Compute in the Telnyx Portal.
- Select an existing AI Assistant or create a new one.
- In the Tools section, open the transfer tool configuration.
- Under Voicemail Detection, set the detection mode to Premium.
- Choose your preferred action: Stop the transfer or Leave a message and stop transfer.
- If leaving a message, enter the TTS text you want delivered to voicemail.
- Save and test with a call to a number that goes to voicemail.
Setting up via API
Configure voicemail detection within the transfer tool when creating or updating an assistant.Stop the transfer on voicemail
This configuration cancels the transfer and returns the assistant to the caller when voicemail is detected:Leave a message on voicemail
This configuration delivers a TTS message to voicemail before returning to the caller:Leave warm transfer instructions on voicemail
This configuration uses the warm transfer audio instructions as the voicemail message instead of custom TTS text:Related resources
- Voice AI Assistant API Reference - Complete transfer tool API documentation including voicemail detection parameters.
- Agent Handoff - Configure AI-to-AI handoffs between specialized assistants.
- Answering Machine Detection - AMD for outbound calls using programmable voice.
- No-Code Voice Assistant - Get started with Voice AI Assistants in the Portal.