curl --request POST \
--url https://api.openmic.ai/v1/bots \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"name": "Customer Support Bot",
"prompt": "You are a helpful customer support assistant. Be polite, professional, and always try to resolve customer issues.",
"first_message": "Hello! I'm here to help you with any questions or concerns you may have. How can I assist you today?",
"knowledge_base_id": 123,
"voice_provider": "OpenAI",
"voice": "alloy",
"voice_model": "tts-1",
"voice_speed": 1,
"llm_model_name": "gpt-4",
"llm_model_temperature": 0.7,
"stt_provider": "Deepgram",
"stt_model": "nova-2",
"call_settings": {
"max_call_duration": 10,
"silence_timeout": 15,
"silence_timeout_max_retries": 3,
"silence_timeout_message": "I didn't hear anything. Are you still there?",
"call_recording_enabled": true,
"voicemail_detection_enabled": true,
"voicemail_action": "leave_message",
"voicemail_message_type": "static",
"voicemail_message": "Hey, sorry we couldn't reach you directly. Please give us a callback if you can.",
"hipaa_compliance_enabled": false,
"pci_compliance_enabled": false
},
"advanced_settings": {
"agent_personality": "friendly",
"humanize_conversation": true,
"background_noise_reduction": true,
"allow_interruptions": true,
"min_interruption_duration": 0.5,
"agent_response_length": "normal",
"short_pause": 0.3,
"long_pause": 1
},
"post_call_settings": {
"summary_prompt": "Provide a brief summary of the customer interaction and any action items.",
"success_evaluation_prompt": "Rate the success of this call on a scale of 1-10 based on customer satisfaction.",
"success_evaluation_rubric_type": "NUMERIC_SCALE"
}
}
EOF
import requests
url = "https://api.openmic.ai/v1/bots"
payload = {
"name": "Customer Support Bot",
"prompt": "You are a helpful customer support assistant. Be polite, professional, and always try to resolve customer issues.",
"first_message": "Hello! I'm here to help you with any questions or concerns you may have. How can I assist you today?",
"knowledge_base_id": 123,
"voice_provider": "OpenAI",
"voice": "alloy",
"voice_model": "tts-1",
"voice_speed": 1,
"llm_model_name": "gpt-4",
"llm_model_temperature": 0.7,
"stt_provider": "Deepgram",
"stt_model": "nova-2",
"call_settings": {
"max_call_duration": 10,
"silence_timeout": 15,
"silence_timeout_max_retries": 3,
"silence_timeout_message": "I didn't hear anything. Are you still there?",
"call_recording_enabled": True,
"voicemail_detection_enabled": True,
"voicemail_action": "leave_message",
"voicemail_message_type": "static",
"voicemail_message": "Hey, sorry we couldn't reach you directly. Please give us a callback if you can.",
"hipaa_compliance_enabled": False,
"pci_compliance_enabled": False
},
"advanced_settings": {
"agent_personality": "friendly",
"humanize_conversation": True,
"background_noise_reduction": True,
"allow_interruptions": True,
"min_interruption_duration": 0.5,
"agent_response_length": "normal",
"short_pause": 0.3,
"long_pause": 1
},
"post_call_settings": {
"summary_prompt": "Provide a brief summary of the customer interaction and any action items.",
"success_evaluation_prompt": "Rate the success of this call on a scale of 1-10 based on customer satisfaction.",
"success_evaluation_rubric_type": "NUMERIC_SCALE"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Customer Support Bot',
prompt: 'You are a helpful customer support assistant. Be polite, professional, and always try to resolve customer issues.',
first_message: 'Hello! I\'m here to help you with any questions or concerns you may have. How can I assist you today?',
knowledge_base_id: 123,
voice_provider: 'OpenAI',
voice: 'alloy',
voice_model: 'tts-1',
voice_speed: 1,
llm_model_name: 'gpt-4',
llm_model_temperature: 0.7,
stt_provider: 'Deepgram',
stt_model: 'nova-2',
call_settings: {
max_call_duration: 10,
silence_timeout: 15,
silence_timeout_max_retries: 3,
silence_timeout_message: 'I didn\'t hear anything. Are you still there?',
call_recording_enabled: true,
voicemail_detection_enabled: true,
voicemail_action: 'leave_message',
voicemail_message_type: 'static',
voicemail_message: 'Hey, sorry we couldn\'t reach you directly. Please give us a callback if you can.',
hipaa_compliance_enabled: false,
pci_compliance_enabled: false
},
advanced_settings: {
agent_personality: 'friendly',
humanize_conversation: true,
background_noise_reduction: true,
allow_interruptions: true,
min_interruption_duration: 0.5,
agent_response_length: 'normal',
short_pause: 0.3,
long_pause: 1
},
post_call_settings: {
summary_prompt: 'Provide a brief summary of the customer interaction and any action items.',
success_evaluation_prompt: 'Rate the success of this call on a scale of 1-10 based on customer satisfaction.',
success_evaluation_rubric_type: 'NUMERIC_SCALE'
}
})
};
fetch('https://api.openmic.ai/v1/bots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.openmic.ai/v1/bots",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Customer Support Bot',
'prompt' => 'You are a helpful customer support assistant. Be polite, professional, and always try to resolve customer issues.',
'first_message' => 'Hello! I\'m here to help you with any questions or concerns you may have. How can I assist you today?',
'knowledge_base_id' => 123,
'voice_provider' => 'OpenAI',
'voice' => 'alloy',
'voice_model' => 'tts-1',
'voice_speed' => 1,
'llm_model_name' => 'gpt-4',
'llm_model_temperature' => 0.7,
'stt_provider' => 'Deepgram',
'stt_model' => 'nova-2',
'call_settings' => [
'max_call_duration' => 10,
'silence_timeout' => 15,
'silence_timeout_max_retries' => 3,
'silence_timeout_message' => 'I didn\'t hear anything. Are you still there?',
'call_recording_enabled' => true,
'voicemail_detection_enabled' => true,
'voicemail_action' => 'leave_message',
'voicemail_message_type' => 'static',
'voicemail_message' => 'Hey, sorry we couldn\'t reach you directly. Please give us a callback if you can.',
'hipaa_compliance_enabled' => false,
'pci_compliance_enabled' => false
],
'advanced_settings' => [
'agent_personality' => 'friendly',
'humanize_conversation' => true,
'background_noise_reduction' => true,
'allow_interruptions' => true,
'min_interruption_duration' => 0.5,
'agent_response_length' => 'normal',
'short_pause' => 0.3,
'long_pause' => 1
],
'post_call_settings' => [
'summary_prompt' => 'Provide a brief summary of the customer interaction and any action items.',
'success_evaluation_prompt' => 'Rate the success of this call on a scale of 1-10 based on customer satisfaction.',
'success_evaluation_rubric_type' => 'NUMERIC_SCALE'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.openmic.ai/v1/bots"
payload := strings.NewReader("{\n \"name\": \"Customer Support Bot\",\n \"prompt\": \"You are a helpful customer support assistant. Be polite, professional, and always try to resolve customer issues.\",\n \"first_message\": \"Hello! I'm here to help you with any questions or concerns you may have. How can I assist you today?\",\n \"knowledge_base_id\": 123,\n \"voice_provider\": \"OpenAI\",\n \"voice\": \"alloy\",\n \"voice_model\": \"tts-1\",\n \"voice_speed\": 1,\n \"llm_model_name\": \"gpt-4\",\n \"llm_model_temperature\": 0.7,\n \"stt_provider\": \"Deepgram\",\n \"stt_model\": \"nova-2\",\n \"call_settings\": {\n \"max_call_duration\": 10,\n \"silence_timeout\": 15,\n \"silence_timeout_max_retries\": 3,\n \"silence_timeout_message\": \"I didn't hear anything. Are you still there?\",\n \"call_recording_enabled\": true,\n \"voicemail_detection_enabled\": true,\n \"voicemail_action\": \"leave_message\",\n \"voicemail_message_type\": \"static\",\n \"voicemail_message\": \"Hey, sorry we couldn't reach you directly. Please give us a callback if you can.\",\n \"hipaa_compliance_enabled\": false,\n \"pci_compliance_enabled\": false\n },\n \"advanced_settings\": {\n \"agent_personality\": \"friendly\",\n \"humanize_conversation\": true,\n \"background_noise_reduction\": true,\n \"allow_interruptions\": true,\n \"min_interruption_duration\": 0.5,\n \"agent_response_length\": \"normal\",\n \"short_pause\": 0.3,\n \"long_pause\": 1\n },\n \"post_call_settings\": {\n \"summary_prompt\": \"Provide a brief summary of the customer interaction and any action items.\",\n \"success_evaluation_prompt\": \"Rate the success of this call on a scale of 1-10 based on customer satisfaction.\",\n \"success_evaluation_rubric_type\": \"NUMERIC_SCALE\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.post("https://api.openmic.ai/v1/bots")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Customer Support Bot\",\n \"prompt\": \"You are a helpful customer support assistant. Be polite, professional, and always try to resolve customer issues.\",\n \"first_message\": \"Hello! I'm here to help you with any questions or concerns you may have. How can I assist you today?\",\n \"knowledge_base_id\": 123,\n \"voice_provider\": \"OpenAI\",\n \"voice\": \"alloy\",\n \"voice_model\": \"tts-1\",\n \"voice_speed\": 1,\n \"llm_model_name\": \"gpt-4\",\n \"llm_model_temperature\": 0.7,\n \"stt_provider\": \"Deepgram\",\n \"stt_model\": \"nova-2\",\n \"call_settings\": {\n \"max_call_duration\": 10,\n \"silence_timeout\": 15,\n \"silence_timeout_max_retries\": 3,\n \"silence_timeout_message\": \"I didn't hear anything. Are you still there?\",\n \"call_recording_enabled\": true,\n \"voicemail_detection_enabled\": true,\n \"voicemail_action\": \"leave_message\",\n \"voicemail_message_type\": \"static\",\n \"voicemail_message\": \"Hey, sorry we couldn't reach you directly. Please give us a callback if you can.\",\n \"hipaa_compliance_enabled\": false,\n \"pci_compliance_enabled\": false\n },\n \"advanced_settings\": {\n \"agent_personality\": \"friendly\",\n \"humanize_conversation\": true,\n \"background_noise_reduction\": true,\n \"allow_interruptions\": true,\n \"min_interruption_duration\": 0.5,\n \"agent_response_length\": \"normal\",\n \"short_pause\": 0.3,\n \"long_pause\": 1\n },\n \"post_call_settings\": {\n \"summary_prompt\": \"Provide a brief summary of the customer interaction and any action items.\",\n \"success_evaluation_prompt\": \"Rate the success of this call on a scale of 1-10 based on customer satisfaction.\",\n \"success_evaluation_rubric_type\": \"NUMERIC_SCALE\"\n }\n}")
.asString();
require 'uri'
require 'net/http'
url = URI("https://api.openmic.ai/v1/bots")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Customer Support Bot\",\n \"prompt\": \"You are a helpful customer support assistant. Be polite, professional, and always try to resolve customer issues.\",\n \"first_message\": \"Hello! I'm here to help you with any questions or concerns you may have. How can I assist you today?\",\n \"knowledge_base_id\": 123,\n \"voice_provider\": \"OpenAI\",\n \"voice\": \"alloy\",\n \"voice_model\": \"tts-1\",\n \"voice_speed\": 1,\n \"llm_model_name\": \"gpt-4\",\n \"llm_model_temperature\": 0.7,\n \"stt_provider\": \"Deepgram\",\n \"stt_model\": \"nova-2\",\n \"call_settings\": {\n \"max_call_duration\": 10,\n \"silence_timeout\": 15,\n \"silence_timeout_max_retries\": 3,\n \"silence_timeout_message\": \"I didn't hear anything. Are you still there?\",\n \"call_recording_enabled\": true,\n \"voicemail_detection_enabled\": true,\n \"voicemail_action\": \"leave_message\",\n \"voicemail_message_type\": \"static\",\n \"voicemail_message\": \"Hey, sorry we couldn't reach you directly. Please give us a callback if you can.\",\n \"hipaa_compliance_enabled\": false,\n \"pci_compliance_enabled\": false\n },\n \"advanced_settings\": {\n \"agent_personality\": \"friendly\",\n \"humanize_conversation\": true,\n \"background_noise_reduction\": true,\n \"allow_interruptions\": true,\n \"min_interruption_duration\": 0.5,\n \"agent_response_length\": \"normal\",\n \"short_pause\": 0.3,\n \"long_pause\": 1\n },\n \"post_call_settings\": {\n \"summary_prompt\": \"Provide a brief summary of the customer interaction and any action items.\",\n \"success_evaluation_prompt\": \"Rate the success of this call on a scale of 1-10 based on customer satisfaction.\",\n \"success_evaluation_rubric_type\": \"NUMERIC_SCALE\"\n }\n}"
response = http.request(request)
puts response.read_body
curl --request POST \
--url https://api.openmic.ai/v1/bots \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"name": "Customer Support Bot",
"prompt": "You are a helpful customer support assistant. Be polite, professional, and always try to resolve customer issues.",
"first_message": "Hello! I'm here to help you with any questions or concerns you may have. How can I assist you today?",
"knowledge_base_id": 123,
"voice_provider": "OpenAI",
"voice": "alloy",
"voice_model": "tts-1",
"voice_speed": 1,
"llm_model_name": "gpt-4",
"llm_model_temperature": 0.7,
"stt_provider": "Deepgram",
"stt_model": "nova-2",
"call_settings": {
"max_call_duration": 10,
"silence_timeout": 15,
"silence_timeout_max_retries": 3,
"silence_timeout_message": "I didn't hear anything. Are you still there?",
"call_recording_enabled": true,
"voicemail_detection_enabled": true,
"voicemail_action": "leave_message",
"voicemail_message_type": "static",
"voicemail_message": "Hey, sorry we couldn't reach you directly. Please give us a callback if you can.",
"hipaa_compliance_enabled": false,
"pci_compliance_enabled": false
},
"advanced_settings": {
"agent_personality": "friendly",
"humanize_conversation": true,
"background_noise_reduction": true,
"allow_interruptions": true,
"min_interruption_duration": 0.5,
"agent_response_length": "normal",
"short_pause": 0.3,
"long_pause": 1
},
"post_call_settings": {
"summary_prompt": "Provide a brief summary of the customer interaction and any action items.",
"success_evaluation_prompt": "Rate the success of this call on a scale of 1-10 based on customer satisfaction.",
"success_evaluation_rubric_type": "NUMERIC_SCALE"
}
}
EOF
import requests
url = "https://api.openmic.ai/v1/bots"
payload = {
"name": "Customer Support Bot",
"prompt": "You are a helpful customer support assistant. Be polite, professional, and always try to resolve customer issues.",
"first_message": "Hello! I'm here to help you with any questions or concerns you may have. How can I assist you today?",
"knowledge_base_id": 123,
"voice_provider": "OpenAI",
"voice": "alloy",
"voice_model": "tts-1",
"voice_speed": 1,
"llm_model_name": "gpt-4",
"llm_model_temperature": 0.7,
"stt_provider": "Deepgram",
"stt_model": "nova-2",
"call_settings": {
"max_call_duration": 10,
"silence_timeout": 15,
"silence_timeout_max_retries": 3,
"silence_timeout_message": "I didn't hear anything. Are you still there?",
"call_recording_enabled": True,
"voicemail_detection_enabled": True,
"voicemail_action": "leave_message",
"voicemail_message_type": "static",
"voicemail_message": "Hey, sorry we couldn't reach you directly. Please give us a callback if you can.",
"hipaa_compliance_enabled": False,
"pci_compliance_enabled": False
},
"advanced_settings": {
"agent_personality": "friendly",
"humanize_conversation": True,
"background_noise_reduction": True,
"allow_interruptions": True,
"min_interruption_duration": 0.5,
"agent_response_length": "normal",
"short_pause": 0.3,
"long_pause": 1
},
"post_call_settings": {
"summary_prompt": "Provide a brief summary of the customer interaction and any action items.",
"success_evaluation_prompt": "Rate the success of this call on a scale of 1-10 based on customer satisfaction.",
"success_evaluation_rubric_type": "NUMERIC_SCALE"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Customer Support Bot',
prompt: 'You are a helpful customer support assistant. Be polite, professional, and always try to resolve customer issues.',
first_message: 'Hello! I\'m here to help you with any questions or concerns you may have. How can I assist you today?',
knowledge_base_id: 123,
voice_provider: 'OpenAI',
voice: 'alloy',
voice_model: 'tts-1',
voice_speed: 1,
llm_model_name: 'gpt-4',
llm_model_temperature: 0.7,
stt_provider: 'Deepgram',
stt_model: 'nova-2',
call_settings: {
max_call_duration: 10,
silence_timeout: 15,
silence_timeout_max_retries: 3,
silence_timeout_message: 'I didn\'t hear anything. Are you still there?',
call_recording_enabled: true,
voicemail_detection_enabled: true,
voicemail_action: 'leave_message',
voicemail_message_type: 'static',
voicemail_message: 'Hey, sorry we couldn\'t reach you directly. Please give us a callback if you can.',
hipaa_compliance_enabled: false,
pci_compliance_enabled: false
},
advanced_settings: {
agent_personality: 'friendly',
humanize_conversation: true,
background_noise_reduction: true,
allow_interruptions: true,
min_interruption_duration: 0.5,
agent_response_length: 'normal',
short_pause: 0.3,
long_pause: 1
},
post_call_settings: {
summary_prompt: 'Provide a brief summary of the customer interaction and any action items.',
success_evaluation_prompt: 'Rate the success of this call on a scale of 1-10 based on customer satisfaction.',
success_evaluation_rubric_type: 'NUMERIC_SCALE'
}
})
};
fetch('https://api.openmic.ai/v1/bots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.openmic.ai/v1/bots",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Customer Support Bot',
'prompt' => 'You are a helpful customer support assistant. Be polite, professional, and always try to resolve customer issues.',
'first_message' => 'Hello! I\'m here to help you with any questions or concerns you may have. How can I assist you today?',
'knowledge_base_id' => 123,
'voice_provider' => 'OpenAI',
'voice' => 'alloy',
'voice_model' => 'tts-1',
'voice_speed' => 1,
'llm_model_name' => 'gpt-4',
'llm_model_temperature' => 0.7,
'stt_provider' => 'Deepgram',
'stt_model' => 'nova-2',
'call_settings' => [
'max_call_duration' => 10,
'silence_timeout' => 15,
'silence_timeout_max_retries' => 3,
'silence_timeout_message' => 'I didn\'t hear anything. Are you still there?',
'call_recording_enabled' => true,
'voicemail_detection_enabled' => true,
'voicemail_action' => 'leave_message',
'voicemail_message_type' => 'static',
'voicemail_message' => 'Hey, sorry we couldn\'t reach you directly. Please give us a callback if you can.',
'hipaa_compliance_enabled' => false,
'pci_compliance_enabled' => false
],
'advanced_settings' => [
'agent_personality' => 'friendly',
'humanize_conversation' => true,
'background_noise_reduction' => true,
'allow_interruptions' => true,
'min_interruption_duration' => 0.5,
'agent_response_length' => 'normal',
'short_pause' => 0.3,
'long_pause' => 1
],
'post_call_settings' => [
'summary_prompt' => 'Provide a brief summary of the customer interaction and any action items.',
'success_evaluation_prompt' => 'Rate the success of this call on a scale of 1-10 based on customer satisfaction.',
'success_evaluation_rubric_type' => 'NUMERIC_SCALE'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.openmic.ai/v1/bots"
payload := strings.NewReader("{\n \"name\": \"Customer Support Bot\",\n \"prompt\": \"You are a helpful customer support assistant. Be polite, professional, and always try to resolve customer issues.\",\n \"first_message\": \"Hello! I'm here to help you with any questions or concerns you may have. How can I assist you today?\",\n \"knowledge_base_id\": 123,\n \"voice_provider\": \"OpenAI\",\n \"voice\": \"alloy\",\n \"voice_model\": \"tts-1\",\n \"voice_speed\": 1,\n \"llm_model_name\": \"gpt-4\",\n \"llm_model_temperature\": 0.7,\n \"stt_provider\": \"Deepgram\",\n \"stt_model\": \"nova-2\",\n \"call_settings\": {\n \"max_call_duration\": 10,\n \"silence_timeout\": 15,\n \"silence_timeout_max_retries\": 3,\n \"silence_timeout_message\": \"I didn't hear anything. Are you still there?\",\n \"call_recording_enabled\": true,\n \"voicemail_detection_enabled\": true,\n \"voicemail_action\": \"leave_message\",\n \"voicemail_message_type\": \"static\",\n \"voicemail_message\": \"Hey, sorry we couldn't reach you directly. Please give us a callback if you can.\",\n \"hipaa_compliance_enabled\": false,\n \"pci_compliance_enabled\": false\n },\n \"advanced_settings\": {\n \"agent_personality\": \"friendly\",\n \"humanize_conversation\": true,\n \"background_noise_reduction\": true,\n \"allow_interruptions\": true,\n \"min_interruption_duration\": 0.5,\n \"agent_response_length\": \"normal\",\n \"short_pause\": 0.3,\n \"long_pause\": 1\n },\n \"post_call_settings\": {\n \"summary_prompt\": \"Provide a brief summary of the customer interaction and any action items.\",\n \"success_evaluation_prompt\": \"Rate the success of this call on a scale of 1-10 based on customer satisfaction.\",\n \"success_evaluation_rubric_type\": \"NUMERIC_SCALE\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.post("https://api.openmic.ai/v1/bots")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Customer Support Bot\",\n \"prompt\": \"You are a helpful customer support assistant. Be polite, professional, and always try to resolve customer issues.\",\n \"first_message\": \"Hello! I'm here to help you with any questions or concerns you may have. How can I assist you today?\",\n \"knowledge_base_id\": 123,\n \"voice_provider\": \"OpenAI\",\n \"voice\": \"alloy\",\n \"voice_model\": \"tts-1\",\n \"voice_speed\": 1,\n \"llm_model_name\": \"gpt-4\",\n \"llm_model_temperature\": 0.7,\n \"stt_provider\": \"Deepgram\",\n \"stt_model\": \"nova-2\",\n \"call_settings\": {\n \"max_call_duration\": 10,\n \"silence_timeout\": 15,\n \"silence_timeout_max_retries\": 3,\n \"silence_timeout_message\": \"I didn't hear anything. Are you still there?\",\n \"call_recording_enabled\": true,\n \"voicemail_detection_enabled\": true,\n \"voicemail_action\": \"leave_message\",\n \"voicemail_message_type\": \"static\",\n \"voicemail_message\": \"Hey, sorry we couldn't reach you directly. Please give us a callback if you can.\",\n \"hipaa_compliance_enabled\": false,\n \"pci_compliance_enabled\": false\n },\n \"advanced_settings\": {\n \"agent_personality\": \"friendly\",\n \"humanize_conversation\": true,\n \"background_noise_reduction\": true,\n \"allow_interruptions\": true,\n \"min_interruption_duration\": 0.5,\n \"agent_response_length\": \"normal\",\n \"short_pause\": 0.3,\n \"long_pause\": 1\n },\n \"post_call_settings\": {\n \"summary_prompt\": \"Provide a brief summary of the customer interaction and any action items.\",\n \"success_evaluation_prompt\": \"Rate the success of this call on a scale of 1-10 based on customer satisfaction.\",\n \"success_evaluation_rubric_type\": \"NUMERIC_SCALE\"\n }\n}")
.asString();
require 'uri'
require 'net/http'
url = URI("https://api.openmic.ai/v1/bots")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Customer Support Bot\",\n \"prompt\": \"You are a helpful customer support assistant. Be polite, professional, and always try to resolve customer issues.\",\n \"first_message\": \"Hello! I'm here to help you with any questions or concerns you may have. How can I assist you today?\",\n \"knowledge_base_id\": 123,\n \"voice_provider\": \"OpenAI\",\n \"voice\": \"alloy\",\n \"voice_model\": \"tts-1\",\n \"voice_speed\": 1,\n \"llm_model_name\": \"gpt-4\",\n \"llm_model_temperature\": 0.7,\n \"stt_provider\": \"Deepgram\",\n \"stt_model\": \"nova-2\",\n \"call_settings\": {\n \"max_call_duration\": 10,\n \"silence_timeout\": 15,\n \"silence_timeout_max_retries\": 3,\n \"silence_timeout_message\": \"I didn't hear anything. Are you still there?\",\n \"call_recording_enabled\": true,\n \"voicemail_detection_enabled\": true,\n \"voicemail_action\": \"leave_message\",\n \"voicemail_message_type\": \"static\",\n \"voicemail_message\": \"Hey, sorry we couldn't reach you directly. Please give us a callback if you can.\",\n \"hipaa_compliance_enabled\": false,\n \"pci_compliance_enabled\": false\n },\n \"advanced_settings\": {\n \"agent_personality\": \"friendly\",\n \"humanize_conversation\": true,\n \"background_noise_reduction\": true,\n \"allow_interruptions\": true,\n \"min_interruption_duration\": 0.5,\n \"agent_response_length\": \"normal\",\n \"short_pause\": 0.3,\n \"long_pause\": 1\n },\n \"post_call_settings\": {\n \"summary_prompt\": \"Provide a brief summary of the customer interaction and any action items.\",\n \"success_evaluation_prompt\": \"Rate the success of this call on a scale of 1-10 based on customer satisfaction.\",\n \"success_evaluation_rubric_type\": \"NUMERIC_SCALE\"\n }\n}"
response = http.request(request)
puts response.read_body
API key authentication. Include your secret API key (omic_...) in the Authorization header as: Authorization: Bearer <your-api-key>. The public key (omic_pub_...) is only accepted by the endpoints the browser widgets call (/whoami, /test-call, /workflow-test-call, and the chat endpoints); every other endpoint rejects it with 403 This endpoint requires a private API key.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OpenMic","colors":{"primary":"#7C3AED","light":"#A78BFA","dark":"#5B21B6"},"logo":{"light":"https://mintcdn.com/openmic-ea75a20d/zvTwGm0WP3eu7xLT/images/openmic-light-logo.svg?fit=max\u0026auto=format\u0026n=zvTwGm0WP3eu7xLT\u0026q=85\u0026s=4b1800ec8b4fa160ce7a3123c9b87e75","dark":"https://mintcdn.com/openmic-ea75a20d/zvTwGm0WP3eu7xLT/images/openmic-dark-logo.svg?fit=max\u0026auto=format\u0026n=zvTwGm0WP3eu7xLT\u0026q=85\u0026s=eb1da284be4c46e91af84f33b8628630"},"favicon":"https://mintcdn.com/openmic-ea75a20d/zvTwGm0WP3eu7xLT/favicon.svg?fit=max\u0026auto=format\u0026n=zvTwGm0WP3eu7xLT\u0026q=85\u0026s=1b4d9f2fc7c53b05fc9f68b30aecbccd","navbar":{"links":[{"href":"mailto:founders@openmic.ai","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://chat.openmic.ai/login"}},"footer":{"socials":{"x":"https://twitter.com/openmic","github":"https://github.com/OpenMic","linkedin":"https://www.linkedin.com/showcase/openmicai"}},"integrations":{"mixpanel":{"projectToken":"6ccb514cfdb55d58633aa1ced0b19bcf"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","cursor"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"https://docs.openmic.ai"},{"anchor":"Community","icon":"slack","href":"https://join.slack.com/t/openmicai/shared_invite/zt-2ha8kt9pt-jaElinNxF4VgN5gyCC6spg"},{"anchor":"Blog","icon":"newspaper","href":"https://openmic.ai/blog"},{"anchor":"Pricing","icon":"dollar-sign","href":"https://www.openmic.ai/pricing"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"openmic-ea75a20d","hasAudioNarration":false,"actualSubdomain":"openmic-ea75a20d","customDomains":["docs.openmic.ai"],"gitSource":{"type":"github","owner":"openmicai","repo":"openmic-platform","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ac4b9219407f888ae78170f","collectionId":"58c540d4-9d2e-4833-bf14-5efba1b1455e","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ac4b9219407f888ae78170f"},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ae0a9fccdcf99f97c316aad","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API Reference","count":75},{"language":"default","tag":"V2","count":41},{"language":"default","tag":"Documentation","count":37},{"language":"default","tag":"Legacy","count":34},{"language":"default","tag":"Integrations","count":16},{"language":"default","tag":"Contact Lists","count":15},{"language":"default","tag":"Agents","count":14},{"language":"default","tag":"Tools","count":12},{"language":"default","tag":"Campaigns","count":10},{"language":"default","tag":"Phone Numbers","count":8}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/bots/create-bot","slug":"/api-reference/bots/create-bot","pageMetadata":{"openapi":"post /v1/bots","title":"Create Bot","description":"Create a new bot with specified configuration.","href":"/api-reference/bots/create-bot"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create a new bot with specified configuration.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /v1/bots","title":"Create Bot","description":"Create a new bot with specified configuration.","href":"/api-reference/bots/create-bot"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create Bot","description":"Create a new bot with specified configuration.","tags":["Bots"],"requestBody":"d7afd115-ff18-4d4d-b038-aef2d97c4aa2","responses":{"201":"a89e7e57-5998-4b67-a30c-5387621a2900","400":"59f9671b-8c81-4b11-a0e5-d06d1986153d","401":"03f7b4be-ad4f-4508-9de7-5159f5c7c1f5","500":"fc16f2cc-e38b-4380-b277-1819b1144443"},"method":"post","type":"path","servers":["1fa2ac88-0ccc-4f66-9b5e-a6dfd79bc76e"],"security":["1b943688-92e2-44a0-92b2-d313600fec16"],"path":"/v1/bots","baseUrlOptions":["https://api.openmic.ai"],"title":"Create Bot","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"description":"Bot configuration details","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Name of the bot (max 255 characters)","maxLength":255,"isRequired":true,"uniqueKey":"name","typeLabel":"string"},"prompt":{"type":"string","description":"System prompt for the bot","isRequired":true,"uniqueKey":"prompt","typeLabel":"string"},"first_message":{"type":"string","description":"Initial message the bot will send","uniqueKey":"first_message","typeLabel":"string"},"knowledge_base_id":{"type":"integer","description":"ID of the knowledge base to use","uniqueKey":"knowledge_base_id","typeLabel":"integer"},"voice_provider":{"type":"string","enum":["OpenAI","ElevenLabs","Deepgram"],"description":"Voice synthesis provider","uniqueKey":"voice_provider","typeLabel":"enum\u003cstring>"},"voice":{"type":"string","description":"Voice ID or name","uniqueKey":"voice","typeLabel":"string"},"voice_model":{"type":"string","description":"Voice model to use","uniqueKey":"voice_model","typeLabel":"string"},"voice_speed":{"type":"number","description":"Speech speed multiplier","uniqueKey":"voice_speed","typeLabel":"number"},"llm_model_name":{"type":"string","description":"Large language model to use","uniqueKey":"llm_model_name","typeLabel":"string"},"llm_model_temperature":{"type":"number","description":"Temperature setting for the LLM","uniqueKey":"llm_model_temperature","typeLabel":"number"},"stt_provider":{"type":"string","enum":["Deepgram"],"description":"Speech-to-text provider","uniqueKey":"stt_provider","typeLabel":"enum\u003cstring>"},"stt_model":{"type":"string","description":"Speech-to-text model","uniqueKey":"stt_model","typeLabel":"string"},"call_settings":{"type":"object","properties":{"max_call_duration":{"type":"integer","minimum":2,"maximum":30,"description":"Maximum call duration in minutes (2-30)","uniqueKey":"call_settings.max_call_duration","typeLabel":"integer"},"silence_timeout":{"type":"integer","minimum":5,"maximum":45,"description":"Silence timeout in seconds (5-45)","uniqueKey":"call_settings.silence_timeout","typeLabel":"integer"},"silence_timeout_max_retries":{"type":"integer","minimum":1,"maximum":5,"description":"Maximum retries for silence timeout (1-5)","uniqueKey":"call_settings.silence_timeout_max_retries","typeLabel":"integer"},"silence_timeout_message":{"type":"string","description":"Message to play when silence timeout occurs","uniqueKey":"call_settings.silence_timeout_message","typeLabel":"string"},"call_recording_enabled":{"type":"boolean","description":"Whether to record calls","uniqueKey":"call_settings.call_recording_enabled","typeLabel":"boolean"},"voicemail_detection_enabled":{"type":"boolean","description":"Whether to detect voicemail","uniqueKey":"call_settings.voicemail_detection_enabled","typeLabel":"boolean"},"voicemail_action":{"type":"string","enum":["leave_message","hangup"],"description":"Action to take when voicemail is detected. 'leave_message' will deliver a custom voicemail message, 'hangup' will end the call immediately.","uniqueKey":"call_settings.voicemail_action","typeLabel":"enum\u003cstring>"},"voicemail_message_type":{"type":"string","enum":["static","prompt"],"description":"Type of voicemail message. 'static' uses a fixed pre-written message, 'prompt' uses AI-generated messages based on conversation context.","uniqueKey":"call_settings.voicemail_message_type","typeLabel":"enum\u003cstring>"},"voicemail_message":{"type":"string","description":"The voicemail message content. Required when voicemail_action is 'leave_message'. For 'static' type, this is the exact message to be delivered. For 'prompt' type, this provides instructions to the AI.","uniqueKey":"call_settings.voicemail_message","typeLabel":"string"},"hipaa_compliance_enabled":{"type":"boolean","description":"Whether HIPAA compliance is enabled","uniqueKey":"call_settings.hipaa_compliance_enabled","typeLabel":"boolean"},"pci_compliance_enabled":{"type":"boolean","description":"Whether PCI compliance is enabled","uniqueKey":"call_settings.pci_compliance_enabled","typeLabel":"boolean"}},"uniqueKey":"call_settings","typeLabel":"object"},"advanced_settings":{"type":"object","properties":{"agent_personality":{"type":"string","enum":["casual","humorous","direct","formal","persuasive","friendly"],"description":"Personality type for the agent","uniqueKey":"advanced_settings.agent_personality","typeLabel":"enum\u003cstring>"},"humanize_conversation":{"type":"boolean","description":"Whether to humanize the conversation","uniqueKey":"advanced_settings.humanize_conversation","typeLabel":"boolean"},"background_noise_reduction":{"type":"boolean","description":"Whether to reduce background noise","uniqueKey":"advanced_settings.background_noise_reduction","typeLabel":"boolean"},"allow_interruptions":{"type":"boolean","description":"Whether to allow user interruptions","uniqueKey":"advanced_settings.allow_interruptions","typeLabel":"boolean"},"min_interruption_duration":{"type":"number","minimum":0.2,"maximum":5,"multipleOf":0.1,"description":"Minimum interruption duration in seconds (0.2-5, step 0.1)","uniqueKey":"advanced_settings.min_interruption_duration","typeLabel":"number"},"background_sound":{"type":"string","description":"Background sound to play","uniqueKey":"advanced_settings.background_sound","typeLabel":"string"},"agent_response_length":{"type":"string","enum":["normal","short","concise","long"],"description":"Preferred response length","uniqueKey":"advanced_settings.agent_response_length","typeLabel":"enum\u003cstring>"},"short_pause":{"type":"number","minimum":0.2,"maximum":2,"multipleOf":0.1,"description":"Short pause duration in seconds (0.2-2, step 0.1)","uniqueKey":"advanced_settings.short_pause","typeLabel":"number"},"long_pause":{"type":"number","minimum":0.5,"maximum":6,"multipleOf":0.1,"description":"Long pause duration in seconds (0.5-6, step 0.1)","uniqueKey":"advanced_settings.long_pause","typeLabel":"number"},"filter_phrases":{"type":"string","description":"Phrases to filter from speech","uniqueKey":"advanced_settings.filter_phrases","typeLabel":"string"}},"uniqueKey":"advanced_settings","typeLabel":"object"},"post_call_settings":{"type":"object","properties":{"summary_prompt":{"type":"string","description":"Prompt for generating call summary","uniqueKey":"post_call_settings.summary_prompt","typeLabel":"string"},"success_evaluation_prompt":{"type":"string","description":"Prompt for evaluating call success","uniqueKey":"post_call_settings.success_evaluation_prompt","typeLabel":"string"},"success_evaluation_rubric_type":{"type":"string","enum":["NUMERIC_SCALE","DESCRIPTIVE_SCALE","PERCENTAGE_SCALE","LIKERT_SCALE","PASS_FAIL","SENTIMENT"],"description":"Type of success evaluation rubric","uniqueKey":"post_call_settings.success_evaluation_rubric_type","typeLabel":"enum\u003cstring>"},"structured_extraction_prompt":{"type":"string","description":"Prompt for structured data extraction","uniqueKey":"post_call_settings.structured_extraction_prompt","typeLabel":"string"},"structured_extraction_json_schema":{"type":"object","description":"JSON schema for structured extraction","uniqueKey":"post_call_settings.structured_extraction_json_schema","typeLabel":"object"}},"uniqueKey":"post_call_settings","typeLabel":"object"}},"required":["name","prompt"],"uniqueKey":"","typeLabel":"object"},"example":{"name":"Customer Support Bot","prompt":"You are a helpful customer support assistant. Be polite, professional, and always try to resolve customer issues.","first_message":"Hello! I'm here to help you with any questions or concerns you may have. How can I assist you today?","knowledge_base_id":123,"voice_provider":"OpenAI","voice":"alloy","voice_model":"tts-1","voice_speed":1,"llm_model_name":"gpt-4","llm_model_temperature":0.7,"stt_provider":"Deepgram","stt_model":"nova-2","call_settings":{"max_call_duration":10,"silence_timeout":15,"silence_timeout_max_retries":3,"silence_timeout_message":"I didn't hear anything. Are you still there?","call_recording_enabled":true,"voicemail_detection_enabled":true,"voicemail_action":"leave_message","voicemail_message_type":"static","voicemail_message":"Hey, sorry we couldn't reach you directly. Please give us a callback if you can.","hipaa_compliance_enabled":false,"pci_compliance_enabled":false},"advanced_settings":{"agent_personality":"friendly","humanize_conversation":true,"background_noise_reduction":true,"allow_interruptions":true,"min_interruption_duration":0.5,"agent_response_length":"normal","short_pause":0.3,"long_pause":1},"post_call_settings":{"summary_prompt":"Provide a brief summary of the customer interaction and any action items.","success_evaluation_prompt":"Rate the success of this call on a scale of 1-10 based on customer satisfaction.","success_evaluation_rubric_type":"NUMERIC_SCALE"}},"examples":{"Example":{"title":"Example","value":{"name":"Customer Support Bot","prompt":"You are a helpful customer support assistant. Be polite, professional, and always try to resolve customer issues.","first_message":"Hello! I'm here to help you with any questions or concerns you may have. How can I assist you today?","knowledge_base_id":123,"voice_provider":"OpenAI","voice":"alloy","voice_model":"tts-1","voice_speed":1,"llm_model_name":"gpt-4","llm_model_temperature":0.7,"stt_provider":"Deepgram","stt_model":"nova-2","call_settings":{"max_call_duration":10,"silence_timeout":15,"silence_timeout_max_retries":3,"silence_timeout_message":"I didn't hear anything. Are you still there?","call_recording_enabled":true,"voicemail_detection_enabled":true,"voicemail_action":"leave_message","voicemail_message_type":"static","voicemail_message":"Hey, sorry we couldn't reach you directly. Please give us a callback if you can.","hipaa_compliance_enabled":false,"pci_compliance_enabled":false},"advanced_settings":{"agent_personality":"friendly","humanize_conversation":true,"background_noise_reduction":true,"allow_interruptions":true,"min_interruption_duration":0.5,"agent_response_length":"normal","short_pause":0.3,"long_pause":1},"post_call_settings":{"summary_prompt":"Provide a brief summary of the customer interaction and any action items.","success_evaluation_prompt":"Rate the success of this call on a scale of 1-10 based on customer satisfaction.","success_evaluation_rubric_type":"NUMERIC_SCALE"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"a89e7e57-5998-4b67-a30c-5387621a2900":{"description":"Bot created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the bot","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"name":{"type":"string","description":"Name of the bot","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"prompt":{"type":"string","description":"System prompt for the bot","isRequired":true,"uniqueKey":"prompt","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","description":"Bot creation timestamp","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"Bot last update timestamp","isRequired":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"first_message":{"type":"string","description":"Initial message the bot will send","uniqueKey":"first_message","typeLabel":"string"},"knowledge_base_id":{"type":"integer","description":"ID of the knowledge base","uniqueKey":"knowledge_base_id","typeLabel":"integer"},"voice_provider":{"type":"string","enum":["OpenAI","ElevenLabs","Deepgram"],"description":"Voice synthesis provider","uniqueKey":"voice_provider","typeLabel":"enum\u003cstring>"},"voice":{"type":"string","description":"Voice ID or name","uniqueKey":"voice","typeLabel":"string"},"voice_model":{"type":"string","description":"Voice model being used","uniqueKey":"voice_model","typeLabel":"string"},"voice_speed":{"type":"number","description":"Speech speed multiplier","uniqueKey":"voice_speed","typeLabel":"number"},"llm_model_name":{"type":"string","description":"Large language model being used","uniqueKey":"llm_model_name","typeLabel":"string"},"llm_model_temperature":{"type":"number","description":"Temperature setting for the LLM","uniqueKey":"llm_model_temperature","typeLabel":"number"},"stt_provider":{"type":"string","enum":["Deepgram"],"description":"Speech-to-text provider","uniqueKey":"stt_provider","typeLabel":"enum\u003cstring>"},"stt_model":{"type":"string","description":"Speech-to-text model","uniqueKey":"stt_model","typeLabel":"string"},"call_settings":{"type":"object","properties":{"max_call_duration":{"type":"integer","minimum":2,"maximum":30,"description":"Maximum call duration in minutes (2-30)","uniqueKey":"call_settings.max_call_duration","typeLabel":"integer"},"silence_timeout":{"type":"integer","minimum":5,"maximum":45,"description":"Silence timeout in seconds (5-45)","uniqueKey":"call_settings.silence_timeout","typeLabel":"integer"},"silence_timeout_max_retries":{"type":"integer","minimum":1,"maximum":5,"description":"Maximum retries for silence timeout (1-5)","uniqueKey":"call_settings.silence_timeout_max_retries","typeLabel":"integer"},"silence_timeout_message":{"type":"string","description":"Message to play when silence timeout occurs","uniqueKey":"call_settings.silence_timeout_message","typeLabel":"string"},"call_recording_enabled":{"type":"boolean","description":"Whether to record calls","uniqueKey":"call_settings.call_recording_enabled","typeLabel":"boolean"},"voicemail_detection_enabled":{"type":"boolean","description":"Whether to detect voicemail","uniqueKey":"call_settings.voicemail_detection_enabled","typeLabel":"boolean"},"voicemail_action":{"type":"string","enum":["leave_message","hangup"],"description":"Action to take when voicemail is detected. 'leave_message' will deliver a custom voicemail message, 'hangup' will end the call immediately.","uniqueKey":"call_settings.voicemail_action","typeLabel":"enum\u003cstring>"},"voicemail_message_type":{"type":"string","enum":["static","prompt"],"description":"Type of voicemail message. 'static' uses a fixed pre-written message, 'prompt' uses AI-generated messages based on conversation context.","uniqueKey":"call_settings.voicemail_message_type","typeLabel":"enum\u003cstring>"},"voicemail_message":{"type":"string","description":"The voicemail message content. Required when voicemail_action is 'leave_message'. For 'static' type, this is the exact message to be delivered. For 'prompt' type, this provides instructions to the AI.","uniqueKey":"call_settings.voicemail_message","typeLabel":"string"},"hipaa_compliance_enabled":{"type":"boolean","description":"Whether HIPAA compliance is enabled","uniqueKey":"call_settings.hipaa_compliance_enabled","typeLabel":"boolean"},"pci_compliance_enabled":{"type":"boolean","description":"Whether PCI compliance is enabled","uniqueKey":"call_settings.pci_compliance_enabled","typeLabel":"boolean"}},"uniqueKey":"call_settings","typeLabel":"object"},"advanced_settings":{"type":"object","properties":{"agent_personality":{"type":"string","enum":["casual","humorous","direct","formal","persuasive","friendly"],"description":"Personality type for the agent","uniqueKey":"advanced_settings.agent_personality","typeLabel":"enum\u003cstring>"},"humanize_conversation":{"type":"boolean","description":"Whether to humanize the conversation","uniqueKey":"advanced_settings.humanize_conversation","typeLabel":"boolean"},"background_noise_reduction":{"type":"boolean","description":"Whether to reduce background noise","uniqueKey":"advanced_settings.background_noise_reduction","typeLabel":"boolean"},"allow_interruptions":{"type":"boolean","description":"Whether to allow user interruptions","uniqueKey":"advanced_settings.allow_interruptions","typeLabel":"boolean"},"min_interruption_duration":{"type":"number","minimum":0.2,"maximum":5,"multipleOf":0.1,"description":"Minimum interruption duration in seconds (0.2-5, step 0.1)","uniqueKey":"advanced_settings.min_interruption_duration","typeLabel":"number"},"background_sound":{"type":"string","description":"Background sound to play","uniqueKey":"advanced_settings.background_sound","typeLabel":"string"},"agent_response_length":{"type":"string","enum":["normal","short","concise","long"],"description":"Preferred response length","uniqueKey":"advanced_settings.agent_response_length","typeLabel":"enum\u003cstring>"},"short_pause":{"type":"number","minimum":0.2,"maximum":2,"multipleOf":0.1,"description":"Short pause duration in seconds (0.2-2, step 0.1)","uniqueKey":"advanced_settings.short_pause","typeLabel":"number"},"long_pause":{"type":"number","minimum":0.5,"maximum":6,"multipleOf":0.1,"description":"Long pause duration in seconds (0.5-6, step 0.1)","uniqueKey":"advanced_settings.long_pause","typeLabel":"number"},"filter_phrases":{"type":"string","description":"Phrases to filter from speech","uniqueKey":"advanced_settings.filter_phrases","typeLabel":"string"}},"uniqueKey":"advanced_settings","typeLabel":"object"},"post_call_settings":{"type":"object","properties":{"summary_prompt":{"type":"string","description":"Prompt for generating call summary","uniqueKey":"post_call_settings.summary_prompt","typeLabel":"string"},"success_evaluation_prompt":{"type":"string","description":"Prompt for evaluating call success","uniqueKey":"post_call_settings.success_evaluation_prompt","typeLabel":"string"},"success_evaluation_rubric_type":{"type":"string","enum":["NUMERIC_SCALE","DESCRIPTIVE_SCALE","PERCENTAGE_SCALE","LIKERT_SCALE","PASS_FAIL","SENTIMENT"],"description":"Type of success evaluation rubric","uniqueKey":"post_call_settings.success_evaluation_rubric_type","typeLabel":"enum\u003cstring>"},"structured_extraction_prompt":{"type":"string","description":"Prompt for structured data extraction","uniqueKey":"post_call_settings.structured_extraction_prompt","typeLabel":"string"},"structured_extraction_json_schema":{"type":"object","description":"JSON schema for structured extraction","uniqueKey":"post_call_settings.structured_extraction_json_schema","typeLabel":"object"}},"uniqueKey":"post_call_settings","typeLabel":"object"}},"required":["id","name","prompt","created_at","updated_at"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","name":"\u003cstring>","prompt":"\u003cstring>","created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","first_message":"\u003cstring>","knowledge_base_id":123,"voice_provider":"OpenAI","voice":"\u003cstring>","voice_model":"\u003cstring>","voice_speed":123,"llm_model_name":"\u003cstring>","llm_model_temperature":123,"stt_provider":"Deepgram","stt_model":"\u003cstring>","call_settings":{"max_call_duration":16,"silence_timeout":25,"silence_timeout_max_retries":3,"silence_timeout_message":"\u003cstring>","call_recording_enabled":true,"voicemail_detection_enabled":true,"voicemail_action":"leave_message","voicemail_message_type":"static","voicemail_message":"\u003cstring>","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":"\u003cstring>","agent_response_length":"normal","short_pause":1.1,"long_pause":3.25,"filter_phrases":"\u003cstring>"},"post_call_settings":{"summary_prompt":"\u003cstring>","success_evaluation_prompt":"\u003cstring>","success_evaluation_rubric_type":"NUMERIC_SCALE","structured_extraction_prompt":"\u003cstring>","structured_extraction_json_schema":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"59f9671b-8c81-4b11-a0e5-d06d1986153d":{"description":"Bad request - validation error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Additional error message (for certain error types)","uniqueKey":"message","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"example":{"error":"Invalid request format, please check API reference."},"examples":{"Example":{"title":"Example","value":{"error":"Invalid request format, please check API reference."}}},"exampleType":"examples"}},"exampleType":"examples"},"03f7b4be-ad4f-4508-9de7-5159f5c7c1f5":{"description":"Unauthorized - missing or invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Additional error message (for certain error types)","uniqueKey":"message","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"example":{"error":"Unauthorized","message":"Invalid or expired API key"},"examples":{"Example":{"title":"Example","value":{"error":"Unauthorized","message":"Invalid or expired API key"}}},"exampleType":"examples"}},"exampleType":"examples"},"fc16f2cc-e38b-4380-b277-1819b1144443":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Additional error message (for certain error types)","uniqueKey":"message","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"example":{"error":"An unexpected error occurred. Please try again later."},"examples":{"Example":{"title":"Example","value":{"error":"An unexpected error occurred. Please try again later."}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"1b943688-92e2-44a0-92b2-d313600fec16":{"api_key":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API key authentication. Include your secret API key (`omic_...`) in the Authorization header as: `Authorization: Bearer \u003cyour-api-key>`. The public key (`omic_pub_...`) is only accepted by the endpoints the browser widgets call (`/whoami`, `/test-call`, `/workflow-test-call`, and the chat endpoints); every other endpoint rejects it with `403 This endpoint requires a private API key`.","scopes":[],"schemeName":"api_key"}}},"servers":{"1fa2ac88-0ccc-4f66-9b5e-a6dfd79bc76e":{"url":"https://api.openmic.ai","description":"Production Environment"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API key authentication. Include your secret API key (`omic_...`) in the Authorization header as: `Authorization: Bearer \u003cyour-api-key>`. The public key (`omic_pub_...`) is only accepted by the endpoints the browser widgets call (`/whoami`, `/test-call`, `/workflow-test-call`, and the chat endpoints); every other endpoint rejects it with `403 This endpoint requires a private API key`.","scopes":[],"schemeName":"api_key"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API key authentication. Include your secret API key (`omic_...`) in the Authorization header as: `Authorization: Bearer \u003cyour-api-key>`. The public key (`omic_pub_...`) is only accepted by the endpoints the browser widgets call (`/whoami`, `/test-call`, `/workflow-test-call`, and the chat endpoints); every other endpoint rejects it with `403 This endpoint requires a private API key`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"api_key","name":"Authorization"}],"title":"api_key"}]},"originalFileLocation":"OpenMic.json"},"subdomain":"openmic-ea75a20d","siteName":"OpenMic","title":"Create Bot - OpenMic","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-28T16:29:12.269Z","originalFileLocation":"api-reference/bots/create-bot.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a new bot with specified configuration.\">\u003cmeta data-mint-head name=\"application-name\" content=\"OpenMic\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/openmic-ea75a20d/cAbsg8MHY5kcb3Mz/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/openmic-ea75a20d/cAbsg8MHY5kcb3Mz/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/openmic-ea75a20d/cAbsg8MHY5kcb3Mz/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/openmic-ea75a20d/cAbsg8MHY5kcb3Mz/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/openmic-ea75a20d/cAbsg8MHY5kcb3Mz/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/openmic-ea75a20d/cAbsg8MHY5kcb3Mz/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/openmic-ea75a20d/cAbsg8MHY5kcb3Mz/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/openmic-ea75a20d/cAbsg8MHY5kcb3Mz/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/openmic-ea75a20d/cAbsg8MHY5kcb3Mz/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Bot - OpenMic\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new bot with specified configuration.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OpenMic\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.openmic.ai/api-reference/bots/create-bot\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://openmic-ea75a20d.mintlify.app/_mintlify/api/og/v2?division=Bots\u0026amp;title=Create+Bot\u0026amp;description=Create+a+new+bot+with+specified+configuration.\u0026amp;theme=2fda07862c213e343a9d1cc3\u0026amp;signature=dabf73dcb501498d13f422734388c796ac980b649199324cbf85891aa87803de\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Bot - OpenMic\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new bot with specified configuration.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://openmic-ea75a20d.mintlify.app/_mintlify/api/og/v2?division=Bots\u0026amp;title=Create+Bot\u0026amp;description=Create+a+new+bot+with+specified+configuration.\u0026amp;theme=2fda07862c213e343a9d1cc3\u0026amp;signature=dabf73dcb501498d13f422734388c796ac980b649199324cbf85891aa87803de\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/openmic-ea75a20d/cAbsg8MHY5kcb3Mz/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OpenMic\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7C3AED\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.openmic.ai/api-reference/bots/create-bot\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/bots/create-bot.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.openmic.ai/#organization\",\"name\":\"OpenMic\",\"url\":\"https://docs.openmic.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/openmic-ea75a20d/zvTwGm0WP3eu7xLT/images/openmic-light-logo.svg?fit=max\u0026auto=format\u0026n=zvTwGm0WP3eu7xLT\u0026q=85\u0026s=4b1800ec8b4fa160ce7a3123c9b87e75\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.openmic.ai#website\",\"name\":\"OpenMic\",\"url\":\"https://docs.openmic.ai\",\"publisher\":{\"@id\":\"https://docs.openmic.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.openmic.ai/api-reference/bots/create-bot#webpage\",\"url\":\"https://docs.openmic.ai/api-reference/bots/create-bot\",\"name\":\"Create Bot\",\"description\":\"Create a new bot with specified configuration.\",\"dateModified\":\"2026-01-28T16:29:12.269Z\",\"isPartOf\":{\"@id\":\"https://docs.openmic.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.openmic.ai/api-reference/bots/create-bot#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.openmic.ai/api-reference/bots/create-bot#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Legacy\",\"item\":\"https://docs.openmic.ai/api-reference/calls/create-call\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bots\",\"item\":\"https://docs.openmic.ai/api-reference/bots/list-bots\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create Bot\",\"item\":\"https://docs.openmic.ai/api-reference/bots/create-bot\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.openmic.ai/api-reference/bots/create-bot#apireference\",\"headline\":\"Create Bot\",\"name\":\"Create Bot\",\"description\":\"Create a new bot with specified configuration.\",\"url\":\"https://docs.openmic.ai/api-reference/bots/create-bot\",\"mainEntityOfPage\":{\"@id\":\"https://docs.openmic.ai/api-reference/bots/create-bot#webpage\"},\"dateModified\":\"2026-01-28T16:29:12.269Z\",\"publisher\":{\"@id\":\"https://docs.openmic.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.openmic.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OpenMic\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"OpenMic","nav":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"https://docs.openmic.ai"},{"anchor":"Community","icon":"slack","href":"https://join.slack.com/t/openmicai/shared_invite/zt-2ha8kt9pt-jaElinNxF4VgN5gyCC6spg"},{"anchor":"Blog","icon":"newspaper","href":"https://openmic.ai/blog"},{"anchor":"Pricing","icon":"dollar-sign","href":"https://www.openmic.ai/pricing"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"V2","pages":[{"group":"Auth","pages":[{"openapi":"get /v2/whoami","title":"Get current user info","href":"/api-reference-v2/auth/whoami"}]},{"group":"Agents","pages":[{"openapi":"get /v2/agents","title":"List agents","href":"/api-reference-v2/agents/list-agents"},{"openapi":"post /v2/agents","title":"Create an agent","href":"/api-reference-v2/agents/create-agent"},{"openapi":"get /v2/agents/{uid}","title":"Get an agent","href":"/api-reference-v2/agents/get-agent"},{"openapi":"patch /v2/agents/{uid}","title":"Update an agent","href":"/api-reference-v2/agents/update-agent"},{"openapi":"delete /v2/agents/{uid}","title":"Delete an agent","href":"/api-reference-v2/agents/delete-agent"}]},{"group":"Calls","pages":[{"openapi":"post /v2/create-phone-call","title":"Create an outbound phone call","href":"/api-reference-v2/calls/create-call"},{"openapi":"get /v2/calls","title":"List calls","href":"/api-reference-v2/calls/list-calls"},{"openapi":"get /v2/call/{id}","title":"Get a call","href":"/api-reference-v2/calls/get-call"}]},{"group":"Phone Numbers","pages":[{"openapi":"get /v2/phone-numbers","title":"List phone numbers","href":"/api-reference-v2/phone-numbers/list-numbers"},{"openapi":"get /v2/phone-numbers/{phone_number_id}","title":"Get a phone number","href":"/api-reference-v2/phone-numbers/get-number"},{"openapi":"post /v2/phone-numbers/link-agent","title":"Link an agent to a phone number","href":"/api-reference-v2/phone-numbers/link-bot"},{"openapi":"post /v2/phone-numbers/unlink-agent","title":"Unlink an agent from a phone number","href":"/api-reference-v2/phone-numbers/unlink-bot"}]},{"group":"Tools","pages":[{"openapi":"get /v2/agents/{agent_uid}/tools","title":"List tools for an agent","href":"/api-reference-v2/tools/list-tools"},{"openapi":"post /v2/agents/{agent_uid}/tools","title":"Create a tool for an agent","href":"/api-reference-v2/tools/create-tool"},{"openapi":"get /v2/agents/{agent_uid}/tools/{tool_id}","title":"Get a tool","href":"/api-reference-v2/tools/get-tool"},{"openapi":"patch /v2/agents/{agent_uid}/tools/{tool_id}","title":"Update a tool","href":"/api-reference-v2/tools/update-tool"},{"openapi":"delete /v2/agents/{agent_uid}/tools/{tool_id}","title":"Delete a tool","href":"/api-reference-v2/tools/delete-tool"},{"title":"Send SMS Static Params","href":"/api-reference-v2/tools/send-sms-static-params"},{"title":"Transfer Call Static Params","href":"/api-reference-v2/tools/transfer-call-static-params"}]},{"group":"Contact Lists","pages":[{"openapi":"get /v2/contact-lists","title":"List contact lists","href":"/api-reference-v2/contact-lists/list-contact-lists"},{"openapi":"post /v2/contact-lists","title":"Create a contact list","href":"/api-reference-v2/contact-lists/create-contact-list"},{"openapi":"get /v2/contact-lists/{contact_list_id}","title":"Get a contact list","href":"/api-reference-v2/contact-lists/get-contact-list"},{"openapi":"patch /v2/contact-lists/{contact_list_id}","title":"Update a contact list","href":"/api-reference-v2/contact-lists/update-contact-list"},{"openapi":"delete /v2/contact-lists/{contact_list_id}","title":"Delete a contact list","href":"/api-reference-v2/contact-lists/delete-contact-list"},{"openapi":"get /v2/contact-lists/{contact_list_id}/contacts","title":"List contacts in a list","href":"/api-reference-v2/contacts/list-contacts"},{"openapi":"post /v2/contact-lists/{contact_list_id}/contacts","title":"Add a contact","href":"/api-reference-v2/contacts/create-contact"},{"openapi":"post /v2/contact-lists/{contact_list_id}/contacts/bulk","title":"Bulk add contacts","href":"/api-reference-v2/contacts/create-contacts-bulk"},{"openapi":"patch /v2/contact-lists/{contact_list_id}/contacts/{contact_id}","title":"Update a contact","href":"/api-reference-v2/contacts/update-contact"},{"openapi":"delete /v2/contact-lists/{contact_list_id}/contacts","title":"Delete contacts from a list","href":"/api-reference-v2/contacts/delete-contacts"}]},{"group":"Campaigns","pages":[{"openapi":"get /v2/campaigns","title":"List campaigns","href":"/api-reference-v2/campaigns/list-campaigns"},{"openapi":"post /v2/campaigns","title":"Create a campaign","href":"/api-reference-v2/campaigns/create-campaign"},{"openapi":"get /v2/campaigns/{campaign_id}","title":"Get a campaign","href":"/api-reference-v2/campaigns/get-campaign"},{"openapi":"patch /v2/campaigns/{campaign_id}","title":"Update a campaign","href":"/api-reference-v2/campaigns/update-campaign"},{"openapi":"delete /v2/campaigns/{campaign_id}","title":"Delete a campaign","href":"/api-reference-v2/campaigns/delete-campaign"}]},{"group":"SMS","pages":[{"openapi":"post /v2/send-sms","title":"Send SMS","href":"/api-reference-v2/sms/send-sms"},{"openapi":"get /v2/sms-logs","title":"List SMS logs","href":"/api-reference-v2/sms/list-sms-logs"},{"openapi":"get /v2/sms-logs/{sms_log_id}","title":"Get an SMS log","href":"/api-reference-v2/sms/get-sms-log"}]},{"group":"Usage","pages":[{"openapi":"get /v2/usage","title":"Get usage","href":"/api-reference-v2/usage/get-usage"}]},{"group":"Voices","pages":[{"openapi":"get /v2/voices","title":"List voices","href":"/api-reference-v2/voices/list-voices"},{"openapi":"get /v2/voices/{voice_id}","title":"Get a voice","href":"/api-reference-v2/voices/get-voice"}]}]},{"group":"Legacy","pages":[{"group":"Calls","pages":[{"openapi":"post /v1/create-phone-call","title":"Create Phone Call","href":"/api-reference/calls/create-call"},{"openapi":"get /v1/calls","title":"List Calls","href":"/api-reference/calls/list-calls"},{"openapi":"get /v1/call/{id}","title":"Get Call","href":"/api-reference/calls/get-call"}]},{"group":"Bots","pages":[{"openapi":"get /v1/bots","title":"List Bots","description":"Retrieve all bots with optional filtering and pagination.","href":"/api-reference/bots/list-bots"},{"openapi":"post /v1/bots","title":"Create Bot","href":"/api-reference/bots/create-bot"},{"openapi":"get /v1/bots/{uid}","title":"Get Bot","description":"Retrieve details of a specific bot by its UID.","href":"/api-reference/bots/get-bot"},{"openapi":"patch /v1/bots/{uid}","title":"Update Bot","href":"/api-reference/bots/update-bot"},{"openapi":"delete /v1/bots/{uid}","title":"Delete Bot","href":"/api-reference/bots/delete-bot"}]},{"group":"Tools","pages":[{"openapi":"get /v1/bots/{bot_uid}/tools","title":"List Tools","href":"/api-reference/tools/list-tools"},{"openapi":"post /v1/bots/{bot_uid}/tools","title":"Create Tool","href":"/api-reference/tools/create-tool"},{"openapi":"get /v1/bots/{bot_uid}/tools/{tool_id}","title":"Get Tool","href":"/api-reference/tools/get-tool"},{"openapi":"patch /v1/bots/{bot_uid}/tools/{tool_id}","title":"Update Tool","href":"/api-reference/tools/update-tool"},{"openapi":"delete /v1/bots/{bot_uid}/tools/{tool_id}","title":"Delete Tool","href":"/api-reference/tools/delete-tool"}]},{"group":"Phone Numbers","pages":[{"openapi":"get /v1/phone-numbers","title":"List Phone Numbers","href":"/api-reference/phone-numbers/list-numbers"},{"openapi":"get /v1/phone-numbers/{uid}","title":"Get Phone Number","href":"/api-reference/phone-numbers/get-number"},{"openapi":"post /v1/phone-numbers/link-agent","title":"Link Bot to Phone Number","href":"/api-reference/phone-numbers/link-bot"},{"openapi":"post /v1/phone-numbers/unlink-agent","title":"Unlink Bot from Phone Number","href":"/api-reference/phone-numbers/unlink-bot"}]},{"group":"Contact Lists","pages":[{"openapi":"get /v1/contact-lists","title":"List contact lists","href":"/api-reference/contact-lists/list-contact-lists"},{"openapi":"post /v1/contact-lists","title":"Create a contact list","href":"/api-reference/contact-lists/create-contact-list"},{"openapi":"get /v1/contact-lists/{contact_list_id}","title":"Get a contact list","href":"/api-reference/contact-lists/get-contact-list"},{"openapi":"patch /v1/contact-lists/{contact_list_id}","title":"Update a contact list","href":"/api-reference/contact-lists/update-contact-list"},{"openapi":"delete /v1/contact-lists/{contact_list_id}","title":"Delete a contact list","href":"/api-reference/contact-lists/delete-contact-list"}]},{"group":"Contacts","pages":[{"openapi":"get /v1/contact-lists/{contact_list_id}/contacts","title":"List contacts in a contact list","href":"/api-reference/contacts/list-contacts"},{"openapi":"post /v1/contact-lists/{contact_list_id}/contacts","title":"Add a single contact to a contact list","href":"/api-reference/contacts/create-contact"},{"openapi":"post /v1/contact-lists/{contact_list_id}/contacts/bulk","title":"Bulk add contacts to a contact list","href":"/api-reference/contacts/create-contacts-bulk"},{"openapi":"patch /v1/contact-lists/{contact_list_id}/contacts/{contact_id}","title":"Update a contact","href":"/api-reference/contacts/update-contact"},{"openapi":"delete /v1/contact-lists/{contact_list_id}/contacts","title":"Delete contacts from a contact list","href":"/api-reference/contacts/delete-contacts"}]},{"group":"Campaigns","pages":[{"openapi":"get /v1/campaigns","title":"List campaigns","href":"/api-reference/campaigns/list-campaigns"},{"openapi":"post /v1/campaigns","title":"Create a campaign","href":"/api-reference/campaigns/create-campaign"},{"openapi":"get /v1/campaigns/{campaign_id}","title":"Get a campaign","href":"/api-reference/campaigns/get-campaign"},{"openapi":"patch /v1/campaigns/{campaign_id}","title":"Update a campaign","href":"/api-reference/campaigns/update-campaign"},{"openapi":"delete /v1/campaigns/{campaign_id}","title":"Delete a campaign","href":"/api-reference/campaigns/delete-campaign"}]},{"group":"Voices","pages":[{"openapi":"get /v1/voices","title":"List Voices","href":"/api-reference/voices/list-voices"},{"openapi":"get /v1/voices/{voice_id}","title":"Get Voice","href":"/api-reference/voices/get-voice"}]}]}]},{"tab":"Tutorials","pages":[{"title":"Tutorials","href":"/tutorials/features/warm-call-transfer"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Create Bot - OpenMic","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}