Voice Response Settings

The voice_response_settings object lets you control every aspect of your agent’s conversational behavior — from turn-taking sensitivity to call duration limits.

Pass it when creating or updating an agent:

$curl -X PATCH https://api.levrage.ai/v1/agents/{agent_id} \
> -H "Authorization: Bearer $API_KEY" \
> -H "Content-Type: application/json" \
> -d '{
> "voice_response_settings": {
> "allow_user_to_interrupt": true,
> "words_to_interrupt": 2,
> "silence_before_reminder": 8,
> "max_call_duration_minutes": 60,
> "response_creativity": 0.8
> }
> }'

Turn-Taking & Interruption

Control when the agent speaks and how it handles user interruptions.

FieldTypeDefaultDescription
allow_user_to_interruptbooleantrueAllow user to interrupt agent mid-speech
words_to_interruptinteger (0–10)2Minimum words spoken before an interruption is accepted
turn_detectionstring"vad"Turn detection mode: vad (voice activity), stt (speech-to-text), semantic (AI-based), english
vad_typestring"server_vad"VAD type: server_vad (silence-based) or semantic_vad (AI-based turn detection)
eagernessstring"medium"For semantic_vad mode: low, medium, high, or auto

Response Timing

Fine-tune how quickly the agent responds after the user stops speaking.

FieldTypeDefaultDescription
wait_before_respondinginteger (50–3000)200Padding in milliseconds before agent starts speaking
silence_to_end_turninteger (100–3000)300Silence duration (ms) to detect end of user turn
min_response_waitfloat (0.05–1.0)0.15Minimum seconds to wait before responding
max_response_waitfloat (0.1–2.0)0.3Maximum seconds to wait before responding
fast_responsebooleantrueEnable preemptive generation for faster responses
quick_response_paddinginteger (50–1000)200Response padding (ms) for realtime models
turn_end_silenceinteger (100–2000)300Silence to detect end of turn in realtime models

Listening Sensitivity

Adjust how sensitive the agent is to voice input.

FieldTypeDefaultDescription
listening_sensitivityfloat (0.1–1.0)0.5Voice detection sensitivity. Lower = more sensitive (picks up soft speech). Higher = needs louder/clearer voice
voice_detection_sensitivityfloat (0.1–0.9)0.5Voice detection threshold for premium models

Silence & Reminders

Configure what happens when the user goes silent during a call.

FieldTypeDefaultDescription
remind_on_silencebooleantrueSend reminders when user is silent
silence_before_reminderinteger (3–60)8Seconds of silence before sending a reminder
max_remindersinteger (1–10)5Max reminders before auto-disconnect
custom_reminder_messagesarray[string]Custom messages. E.g. ["Hello, are you there?", "Please say something..."]

Example

1{
2 "remind_on_silence": true,
3 "silence_before_reminder": 10,
4 "max_reminders": 3,
5 "custom_reminder_messages": [
6 "Hello, are you still there?",
7 "I'm still here if you'd like to continue.",
8 "Alright, I'll end the call now. Goodbye!"
9 ]
10}

Call Control

Manage call duration, IVR detection, and handoff behavior.

FieldTypeDefaultDescription
max_call_duration_minutesinteger (1–180)60Auto-end call after this many minutes
greeting_delayinteger (0–10)0Delay in seconds before agent greets on outbound calls
detect_ivr_systemsbooleantrueAuto-detect IVR/voicemail systems on outbound calls
enable_dtmf_inputbooleanfalseEnable DTMF keypress detection (e.g. “press 1 for sales”)
leave_voicemailbooleanfalseLeave a voicemail when an answering machine is detected
immediate_transferbooleanfalseImmediately transfer to a human without AI interaction

AI & Quality

Control AI behavior and post-call analysis.

FieldTypeDefaultDescription
response_creativityfloat (0.0–1.0)0.8AI creativity level. 0 = focused/deterministic, 1 = creative/varied
call_analysis_enabledbooleantrueEnable post-call AI analysis (sentiment, summary, data extraction)
Sales Agent

Fast, interruptible, with analysis enabled.

1{
2 "allow_user_to_interrupt": true,
3 "words_to_interrupt": 1,
4 "fast_response": true,
5 "response_creativity": 0.9,
6 "max_call_duration_minutes": 15,
7 "call_analysis_enabled": true
8}
Support Agent

Patient, high sensitivity, longer calls.

1{
2 "allow_user_to_interrupt": true,
3 "words_to_interrupt": 3,
4 "silence_before_reminder": 12,
5 "max_call_duration_minutes": 30,
6 "response_creativity": 0.6,
7 "listening_sensitivity": 0.3
8}

Start with the defaults and adjust based on your use case. The most impactful settings are response_creativity, silence_before_reminder, and max_call_duration_minutes.