calebault
09/29/2025, 8:05 PMAI Evy
09/29/2025, 8:05 PMAI Evy
09/29/2025, 8:05 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const conversationFlowResponse = await client.conversationFlow.create({
model_choice: { model: 'gpt-5', type: 'cascading' },
nodes: [
{
id: 'start',
instruction: { text: 'Greet the customer and ask how you can help them.', type: 'prompt' },
type: 'conversation',
},
],
start_speaker: 'agent',
}) ;
[(2) ]()
However, some users have reported issues with voicemail detection, particularly when voicemail greetings contain only a beep sound without a spoken message [(1) ]() . In these cases, the agent may not properly detect the voicemail and continue talking until disconnecting due to inactivity .
For additional voicemail detection capabilities, you can also enable Twilio's Async AMD (Answering Machine Detection) with DetectMessageEnd and set an AsyncAmdStatusCallback URL . When voicemail is detected, you can have your backend wait and then hang up the call via API .AI Evy
09/29/2025, 8:05 PMAI Evy
09/29/2025, 8:05 PMcalebault
09/29/2025, 8:13 PMAI Evy
09/29/2025, 8:13 PMAI Evy
09/29/2025, 8:14 PMHi, this is {{your name}}, please give us a callback tomorrow at 10am.
The system will automatically detect voicemail and leave your static message when it's the agent's turn to speak . Dynamic variables are supported in static messages .
You should delete any custom voicemail detection transitions you've created in your conversation flow and rely on the built-in voicemail detection function instead [(1) ]() . The built-in system will handle voicemail detection globally across your entire conversation flow without requiring specific transition logic .AI Evy
09/29/2025, 8:14 PMAI Evy
09/29/2025, 8:14 PMcalebault
09/29/2025, 8:24 PMAI Evy
09/29/2025, 8:24 PMAI Evy
09/29/2025, 8:24 PMAI Evy
09/29/2025, 8:24 PMAI Evy
09/29/2025, 8:24 PMcalebault
09/29/2025, 8:26 PM