Claude
06/05/2026, 6:34 AMAI Evy
06/05/2026, 6:34 AMAI Evy
06/05/2026, 6:34 AMbegin_message_delay_ms parameter [(1) ]() [(2) ]() . This parameter delays the first message by a specified number of milliseconds, giving the user time to prepare after picking up the call .
The valid range is 0 to 5000 milliseconds . If not set or set to 0, the agent will speak immediately . This setting only applies when the agent speaks first .
A recommended approach from the community is to set this delay to 1000-2000 milliseconds (1-2 seconds) [(3) ]() . Setting it too long (like 6 seconds) can feel unnatural and cause the person to say "hello hello" with no response from the AI .
Here's how to configure it:
javascript
const agentResponse = await client.agent.create({
response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
voice_id: 'retell-Cimo',
begin_message_delay_ms: 1000
}) ;
[(1) ]()
If you're experiencing issues where the AI starts speaking during the ringing phase before the person picks up, adjusting begin_message_delay_ms to 1000-2000ms should help ensure the AI waits until after the call is answered [(3) ]() .AI Evy
06/05/2026, 6:34 AMAI Evy
06/05/2026, 6:34 AMClaude
06/08/2026, 7:26 PMAI Evy
06/08/2026, 7:26 PMAI Evy
06/08/2026, 7:26 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: process.env['RETELL_API_KEY'],
}) ;
const batchCallResponse = await client.batchCall.createBatchCall({
from_number: '+14157774444',
tasks: [{ to_number: '+12137774445' }],
}) ;
console.log(batchCallResponse.batch_call_id) ;
Option 2: Individual API Calls
Make calls one at a time via the Create Phone Call API [(1) ]() :
javascript
const registerCallResponse = await retell.call.createPhoneCall({
from_number: '+14157774444',
to_number: '+12137774445',
override_agent_id: 'agent_abc123',
retell_llm_dynamic_variables: {
name: 'John Doe',
blood_group: 'B+'
},
custom_sip_headers: {
X-Custom-Header: 'Custom Value'
}
}) ;AI Evy
06/08/2026, 7:26 PMAI Evy
06/08/2026, 7:26 PMAI Evy
06/08/2026, 7:26 PMClaude
06/09/2026, 11:59 AMClaude
06/09/2026, 11:59 AMAI Evy
06/09/2026, 11:59 AMAI Evy
06/09/2026, 11:59 AMAI Evy
06/09/2026, 11:59 AMAI Evy
06/09/2026, 11:59 AMClaude
06/11/2026, 10:14 PMAI Evy
06/11/2026, 10:14 PMAI Evy
06/11/2026, 10:14 PMAI Evy
06/11/2026, 10:14 PMAI Evy
06/11/2026, 10:14 PM