curl -X PATCH https://api.vaanivoice.ai/api/agent/7ec4155e-0e62-440a-b983-5974f7697854/experience \
-H "X-API-Key: vaani_<your_key>" \
-H "Content-Type: application/json" \
-d '{
"conversational_experience": {
"eagerness_to_speak": "fast",
"bg_noise": { "enabled": true, "volume": 0.2, "sound": "office" }
},
"settings": {
"call_settings": {
"max_call_duration": 30,
"max_duration_enabled": true,
"enable_voicemail_detection": true,
"action": "leave_message",
"end_call_message": "Sorry we missed you, please call back during business hours."
}
}
}'
const response = await fetch(
"https://api.vaanivoice.ai/api/agent/7ec4155e-0e62-440a-b983-5974f7697854/experience",
{
method: "PATCH",
headers: {
"X-API-Key": "vaani_<your_key>",
"Content-Type": "application/json",
},
body: JSON.stringify({
conversational_experience: {
eagerness_to_speak: "fast",
bg_noise: { enabled: true, volume: 0.2 },
},
settings: {
call_settings: { max_call_duration: 30 },
},
}),
}
);
const data = await response.json();
console.log(data);
import requests
requests.patch(
"https://api.vaanivoice.ai/api/agent/7ec4155e-0e62-440a-b983-5974f7697854/experience",
headers={"X-API-Key": "vaani_<your_key>", "Content-Type": "application/json"},
json={
"conversational_experience": {
"eagerness_to_speak": "balanced",
"bg_noise": {"enabled": False},
},
"settings": {
"idle_conversation_settings": {
"idle_call_hangup_timeout": 20,
"idle_call_hangup_message": "It seems you've stepped away. Goodbye!",
}
},
},
)
{
"success": true,
"message": "Experience section updated successfully"
}
Agents
Update Experience
Partially update the experience section of an agent
PATCH
/
api
/
agent
/
{agent_id}
/
experience
curl -X PATCH https://api.vaanivoice.ai/api/agent/7ec4155e-0e62-440a-b983-5974f7697854/experience \
-H "X-API-Key: vaani_<your_key>" \
-H "Content-Type: application/json" \
-d '{
"conversational_experience": {
"eagerness_to_speak": "fast",
"bg_noise": { "enabled": true, "volume": 0.2, "sound": "office" }
},
"settings": {
"call_settings": {
"max_call_duration": 30,
"max_duration_enabled": true,
"enable_voicemail_detection": true,
"action": "leave_message",
"end_call_message": "Sorry we missed you, please call back during business hours."
}
}
}'
const response = await fetch(
"https://api.vaanivoice.ai/api/agent/7ec4155e-0e62-440a-b983-5974f7697854/experience",
{
method: "PATCH",
headers: {
"X-API-Key": "vaani_<your_key>",
"Content-Type": "application/json",
},
body: JSON.stringify({
conversational_experience: {
eagerness_to_speak: "fast",
bg_noise: { enabled: true, volume: 0.2 },
},
settings: {
call_settings: { max_call_duration: 30 },
},
}),
}
);
const data = await response.json();
console.log(data);
import requests
requests.patch(
"https://api.vaanivoice.ai/api/agent/7ec4155e-0e62-440a-b983-5974f7697854/experience",
headers={"X-API-Key": "vaani_<your_key>", "Content-Type": "application/json"},
json={
"conversational_experience": {
"eagerness_to_speak": "balanced",
"bg_noise": {"enabled": False},
},
"settings": {
"idle_conversation_settings": {
"idle_call_hangup_timeout": 20,
"idle_call_hangup_message": "It seems you've stepped away. Goodbye!",
}
},
},
)
{
"success": true,
"message": "Experience section updated successfully"
}
Update Agent Experience
Partially update the experience section of an agent. Only the fields you include are merged into the existing config; omitted fields remain unchanged. The experience section controls the conversational feel (background noise, filler words, speaking pace) and call-level settings (idle timeouts, max duration, voicemail detection).Path Parameters
string
required
UUID of the agent to update.
Body Parameters
object
Settings that shape how the agent sounds and behaves during a conversation.
Show conversational_experience fields
Show conversational_experience fields
object
object
string
How quickly the agent starts speaking after the user stops:
"slow" | "balanced" | "fast".object
Breathing sound configuration (provider-specific shape).
object
Configuration for how long the agent waits for incomplete user input.
object
Map of detected moods to behavioural adjustments.
object
Call-level operational settings.
Show settings fields
Show settings fields
object
What the agent does when the call goes quiet.
Show idle_conversation_settings fields
Show idle_conversation_settings fields
object
object
Global call limits.
Request Example
curl -X PATCH https://api.vaanivoice.ai/api/agent/7ec4155e-0e62-440a-b983-5974f7697854/experience \
-H "X-API-Key: vaani_<your_key>" \
-H "Content-Type: application/json" \
-d '{
"conversational_experience": {
"eagerness_to_speak": "fast",
"bg_noise": { "enabled": true, "volume": 0.2, "sound": "office" }
},
"settings": {
"call_settings": {
"max_call_duration": 30,
"max_duration_enabled": true,
"enable_voicemail_detection": true,
"action": "leave_message",
"end_call_message": "Sorry we missed you, please call back during business hours."
}
}
}'
const response = await fetch(
"https://api.vaanivoice.ai/api/agent/7ec4155e-0e62-440a-b983-5974f7697854/experience",
{
method: "PATCH",
headers: {
"X-API-Key": "vaani_<your_key>",
"Content-Type": "application/json",
},
body: JSON.stringify({
conversational_experience: {
eagerness_to_speak: "fast",
bg_noise: { enabled: true, volume: 0.2 },
},
settings: {
call_settings: { max_call_duration: 30 },
},
}),
}
);
const data = await response.json();
console.log(data);
import requests
requests.patch(
"https://api.vaanivoice.ai/api/agent/7ec4155e-0e62-440a-b983-5974f7697854/experience",
headers={"X-API-Key": "vaani_<your_key>", "Content-Type": "application/json"},
json={
"conversational_experience": {
"eagerness_to_speak": "balanced",
"bg_noise": {"enabled": False},
},
"settings": {
"idle_conversation_settings": {
"idle_call_hangup_timeout": 20,
"idle_call_hangup_message": "It seems you've stepped away. Goodbye!",
}
},
},
)
Response
{
"success": true,
"message": "Experience section updated successfully"
}
⌘I

