Bots
Update Bot
Update an existing bot’s configuration.
PATCH
/
v1
/
bots
/
{uid}
Copy
Ask AI
curl --request PATCH \
--url https://api.openmic.ai/v1/bots/{uid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Updated Customer Support Bot",
"prompt": "You are an advanced customer support assistant with expertise in technical issues.",
"voice_speed": 1.1,
"llm_model_temperature": 0.8,
"call_settings": {
"max_call_duration": 15,
"silence_timeout": 20
}
}'
Copy
Ask AI
{
"uid": "<string>",
"name": "<string>",
"prompt": "<string>",
"first_message": "<string>",
"knowledge_base_id": 123,
"voice_provider": "OpenAI",
"voice": "<string>",
"voice_model": "<string>",
"voice_speed": 123,
"llm_model_name": "<string>",
"llm_model_temperature": 123,
"stt_provider": "Deepgram",
"stt_model": "<string>",
"call_settings": {
"max_call_duration": 16,
"silence_timeout": 25,
"silence_timeout_max_retries": 3,
"silence_timeout_message": "<string>",
"call_recording_enabled": true,
"voicemail_detection_enabled": true,
"hipaa_compliance_enabled": true,
"pci_compliance_enabled": true
},
"advanced_settings": {
"agent_personality": "casual",
"humanize_conversation": true,
"background_noise_reduction": true,
"allow_interruptions": true,
"min_interruption_duration": 2.6,
"background_sound": "<string>",
"agent_response_length": "normal",
"short_pause": 1.1,
"long_pause": 3.25,
"filter_phrases": "<string>"
},
"post_call_settings": {
"summary_prompt": "<string>",
"success_evaluation_prompt": "<string>",
"success_evaluation_rubric_type": "NUMERIC_SCALE",
"structured_extraction_prompt": "<string>",
"structured_extraction_json_schema": "<any>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Authorizations
Bearer token authentication using API key. Find it at: https://chat.openmic.ai/api-key
Path Parameters
The unique identifier of the bot
Body
application/json
Updated bot configuration
All fields are optional for updates
Response
200
application/json
Bot updated successfully
The response is of type object
.
Copy
Ask AI
curl --request PATCH \
--url https://api.openmic.ai/v1/bots/{uid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Updated Customer Support Bot",
"prompt": "You are an advanced customer support assistant with expertise in technical issues.",
"voice_speed": 1.1,
"llm_model_temperature": 0.8,
"call_settings": {
"max_call_duration": 15,
"silence_timeout": 20
}
}'
Copy
Ask AI
{
"uid": "<string>",
"name": "<string>",
"prompt": "<string>",
"first_message": "<string>",
"knowledge_base_id": 123,
"voice_provider": "OpenAI",
"voice": "<string>",
"voice_model": "<string>",
"voice_speed": 123,
"llm_model_name": "<string>",
"llm_model_temperature": 123,
"stt_provider": "Deepgram",
"stt_model": "<string>",
"call_settings": {
"max_call_duration": 16,
"silence_timeout": 25,
"silence_timeout_max_retries": 3,
"silence_timeout_message": "<string>",
"call_recording_enabled": true,
"voicemail_detection_enabled": true,
"hipaa_compliance_enabled": true,
"pci_compliance_enabled": true
},
"advanced_settings": {
"agent_personality": "casual",
"humanize_conversation": true,
"background_noise_reduction": true,
"allow_interruptions": true,
"min_interruption_duration": 2.6,
"background_sound": "<string>",
"agent_response_length": "normal",
"short_pause": 1.1,
"long_pause": 3.25,
"filter_phrases": "<string>"
},
"post_call_settings": {
"summary_prompt": "<string>",
"success_evaluation_prompt": "<string>",
"success_evaluation_rubric_type": "NUMERIC_SCALE",
"structured_extraction_prompt": "<string>",
"structured_extraction_json_schema": "<any>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.