curl --request PATCH \
--url https://api.bolna.ai/agent/{agent_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_config": {
"agent_name": "Alfred",
"agent_welcome_message": "How are you doing Bruce?",
"webhook_url": null,
"synthesizer": {
"provider": "polly",
"provider_config": {
"voice": "Matthew",
"engine": "generative",
"language": "en-US",
"sampling_rate": "8000"
},
"stream": true,
"buffer_size": 150,
"audio_format": "wav"
},
"ingest_source_config": {
"source_type": "api",
"source_url": "https://example.com/api/data",
"source_auth_token": "abc123",
"source_name": "leads_sheet_june.csv"
}
},
"agent_prompts": {
"task_1": {
"system_prompt": "What is the Ultimate Question of Life, the Universe, and Everything?"
}
}
}
'{
"message": "success",
"state": "updated"
}Learn how to partially update properties. Update Bolna Voice AI agent name, welcome message, webhook URL, voice settings, and prompts, using this endpoint.
curl --request PATCH \
--url https://api.bolna.ai/agent/{agent_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_config": {
"agent_name": "Alfred",
"agent_welcome_message": "How are you doing Bruce?",
"webhook_url": null,
"synthesizer": {
"provider": "polly",
"provider_config": {
"voice": "Matthew",
"engine": "generative",
"language": "en-US",
"sampling_rate": "8000"
},
"stream": true,
"buffer_size": 150,
"audio_format": "wav"
},
"ingest_source_config": {
"source_type": "api",
"source_url": "https://example.com/api/data",
"source_auth_token": "abc123",
"source_name": "leads_sheet_june.csv"
}
},
"agent_prompts": {
"task_1": {
"system_prompt": "What is the Ultimate Question of Life, the Universe, and Everything?"
}
}
}
'{
"message": "success",
"state": "updated"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Update an agent
Configuration of the agent
Show child attributes
The name of the agent
"Alfred"
Initial welcome message by agent
"How are you doing Bruce?"
Webhook URL to receive data for all conversations as get_execution API
null
Configuration of Synthesizer model for the agent task
Show child attributes
polly, elevenlabs, deepgram, styletts Show child attributes
Name of voice
Matthew Engine of voice
generative Language of voice
en-US Sampling rate of voice
8000, 16000 150
wav Configuration for ingestion source used for inbound agents. Required fields vary by source_type.
Show child attributes
Type of CRM ingestion source
api, csv, google_sheet "api"
API or Google Sheet URL
"https://example.com/api/data"
Bearer token for API authentication
"abc123"
File or sheet name
"leads_sheet_june.csv"
Prompts to be provided to the agent. It can have multiple tasks of the form task_<task_id>
agent status response
Was this page helpful?