cURL
curl --request PUT \
--url 'https://api.qcall.ai/api/v1/user/updateAssistant?id={id}' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data @- <<EOF
{
"name": "<string>",
"company_name": "<string>",
"accent": "<string>",
"goal": "<string>",
"start_speech": "<string>",
"voice_id": "<string>",
"voice_name": "<string>",
"script": "<string>",
"maximum_time_per_call": 123,
"is_voice_note": true,
"voice_note": "<string>",
"ai_model_id": "1",
"sentiment": {
"general_prompt": "<string>",
"positive_prompt": "<string>",
"negative_prompt": "<string>",
"neutral_prompt": "<string>"
},
"ai_modal": "<string>",
"opt_out_script": "If a user explicitly expresses that they no longer wish to receive calls, such as by saying 'Don't call me again,' 'I'm not interested,' or any similar phrase indicating that they want to opt out of future communications, please trigger the 'optOut' function and inform the user that they will no longer be contacted for calls.",
"meeting_note_prompt": "<string>",
"call_outcome_prompt": "<string>",
"actions": [
{
"meetingType": "openBooking",
"timezone": "<string>",
"startDate": "<string>",
"description": "<string>",
"say": "<string>",
"length": 123,
"prompt": "<string>",
"startTime": "<string>",
"endTime": "<string>",
"bookingDays": "<string>",
"sms": {
"is_sms": true,
"description": "<string>",
"content": "<string>",
"end_call_sms": true,
"end_call_sms_not_answered": true
},
"whatsapp": {
"is_whatsapp": true,
"description": "<string>",
"content": {},
"end_call_sms": true,
"end_call_sms_not_answered": true
},
"zeplo": {
"is_zeplo": true,
"description": "<string>",
"content": {
"templateName": "<string>",
"language": "en_US",
"parameter_hints": [
"<string>"
],
"parameter_slots": [
{
"index": 123,
"sub_index": 123,
"label": "<string>"
}
],
"components": [
"<unknown>"
]
},
"end_call_sms": true,
"end_call_sms_not_answered": true
}
}
],
"zapier_hook": "<string>",
"knowledge_base_Id": "<string>",
"is_recording": true,
"generate_call_flow": true,
"is_start_speech_update": true,
"company_website": "<string>",
"eleven_lab_modal": "<string>",
"voice_data": {
"voice_id": "<string>",
"name": "<string>",
"category": "<string>",
"labels": {
"language": "<string>",
"language_name": "<string>",
"gender": "<string>",
"accent": "<string>"
},
"preview_url": "<string>",
"reference_text": "<string>",
"is_native": true,
"categories": [
"<string>"
],
"source": "<string>",
"id": "<string>",
"displayname": "<string>",
"ai_modal": "<string>",
"language": "<string>",
"language_name": "<string>",
"similarity": 123,
"stability": 123
},
"stability": 123,
"similarity": 123,
"style_exaggeration": 123,
"speaker_boost": true,
"safety_fallback_delay": 123,
"enable_delay": true,
"is_call_flow": true,
"call_flow": {},
"background_type": "<string>",
"background_volume": 123,
"end_call_message": "<string>",
"wait_max_interval": 123,
"set_transcription_start_time": 123,
"widget_config": {
"api_key": "<string>",
"enabled": true,
"uiStyle": "<string>",
"position": "<string>",
"containerId": "<string>"
}
}
EOFimport requests
url = "https://api.qcall.ai/api/v1/user/updateAssistant?id={id}"
payload = {
"name": "<string>",
"company_name": "<string>",
"accent": "<string>",
"goal": "<string>",
"start_speech": "<string>",
"voice_id": "<string>",
"voice_name": "<string>",
"script": "<string>",
"maximum_time_per_call": 123,
"is_voice_note": True,
"voice_note": "<string>",
"ai_model_id": "1",
"sentiment": {
"general_prompt": "<string>",
"positive_prompt": "<string>",
"negative_prompt": "<string>",
"neutral_prompt": "<string>"
},
"ai_modal": "<string>",
"opt_out_script": "If a user explicitly expresses that they no longer wish to receive calls, such as by saying 'Don't call me again,' 'I'm not interested,' or any similar phrase indicating that they want to opt out of future communications, please trigger the 'optOut' function and inform the user that they will no longer be contacted for calls.",
"meeting_note_prompt": "<string>",
"call_outcome_prompt": "<string>",
"actions": [
{
"meetingType": "openBooking",
"timezone": "<string>",
"startDate": "<string>",
"description": "<string>",
"say": "<string>",
"length": 123,
"prompt": "<string>",
"startTime": "<string>",
"endTime": "<string>",
"bookingDays": "<string>",
"sms": {
"is_sms": True,
"description": "<string>",
"content": "<string>",
"end_call_sms": True,
"end_call_sms_not_answered": True
},
"whatsapp": {
"is_whatsapp": True,
"description": "<string>",
"content": {},
"end_call_sms": True,
"end_call_sms_not_answered": True
},
"zeplo": {
"is_zeplo": True,
"description": "<string>",
"content": {
"templateName": "<string>",
"language": "en_US",
"parameter_hints": ["<string>"],
"parameter_slots": [
{
"index": 123,
"sub_index": 123,
"label": "<string>"
}
],
"components": ["<unknown>"]
},
"end_call_sms": True,
"end_call_sms_not_answered": True
}
}
],
"zapier_hook": "<string>",
"knowledge_base_Id": "<string>",
"is_recording": True,
"generate_call_flow": True,
"is_start_speech_update": True,
"company_website": "<string>",
"eleven_lab_modal": "<string>",
"voice_data": {
"voice_id": "<string>",
"name": "<string>",
"category": "<string>",
"labels": {
"language": "<string>",
"language_name": "<string>",
"gender": "<string>",
"accent": "<string>"
},
"preview_url": "<string>",
"reference_text": "<string>",
"is_native": True,
"categories": ["<string>"],
"source": "<string>",
"id": "<string>",
"displayname": "<string>",
"ai_modal": "<string>",
"language": "<string>",
"language_name": "<string>",
"similarity": 123,
"stability": 123
},
"stability": 123,
"similarity": 123,
"style_exaggeration": 123,
"speaker_boost": True,
"safety_fallback_delay": 123,
"enable_delay": True,
"is_call_flow": True,
"call_flow": {},
"background_type": "<string>",
"background_volume": 123,
"end_call_message": "<string>",
"wait_max_interval": 123,
"set_transcription_start_time": 123,
"widget_config": {
"api_key": "<string>",
"enabled": True,
"uiStyle": "<string>",
"position": "<string>",
"containerId": "<string>"
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
company_name: '<string>',
accent: '<string>',
goal: '<string>',
start_speech: '<string>',
voice_id: '<string>',
voice_name: '<string>',
script: '<string>',
maximum_time_per_call: 123,
is_voice_note: true,
voice_note: '<string>',
ai_model_id: '1',
sentiment: {
general_prompt: '<string>',
positive_prompt: '<string>',
negative_prompt: '<string>',
neutral_prompt: '<string>'
},
ai_modal: '<string>',
opt_out_script: 'If a user explicitly expresses that they no longer wish to receive calls, such as by saying \'Don\'t call me again,\' \'I\'m not interested,\' or any similar phrase indicating that they want to opt out of future communications, please trigger the \'optOut\' function and inform the user that they will no longer be contacted for calls.',
meeting_note_prompt: '<string>',
call_outcome_prompt: '<string>',
actions: [
{
meetingType: 'openBooking',
timezone: '<string>',
startDate: '<string>',
description: '<string>',
say: '<string>',
length: 123,
prompt: '<string>',
startTime: '<string>',
endTime: '<string>',
bookingDays: '<string>',
sms: {
is_sms: true,
description: '<string>',
content: '<string>',
end_call_sms: true,
end_call_sms_not_answered: true
},
whatsapp: {
is_whatsapp: true,
description: '<string>',
content: {},
end_call_sms: true,
end_call_sms_not_answered: true
},
zeplo: {
is_zeplo: true,
description: '<string>',
content: {
templateName: '<string>',
language: 'en_US',
parameter_hints: ['<string>'],
parameter_slots: [{index: 123, sub_index: 123, label: '<string>'}],
components: ['<unknown>']
},
end_call_sms: true,
end_call_sms_not_answered: true
}
}
],
zapier_hook: '<string>',
knowledge_base_Id: '<string>',
is_recording: true,
generate_call_flow: true,
is_start_speech_update: true,
company_website: '<string>',
eleven_lab_modal: '<string>',
voice_data: {
voice_id: '<string>',
name: '<string>',
category: '<string>',
labels: {
language: '<string>',
language_name: '<string>',
gender: '<string>',
accent: '<string>'
},
preview_url: '<string>',
reference_text: '<string>',
is_native: true,
categories: ['<string>'],
source: '<string>',
id: '<string>',
displayname: '<string>',
ai_modal: '<string>',
language: '<string>',
language_name: '<string>',
similarity: 123,
stability: 123
},
stability: 123,
similarity: 123,
style_exaggeration: 123,
speaker_boost: true,
safety_fallback_delay: 123,
enable_delay: true,
is_call_flow: true,
call_flow: {},
background_type: '<string>',
background_volume: 123,
end_call_message: '<string>',
wait_max_interval: 123,
set_transcription_start_time: 123,
widget_config: {
api_key: '<string>',
enabled: true,
uiStyle: '<string>',
position: '<string>',
containerId: '<string>'
}
})
};
fetch('https://api.qcall.ai/api/v1/user/updateAssistant?id={id}', 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.qcall.ai/api/v1/user/updateAssistant?id={id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'company_name' => '<string>',
'accent' => '<string>',
'goal' => '<string>',
'start_speech' => '<string>',
'voice_id' => '<string>',
'voice_name' => '<string>',
'script' => '<string>',
'maximum_time_per_call' => 123,
'is_voice_note' => true,
'voice_note' => '<string>',
'ai_model_id' => '1',
'sentiment' => [
'general_prompt' => '<string>',
'positive_prompt' => '<string>',
'negative_prompt' => '<string>',
'neutral_prompt' => '<string>'
],
'ai_modal' => '<string>',
'opt_out_script' => 'If a user explicitly expresses that they no longer wish to receive calls, such as by saying \'Don\'t call me again,\' \'I\'m not interested,\' or any similar phrase indicating that they want to opt out of future communications, please trigger the \'optOut\' function and inform the user that they will no longer be contacted for calls.',
'meeting_note_prompt' => '<string>',
'call_outcome_prompt' => '<string>',
'actions' => [
[
'meetingType' => 'openBooking',
'timezone' => '<string>',
'startDate' => '<string>',
'description' => '<string>',
'say' => '<string>',
'length' => 123,
'prompt' => '<string>',
'startTime' => '<string>',
'endTime' => '<string>',
'bookingDays' => '<string>',
'sms' => [
'is_sms' => true,
'description' => '<string>',
'content' => '<string>',
'end_call_sms' => true,
'end_call_sms_not_answered' => true
],
'whatsapp' => [
'is_whatsapp' => true,
'description' => '<string>',
'content' => [
],
'end_call_sms' => true,
'end_call_sms_not_answered' => true
],
'zeplo' => [
'is_zeplo' => true,
'description' => '<string>',
'content' => [
'templateName' => '<string>',
'language' => 'en_US',
'parameter_hints' => [
'<string>'
],
'parameter_slots' => [
[
'index' => 123,
'sub_index' => 123,
'label' => '<string>'
]
],
'components' => [
'<unknown>'
]
],
'end_call_sms' => true,
'end_call_sms_not_answered' => true
]
]
],
'zapier_hook' => '<string>',
'knowledge_base_Id' => '<string>',
'is_recording' => true,
'generate_call_flow' => true,
'is_start_speech_update' => true,
'company_website' => '<string>',
'eleven_lab_modal' => '<string>',
'voice_data' => [
'voice_id' => '<string>',
'name' => '<string>',
'category' => '<string>',
'labels' => [
'language' => '<string>',
'language_name' => '<string>',
'gender' => '<string>',
'accent' => '<string>'
],
'preview_url' => '<string>',
'reference_text' => '<string>',
'is_native' => true,
'categories' => [
'<string>'
],
'source' => '<string>',
'id' => '<string>',
'displayname' => '<string>',
'ai_modal' => '<string>',
'language' => '<string>',
'language_name' => '<string>',
'similarity' => 123,
'stability' => 123
],
'stability' => 123,
'similarity' => 123,
'style_exaggeration' => 123,
'speaker_boost' => true,
'safety_fallback_delay' => 123,
'enable_delay' => true,
'is_call_flow' => true,
'call_flow' => [
],
'background_type' => '<string>',
'background_volume' => 123,
'end_call_message' => '<string>',
'wait_max_interval' => 123,
'set_transcription_start_time' => 123,
'widget_config' => [
'api_key' => '<string>',
'enabled' => true,
'uiStyle' => '<string>',
'position' => '<string>',
'containerId' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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.qcall.ai/api/v1/user/updateAssistant?id={id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"accent\": \"<string>\",\n \"goal\": \"<string>\",\n \"start_speech\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"voice_name\": \"<string>\",\n \"script\": \"<string>\",\n \"maximum_time_per_call\": 123,\n \"is_voice_note\": true,\n \"voice_note\": \"<string>\",\n \"ai_model_id\": \"1\",\n \"sentiment\": {\n \"general_prompt\": \"<string>\",\n \"positive_prompt\": \"<string>\",\n \"negative_prompt\": \"<string>\",\n \"neutral_prompt\": \"<string>\"\n },\n \"ai_modal\": \"<string>\",\n \"opt_out_script\": \"If a user explicitly expresses that they no longer wish to receive calls, such as by saying 'Don't call me again,' 'I'm not interested,' or any similar phrase indicating that they want to opt out of future communications, please trigger the 'optOut' function and inform the user that they will no longer be contacted for calls.\",\n \"meeting_note_prompt\": \"<string>\",\n \"call_outcome_prompt\": \"<string>\",\n \"actions\": [\n {\n \"meetingType\": \"openBooking\",\n \"timezone\": \"<string>\",\n \"startDate\": \"<string>\",\n \"description\": \"<string>\",\n \"say\": \"<string>\",\n \"length\": 123,\n \"prompt\": \"<string>\",\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"bookingDays\": \"<string>\",\n \"sms\": {\n \"is_sms\": true,\n \"description\": \"<string>\",\n \"content\": \"<string>\",\n \"end_call_sms\": true,\n \"end_call_sms_not_answered\": true\n },\n \"whatsapp\": {\n \"is_whatsapp\": true,\n \"description\": \"<string>\",\n \"content\": {},\n \"end_call_sms\": true,\n \"end_call_sms_not_answered\": true\n },\n \"zeplo\": {\n \"is_zeplo\": true,\n \"description\": \"<string>\",\n \"content\": {\n \"templateName\": \"<string>\",\n \"language\": \"en_US\",\n \"parameter_hints\": [\n \"<string>\"\n ],\n \"parameter_slots\": [\n {\n \"index\": 123,\n \"sub_index\": 123,\n \"label\": \"<string>\"\n }\n ],\n \"components\": [\n \"<unknown>\"\n ]\n },\n \"end_call_sms\": true,\n \"end_call_sms_not_answered\": true\n }\n }\n ],\n \"zapier_hook\": \"<string>\",\n \"knowledge_base_Id\": \"<string>\",\n \"is_recording\": true,\n \"generate_call_flow\": true,\n \"is_start_speech_update\": true,\n \"company_website\": \"<string>\",\n \"eleven_lab_modal\": \"<string>\",\n \"voice_data\": {\n \"voice_id\": \"<string>\",\n \"name\": \"<string>\",\n \"category\": \"<string>\",\n \"labels\": {\n \"language\": \"<string>\",\n \"language_name\": \"<string>\",\n \"gender\": \"<string>\",\n \"accent\": \"<string>\"\n },\n \"preview_url\": \"<string>\",\n \"reference_text\": \"<string>\",\n \"is_native\": true,\n \"categories\": [\n \"<string>\"\n ],\n \"source\": \"<string>\",\n \"id\": \"<string>\",\n \"displayname\": \"<string>\",\n \"ai_modal\": \"<string>\",\n \"language\": \"<string>\",\n \"language_name\": \"<string>\",\n \"similarity\": 123,\n \"stability\": 123\n },\n \"stability\": 123,\n \"similarity\": 123,\n \"style_exaggeration\": 123,\n \"speaker_boost\": true,\n \"safety_fallback_delay\": 123,\n \"enable_delay\": true,\n \"is_call_flow\": true,\n \"call_flow\": {},\n \"background_type\": \"<string>\",\n \"background_volume\": 123,\n \"end_call_message\": \"<string>\",\n \"wait_max_interval\": 123,\n \"set_transcription_start_time\": 123,\n \"widget_config\": {\n \"api_key\": \"<string>\",\n \"enabled\": true,\n \"uiStyle\": \"<string>\",\n \"position\": \"<string>\",\n \"containerId\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.put("https://api.qcall.ai/api/v1/user/updateAssistant?id={id}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"accent\": \"<string>\",\n \"goal\": \"<string>\",\n \"start_speech\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"voice_name\": \"<string>\",\n \"script\": \"<string>\",\n \"maximum_time_per_call\": 123,\n \"is_voice_note\": true,\n \"voice_note\": \"<string>\",\n \"ai_model_id\": \"1\",\n \"sentiment\": {\n \"general_prompt\": \"<string>\",\n \"positive_prompt\": \"<string>\",\n \"negative_prompt\": \"<string>\",\n \"neutral_prompt\": \"<string>\"\n },\n \"ai_modal\": \"<string>\",\n \"opt_out_script\": \"If a user explicitly expresses that they no longer wish to receive calls, such as by saying 'Don't call me again,' 'I'm not interested,' or any similar phrase indicating that they want to opt out of future communications, please trigger the 'optOut' function and inform the user that they will no longer be contacted for calls.\",\n \"meeting_note_prompt\": \"<string>\",\n \"call_outcome_prompt\": \"<string>\",\n \"actions\": [\n {\n \"meetingType\": \"openBooking\",\n \"timezone\": \"<string>\",\n \"startDate\": \"<string>\",\n \"description\": \"<string>\",\n \"say\": \"<string>\",\n \"length\": 123,\n \"prompt\": \"<string>\",\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"bookingDays\": \"<string>\",\n \"sms\": {\n \"is_sms\": true,\n \"description\": \"<string>\",\n \"content\": \"<string>\",\n \"end_call_sms\": true,\n \"end_call_sms_not_answered\": true\n },\n \"whatsapp\": {\n \"is_whatsapp\": true,\n \"description\": \"<string>\",\n \"content\": {},\n \"end_call_sms\": true,\n \"end_call_sms_not_answered\": true\n },\n \"zeplo\": {\n \"is_zeplo\": true,\n \"description\": \"<string>\",\n \"content\": {\n \"templateName\": \"<string>\",\n \"language\": \"en_US\",\n \"parameter_hints\": [\n \"<string>\"\n ],\n \"parameter_slots\": [\n {\n \"index\": 123,\n \"sub_index\": 123,\n \"label\": \"<string>\"\n }\n ],\n \"components\": [\n \"<unknown>\"\n ]\n },\n \"end_call_sms\": true,\n \"end_call_sms_not_answered\": true\n }\n }\n ],\n \"zapier_hook\": \"<string>\",\n \"knowledge_base_Id\": \"<string>\",\n \"is_recording\": true,\n \"generate_call_flow\": true,\n \"is_start_speech_update\": true,\n \"company_website\": \"<string>\",\n \"eleven_lab_modal\": \"<string>\",\n \"voice_data\": {\n \"voice_id\": \"<string>\",\n \"name\": \"<string>\",\n \"category\": \"<string>\",\n \"labels\": {\n \"language\": \"<string>\",\n \"language_name\": \"<string>\",\n \"gender\": \"<string>\",\n \"accent\": \"<string>\"\n },\n \"preview_url\": \"<string>\",\n \"reference_text\": \"<string>\",\n \"is_native\": true,\n \"categories\": [\n \"<string>\"\n ],\n \"source\": \"<string>\",\n \"id\": \"<string>\",\n \"displayname\": \"<string>\",\n \"ai_modal\": \"<string>\",\n \"language\": \"<string>\",\n \"language_name\": \"<string>\",\n \"similarity\": 123,\n \"stability\": 123\n },\n \"stability\": 123,\n \"similarity\": 123,\n \"style_exaggeration\": 123,\n \"speaker_boost\": true,\n \"safety_fallback_delay\": 123,\n \"enable_delay\": true,\n \"is_call_flow\": true,\n \"call_flow\": {},\n \"background_type\": \"<string>\",\n \"background_volume\": 123,\n \"end_call_message\": \"<string>\",\n \"wait_max_interval\": 123,\n \"set_transcription_start_time\": 123,\n \"widget_config\": {\n \"api_key\": \"<string>\",\n \"enabled\": true,\n \"uiStyle\": \"<string>\",\n \"position\": \"<string>\",\n \"containerId\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qcall.ai/api/v1/user/updateAssistant?id={id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"accent\": \"<string>\",\n \"goal\": \"<string>\",\n \"start_speech\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"voice_name\": \"<string>\",\n \"script\": \"<string>\",\n \"maximum_time_per_call\": 123,\n \"is_voice_note\": true,\n \"voice_note\": \"<string>\",\n \"ai_model_id\": \"1\",\n \"sentiment\": {\n \"general_prompt\": \"<string>\",\n \"positive_prompt\": \"<string>\",\n \"negative_prompt\": \"<string>\",\n \"neutral_prompt\": \"<string>\"\n },\n \"ai_modal\": \"<string>\",\n \"opt_out_script\": \"If a user explicitly expresses that they no longer wish to receive calls, such as by saying 'Don't call me again,' 'I'm not interested,' or any similar phrase indicating that they want to opt out of future communications, please trigger the 'optOut' function and inform the user that they will no longer be contacted for calls.\",\n \"meeting_note_prompt\": \"<string>\",\n \"call_outcome_prompt\": \"<string>\",\n \"actions\": [\n {\n \"meetingType\": \"openBooking\",\n \"timezone\": \"<string>\",\n \"startDate\": \"<string>\",\n \"description\": \"<string>\",\n \"say\": \"<string>\",\n \"length\": 123,\n \"prompt\": \"<string>\",\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"bookingDays\": \"<string>\",\n \"sms\": {\n \"is_sms\": true,\n \"description\": \"<string>\",\n \"content\": \"<string>\",\n \"end_call_sms\": true,\n \"end_call_sms_not_answered\": true\n },\n \"whatsapp\": {\n \"is_whatsapp\": true,\n \"description\": \"<string>\",\n \"content\": {},\n \"end_call_sms\": true,\n \"end_call_sms_not_answered\": true\n },\n \"zeplo\": {\n \"is_zeplo\": true,\n \"description\": \"<string>\",\n \"content\": {\n \"templateName\": \"<string>\",\n \"language\": \"en_US\",\n \"parameter_hints\": [\n \"<string>\"\n ],\n \"parameter_slots\": [\n {\n \"index\": 123,\n \"sub_index\": 123,\n \"label\": \"<string>\"\n }\n ],\n \"components\": [\n \"<unknown>\"\n ]\n },\n \"end_call_sms\": true,\n \"end_call_sms_not_answered\": true\n }\n }\n ],\n \"zapier_hook\": \"<string>\",\n \"knowledge_base_Id\": \"<string>\",\n \"is_recording\": true,\n \"generate_call_flow\": true,\n \"is_start_speech_update\": true,\n \"company_website\": \"<string>\",\n \"eleven_lab_modal\": \"<string>\",\n \"voice_data\": {\n \"voice_id\": \"<string>\",\n \"name\": \"<string>\",\n \"category\": \"<string>\",\n \"labels\": {\n \"language\": \"<string>\",\n \"language_name\": \"<string>\",\n \"gender\": \"<string>\",\n \"accent\": \"<string>\"\n },\n \"preview_url\": \"<string>\",\n \"reference_text\": \"<string>\",\n \"is_native\": true,\n \"categories\": [\n \"<string>\"\n ],\n \"source\": \"<string>\",\n \"id\": \"<string>\",\n \"displayname\": \"<string>\",\n \"ai_modal\": \"<string>\",\n \"language\": \"<string>\",\n \"language_name\": \"<string>\",\n \"similarity\": 123,\n \"stability\": 123\n },\n \"stability\": 123,\n \"similarity\": 123,\n \"style_exaggeration\": 123,\n \"speaker_boost\": true,\n \"safety_fallback_delay\": 123,\n \"enable_delay\": true,\n \"is_call_flow\": true,\n \"call_flow\": {},\n \"background_type\": \"<string>\",\n \"background_volume\": 123,\n \"end_call_message\": \"<string>\",\n \"wait_max_interval\": 123,\n \"set_transcription_start_time\": 123,\n \"widget_config\": {\n \"api_key\": \"<string>\",\n \"enabled\": true,\n \"uiStyle\": \"<string>\",\n \"position\": \"<string>\",\n \"containerId\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"type": "inbound",
"language": "en",
"name": "<string>",
"company_name": "<string>",
"accent": "<string>",
"goal": "<string>",
"start_speech": "<string>",
"voice_id": "<string>",
"voice_name": "<string>",
"script": "<string>",
"maximum_time_per_call": 123,
"is_voice_note": true,
"voice_note": "<string>",
"ai_model_id": "1",
"sentiment": {
"general_prompt": "<string>",
"positive_prompt": "<string>",
"negative_prompt": "<string>",
"neutral_prompt": "<string>"
},
"voice_speed": 1,
"is_filler": true,
"fillers": "umm",
"assistant_image": "https://precallai.s3.ap-south-1.amazonaws.com/assistant_profile/1.jpeg",
"ai_modal": "<string>",
"sensitivity": 600,
"temperature": 0.7,
"opt_out_script": "If a user explicitly expresses that they no longer wish to receive calls, such as by saying 'Don't call me again,' 'I'm not interested,' or any similar phrase indicating that they want to opt out of future communications, please trigger the 'optOut' function and inform the user that they will no longer be contacted for calls.",
"is_wait_start_speech": true,
"utterance_length": 1,
"meeting_note_prompt": "<string>",
"call_outcome_prompt": "<string>",
"actions": [
{
"type": "scheduleMeeting",
"meetingType": "openBooking",
"timezone": "<string>",
"startDate": "<string>",
"description": "<string>",
"say": "<string>",
"length": 123,
"prompt": "<string>",
"startTime": "<string>",
"endTime": "<string>",
"bookingDays": "<string>",
"sms": {
"is_sms": true,
"description": "<string>",
"content": "<string>",
"end_call_sms": true,
"end_call_sms_not_answered": true
},
"whatsapp": {
"is_whatsapp": true,
"description": "<string>",
"content": {},
"end_call_sms": true,
"end_call_sms_not_answered": true
},
"zeplo": {
"is_zeplo": true,
"description": "<string>",
"content": {
"templateName": "<string>",
"language": "en_US",
"category": "MARKETING",
"parameter_hints": [
"<string>"
],
"parameter_slots": [
{
"section": "header",
"index": 123,
"sub_index": 123,
"label": "<string>"
}
],
"components": [
"<unknown>"
]
},
"end_call_sms": true,
"end_call_sms_not_answered": true
}
}
],
"zapier_hook": "<string>",
"knowledge_base_Id": "<string>",
"is_recording": true,
"is_back_sound": true,
"is_sensitivity": true,
"is_opt_out": true,
"generate_call_flow": true,
"gender": "male",
"is_start_speech_update": true,
"company_website": "<string>",
"eleven_lab_modal": "<string>",
"voice_data": {
"voice_id": "<string>",
"name": "<string>",
"category": "<string>",
"labels": {
"language": "<string>",
"language_name": "<string>",
"gender": "<string>",
"accent": "<string>"
},
"preview_url": "<string>",
"reference_text": "<string>",
"is_native": true,
"categories": [
"<string>"
],
"source": "<string>",
"id": "<string>",
"displayname": "<string>",
"ai_modal": "<string>",
"language": "<string>",
"language_name": "<string>",
"similarity": 123,
"stability": 123
},
"stability": 123,
"similarity": 123,
"style_exaggeration": 123,
"speaker_boost": true,
"safety_fallback_delay": 123,
"enable_delay": true,
"is_call_flow": true,
"call_flow": {},
"background_type": "<string>",
"background_volume": 123,
"end_call_message": "<string>",
"wait_max_interval": 123,
"set_transcription_start_time": 123,
"widget_config": {
"mode": "floating",
"api_key": "<string>",
"enabled": true,
"uiStyle": "<string>",
"position": "<string>",
"containerId": "<string>"
}
}{
"error": 123,
"message": "<string>"
}Assistants
Update Assistant
Update a Assistant
PUT
/
user
/
updateAssistant?id=
{id}
cURL
curl --request PUT \
--url 'https://api.qcall.ai/api/v1/user/updateAssistant?id={id}' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data @- <<EOF
{
"name": "<string>",
"company_name": "<string>",
"accent": "<string>",
"goal": "<string>",
"start_speech": "<string>",
"voice_id": "<string>",
"voice_name": "<string>",
"script": "<string>",
"maximum_time_per_call": 123,
"is_voice_note": true,
"voice_note": "<string>",
"ai_model_id": "1",
"sentiment": {
"general_prompt": "<string>",
"positive_prompt": "<string>",
"negative_prompt": "<string>",
"neutral_prompt": "<string>"
},
"ai_modal": "<string>",
"opt_out_script": "If a user explicitly expresses that they no longer wish to receive calls, such as by saying 'Don't call me again,' 'I'm not interested,' or any similar phrase indicating that they want to opt out of future communications, please trigger the 'optOut' function and inform the user that they will no longer be contacted for calls.",
"meeting_note_prompt": "<string>",
"call_outcome_prompt": "<string>",
"actions": [
{
"meetingType": "openBooking",
"timezone": "<string>",
"startDate": "<string>",
"description": "<string>",
"say": "<string>",
"length": 123,
"prompt": "<string>",
"startTime": "<string>",
"endTime": "<string>",
"bookingDays": "<string>",
"sms": {
"is_sms": true,
"description": "<string>",
"content": "<string>",
"end_call_sms": true,
"end_call_sms_not_answered": true
},
"whatsapp": {
"is_whatsapp": true,
"description": "<string>",
"content": {},
"end_call_sms": true,
"end_call_sms_not_answered": true
},
"zeplo": {
"is_zeplo": true,
"description": "<string>",
"content": {
"templateName": "<string>",
"language": "en_US",
"parameter_hints": [
"<string>"
],
"parameter_slots": [
{
"index": 123,
"sub_index": 123,
"label": "<string>"
}
],
"components": [
"<unknown>"
]
},
"end_call_sms": true,
"end_call_sms_not_answered": true
}
}
],
"zapier_hook": "<string>",
"knowledge_base_Id": "<string>",
"is_recording": true,
"generate_call_flow": true,
"is_start_speech_update": true,
"company_website": "<string>",
"eleven_lab_modal": "<string>",
"voice_data": {
"voice_id": "<string>",
"name": "<string>",
"category": "<string>",
"labels": {
"language": "<string>",
"language_name": "<string>",
"gender": "<string>",
"accent": "<string>"
},
"preview_url": "<string>",
"reference_text": "<string>",
"is_native": true,
"categories": [
"<string>"
],
"source": "<string>",
"id": "<string>",
"displayname": "<string>",
"ai_modal": "<string>",
"language": "<string>",
"language_name": "<string>",
"similarity": 123,
"stability": 123
},
"stability": 123,
"similarity": 123,
"style_exaggeration": 123,
"speaker_boost": true,
"safety_fallback_delay": 123,
"enable_delay": true,
"is_call_flow": true,
"call_flow": {},
"background_type": "<string>",
"background_volume": 123,
"end_call_message": "<string>",
"wait_max_interval": 123,
"set_transcription_start_time": 123,
"widget_config": {
"api_key": "<string>",
"enabled": true,
"uiStyle": "<string>",
"position": "<string>",
"containerId": "<string>"
}
}
EOFimport requests
url = "https://api.qcall.ai/api/v1/user/updateAssistant?id={id}"
payload = {
"name": "<string>",
"company_name": "<string>",
"accent": "<string>",
"goal": "<string>",
"start_speech": "<string>",
"voice_id": "<string>",
"voice_name": "<string>",
"script": "<string>",
"maximum_time_per_call": 123,
"is_voice_note": True,
"voice_note": "<string>",
"ai_model_id": "1",
"sentiment": {
"general_prompt": "<string>",
"positive_prompt": "<string>",
"negative_prompt": "<string>",
"neutral_prompt": "<string>"
},
"ai_modal": "<string>",
"opt_out_script": "If a user explicitly expresses that they no longer wish to receive calls, such as by saying 'Don't call me again,' 'I'm not interested,' or any similar phrase indicating that they want to opt out of future communications, please trigger the 'optOut' function and inform the user that they will no longer be contacted for calls.",
"meeting_note_prompt": "<string>",
"call_outcome_prompt": "<string>",
"actions": [
{
"meetingType": "openBooking",
"timezone": "<string>",
"startDate": "<string>",
"description": "<string>",
"say": "<string>",
"length": 123,
"prompt": "<string>",
"startTime": "<string>",
"endTime": "<string>",
"bookingDays": "<string>",
"sms": {
"is_sms": True,
"description": "<string>",
"content": "<string>",
"end_call_sms": True,
"end_call_sms_not_answered": True
},
"whatsapp": {
"is_whatsapp": True,
"description": "<string>",
"content": {},
"end_call_sms": True,
"end_call_sms_not_answered": True
},
"zeplo": {
"is_zeplo": True,
"description": "<string>",
"content": {
"templateName": "<string>",
"language": "en_US",
"parameter_hints": ["<string>"],
"parameter_slots": [
{
"index": 123,
"sub_index": 123,
"label": "<string>"
}
],
"components": ["<unknown>"]
},
"end_call_sms": True,
"end_call_sms_not_answered": True
}
}
],
"zapier_hook": "<string>",
"knowledge_base_Id": "<string>",
"is_recording": True,
"generate_call_flow": True,
"is_start_speech_update": True,
"company_website": "<string>",
"eleven_lab_modal": "<string>",
"voice_data": {
"voice_id": "<string>",
"name": "<string>",
"category": "<string>",
"labels": {
"language": "<string>",
"language_name": "<string>",
"gender": "<string>",
"accent": "<string>"
},
"preview_url": "<string>",
"reference_text": "<string>",
"is_native": True,
"categories": ["<string>"],
"source": "<string>",
"id": "<string>",
"displayname": "<string>",
"ai_modal": "<string>",
"language": "<string>",
"language_name": "<string>",
"similarity": 123,
"stability": 123
},
"stability": 123,
"similarity": 123,
"style_exaggeration": 123,
"speaker_boost": True,
"safety_fallback_delay": 123,
"enable_delay": True,
"is_call_flow": True,
"call_flow": {},
"background_type": "<string>",
"background_volume": 123,
"end_call_message": "<string>",
"wait_max_interval": 123,
"set_transcription_start_time": 123,
"widget_config": {
"api_key": "<string>",
"enabled": True,
"uiStyle": "<string>",
"position": "<string>",
"containerId": "<string>"
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
company_name: '<string>',
accent: '<string>',
goal: '<string>',
start_speech: '<string>',
voice_id: '<string>',
voice_name: '<string>',
script: '<string>',
maximum_time_per_call: 123,
is_voice_note: true,
voice_note: '<string>',
ai_model_id: '1',
sentiment: {
general_prompt: '<string>',
positive_prompt: '<string>',
negative_prompt: '<string>',
neutral_prompt: '<string>'
},
ai_modal: '<string>',
opt_out_script: 'If a user explicitly expresses that they no longer wish to receive calls, such as by saying \'Don\'t call me again,\' \'I\'m not interested,\' or any similar phrase indicating that they want to opt out of future communications, please trigger the \'optOut\' function and inform the user that they will no longer be contacted for calls.',
meeting_note_prompt: '<string>',
call_outcome_prompt: '<string>',
actions: [
{
meetingType: 'openBooking',
timezone: '<string>',
startDate: '<string>',
description: '<string>',
say: '<string>',
length: 123,
prompt: '<string>',
startTime: '<string>',
endTime: '<string>',
bookingDays: '<string>',
sms: {
is_sms: true,
description: '<string>',
content: '<string>',
end_call_sms: true,
end_call_sms_not_answered: true
},
whatsapp: {
is_whatsapp: true,
description: '<string>',
content: {},
end_call_sms: true,
end_call_sms_not_answered: true
},
zeplo: {
is_zeplo: true,
description: '<string>',
content: {
templateName: '<string>',
language: 'en_US',
parameter_hints: ['<string>'],
parameter_slots: [{index: 123, sub_index: 123, label: '<string>'}],
components: ['<unknown>']
},
end_call_sms: true,
end_call_sms_not_answered: true
}
}
],
zapier_hook: '<string>',
knowledge_base_Id: '<string>',
is_recording: true,
generate_call_flow: true,
is_start_speech_update: true,
company_website: '<string>',
eleven_lab_modal: '<string>',
voice_data: {
voice_id: '<string>',
name: '<string>',
category: '<string>',
labels: {
language: '<string>',
language_name: '<string>',
gender: '<string>',
accent: '<string>'
},
preview_url: '<string>',
reference_text: '<string>',
is_native: true,
categories: ['<string>'],
source: '<string>',
id: '<string>',
displayname: '<string>',
ai_modal: '<string>',
language: '<string>',
language_name: '<string>',
similarity: 123,
stability: 123
},
stability: 123,
similarity: 123,
style_exaggeration: 123,
speaker_boost: true,
safety_fallback_delay: 123,
enable_delay: true,
is_call_flow: true,
call_flow: {},
background_type: '<string>',
background_volume: 123,
end_call_message: '<string>',
wait_max_interval: 123,
set_transcription_start_time: 123,
widget_config: {
api_key: '<string>',
enabled: true,
uiStyle: '<string>',
position: '<string>',
containerId: '<string>'
}
})
};
fetch('https://api.qcall.ai/api/v1/user/updateAssistant?id={id}', 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.qcall.ai/api/v1/user/updateAssistant?id={id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'company_name' => '<string>',
'accent' => '<string>',
'goal' => '<string>',
'start_speech' => '<string>',
'voice_id' => '<string>',
'voice_name' => '<string>',
'script' => '<string>',
'maximum_time_per_call' => 123,
'is_voice_note' => true,
'voice_note' => '<string>',
'ai_model_id' => '1',
'sentiment' => [
'general_prompt' => '<string>',
'positive_prompt' => '<string>',
'negative_prompt' => '<string>',
'neutral_prompt' => '<string>'
],
'ai_modal' => '<string>',
'opt_out_script' => 'If a user explicitly expresses that they no longer wish to receive calls, such as by saying \'Don\'t call me again,\' \'I\'m not interested,\' or any similar phrase indicating that they want to opt out of future communications, please trigger the \'optOut\' function and inform the user that they will no longer be contacted for calls.',
'meeting_note_prompt' => '<string>',
'call_outcome_prompt' => '<string>',
'actions' => [
[
'meetingType' => 'openBooking',
'timezone' => '<string>',
'startDate' => '<string>',
'description' => '<string>',
'say' => '<string>',
'length' => 123,
'prompt' => '<string>',
'startTime' => '<string>',
'endTime' => '<string>',
'bookingDays' => '<string>',
'sms' => [
'is_sms' => true,
'description' => '<string>',
'content' => '<string>',
'end_call_sms' => true,
'end_call_sms_not_answered' => true
],
'whatsapp' => [
'is_whatsapp' => true,
'description' => '<string>',
'content' => [
],
'end_call_sms' => true,
'end_call_sms_not_answered' => true
],
'zeplo' => [
'is_zeplo' => true,
'description' => '<string>',
'content' => [
'templateName' => '<string>',
'language' => 'en_US',
'parameter_hints' => [
'<string>'
],
'parameter_slots' => [
[
'index' => 123,
'sub_index' => 123,
'label' => '<string>'
]
],
'components' => [
'<unknown>'
]
],
'end_call_sms' => true,
'end_call_sms_not_answered' => true
]
]
],
'zapier_hook' => '<string>',
'knowledge_base_Id' => '<string>',
'is_recording' => true,
'generate_call_flow' => true,
'is_start_speech_update' => true,
'company_website' => '<string>',
'eleven_lab_modal' => '<string>',
'voice_data' => [
'voice_id' => '<string>',
'name' => '<string>',
'category' => '<string>',
'labels' => [
'language' => '<string>',
'language_name' => '<string>',
'gender' => '<string>',
'accent' => '<string>'
],
'preview_url' => '<string>',
'reference_text' => '<string>',
'is_native' => true,
'categories' => [
'<string>'
],
'source' => '<string>',
'id' => '<string>',
'displayname' => '<string>',
'ai_modal' => '<string>',
'language' => '<string>',
'language_name' => '<string>',
'similarity' => 123,
'stability' => 123
],
'stability' => 123,
'similarity' => 123,
'style_exaggeration' => 123,
'speaker_boost' => true,
'safety_fallback_delay' => 123,
'enable_delay' => true,
'is_call_flow' => true,
'call_flow' => [
],
'background_type' => '<string>',
'background_volume' => 123,
'end_call_message' => '<string>',
'wait_max_interval' => 123,
'set_transcription_start_time' => 123,
'widget_config' => [
'api_key' => '<string>',
'enabled' => true,
'uiStyle' => '<string>',
'position' => '<string>',
'containerId' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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.qcall.ai/api/v1/user/updateAssistant?id={id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"accent\": \"<string>\",\n \"goal\": \"<string>\",\n \"start_speech\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"voice_name\": \"<string>\",\n \"script\": \"<string>\",\n \"maximum_time_per_call\": 123,\n \"is_voice_note\": true,\n \"voice_note\": \"<string>\",\n \"ai_model_id\": \"1\",\n \"sentiment\": {\n \"general_prompt\": \"<string>\",\n \"positive_prompt\": \"<string>\",\n \"negative_prompt\": \"<string>\",\n \"neutral_prompt\": \"<string>\"\n },\n \"ai_modal\": \"<string>\",\n \"opt_out_script\": \"If a user explicitly expresses that they no longer wish to receive calls, such as by saying 'Don't call me again,' 'I'm not interested,' or any similar phrase indicating that they want to opt out of future communications, please trigger the 'optOut' function and inform the user that they will no longer be contacted for calls.\",\n \"meeting_note_prompt\": \"<string>\",\n \"call_outcome_prompt\": \"<string>\",\n \"actions\": [\n {\n \"meetingType\": \"openBooking\",\n \"timezone\": \"<string>\",\n \"startDate\": \"<string>\",\n \"description\": \"<string>\",\n \"say\": \"<string>\",\n \"length\": 123,\n \"prompt\": \"<string>\",\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"bookingDays\": \"<string>\",\n \"sms\": {\n \"is_sms\": true,\n \"description\": \"<string>\",\n \"content\": \"<string>\",\n \"end_call_sms\": true,\n \"end_call_sms_not_answered\": true\n },\n \"whatsapp\": {\n \"is_whatsapp\": true,\n \"description\": \"<string>\",\n \"content\": {},\n \"end_call_sms\": true,\n \"end_call_sms_not_answered\": true\n },\n \"zeplo\": {\n \"is_zeplo\": true,\n \"description\": \"<string>\",\n \"content\": {\n \"templateName\": \"<string>\",\n \"language\": \"en_US\",\n \"parameter_hints\": [\n \"<string>\"\n ],\n \"parameter_slots\": [\n {\n \"index\": 123,\n \"sub_index\": 123,\n \"label\": \"<string>\"\n }\n ],\n \"components\": [\n \"<unknown>\"\n ]\n },\n \"end_call_sms\": true,\n \"end_call_sms_not_answered\": true\n }\n }\n ],\n \"zapier_hook\": \"<string>\",\n \"knowledge_base_Id\": \"<string>\",\n \"is_recording\": true,\n \"generate_call_flow\": true,\n \"is_start_speech_update\": true,\n \"company_website\": \"<string>\",\n \"eleven_lab_modal\": \"<string>\",\n \"voice_data\": {\n \"voice_id\": \"<string>\",\n \"name\": \"<string>\",\n \"category\": \"<string>\",\n \"labels\": {\n \"language\": \"<string>\",\n \"language_name\": \"<string>\",\n \"gender\": \"<string>\",\n \"accent\": \"<string>\"\n },\n \"preview_url\": \"<string>\",\n \"reference_text\": \"<string>\",\n \"is_native\": true,\n \"categories\": [\n \"<string>\"\n ],\n \"source\": \"<string>\",\n \"id\": \"<string>\",\n \"displayname\": \"<string>\",\n \"ai_modal\": \"<string>\",\n \"language\": \"<string>\",\n \"language_name\": \"<string>\",\n \"similarity\": 123,\n \"stability\": 123\n },\n \"stability\": 123,\n \"similarity\": 123,\n \"style_exaggeration\": 123,\n \"speaker_boost\": true,\n \"safety_fallback_delay\": 123,\n \"enable_delay\": true,\n \"is_call_flow\": true,\n \"call_flow\": {},\n \"background_type\": \"<string>\",\n \"background_volume\": 123,\n \"end_call_message\": \"<string>\",\n \"wait_max_interval\": 123,\n \"set_transcription_start_time\": 123,\n \"widget_config\": {\n \"api_key\": \"<string>\",\n \"enabled\": true,\n \"uiStyle\": \"<string>\",\n \"position\": \"<string>\",\n \"containerId\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.put("https://api.qcall.ai/api/v1/user/updateAssistant?id={id}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"accent\": \"<string>\",\n \"goal\": \"<string>\",\n \"start_speech\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"voice_name\": \"<string>\",\n \"script\": \"<string>\",\n \"maximum_time_per_call\": 123,\n \"is_voice_note\": true,\n \"voice_note\": \"<string>\",\n \"ai_model_id\": \"1\",\n \"sentiment\": {\n \"general_prompt\": \"<string>\",\n \"positive_prompt\": \"<string>\",\n \"negative_prompt\": \"<string>\",\n \"neutral_prompt\": \"<string>\"\n },\n \"ai_modal\": \"<string>\",\n \"opt_out_script\": \"If a user explicitly expresses that they no longer wish to receive calls, such as by saying 'Don't call me again,' 'I'm not interested,' or any similar phrase indicating that they want to opt out of future communications, please trigger the 'optOut' function and inform the user that they will no longer be contacted for calls.\",\n \"meeting_note_prompt\": \"<string>\",\n \"call_outcome_prompt\": \"<string>\",\n \"actions\": [\n {\n \"meetingType\": \"openBooking\",\n \"timezone\": \"<string>\",\n \"startDate\": \"<string>\",\n \"description\": \"<string>\",\n \"say\": \"<string>\",\n \"length\": 123,\n \"prompt\": \"<string>\",\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"bookingDays\": \"<string>\",\n \"sms\": {\n \"is_sms\": true,\n \"description\": \"<string>\",\n \"content\": \"<string>\",\n \"end_call_sms\": true,\n \"end_call_sms_not_answered\": true\n },\n \"whatsapp\": {\n \"is_whatsapp\": true,\n \"description\": \"<string>\",\n \"content\": {},\n \"end_call_sms\": true,\n \"end_call_sms_not_answered\": true\n },\n \"zeplo\": {\n \"is_zeplo\": true,\n \"description\": \"<string>\",\n \"content\": {\n \"templateName\": \"<string>\",\n \"language\": \"en_US\",\n \"parameter_hints\": [\n \"<string>\"\n ],\n \"parameter_slots\": [\n {\n \"index\": 123,\n \"sub_index\": 123,\n \"label\": \"<string>\"\n }\n ],\n \"components\": [\n \"<unknown>\"\n ]\n },\n \"end_call_sms\": true,\n \"end_call_sms_not_answered\": true\n }\n }\n ],\n \"zapier_hook\": \"<string>\",\n \"knowledge_base_Id\": \"<string>\",\n \"is_recording\": true,\n \"generate_call_flow\": true,\n \"is_start_speech_update\": true,\n \"company_website\": \"<string>\",\n \"eleven_lab_modal\": \"<string>\",\n \"voice_data\": {\n \"voice_id\": \"<string>\",\n \"name\": \"<string>\",\n \"category\": \"<string>\",\n \"labels\": {\n \"language\": \"<string>\",\n \"language_name\": \"<string>\",\n \"gender\": \"<string>\",\n \"accent\": \"<string>\"\n },\n \"preview_url\": \"<string>\",\n \"reference_text\": \"<string>\",\n \"is_native\": true,\n \"categories\": [\n \"<string>\"\n ],\n \"source\": \"<string>\",\n \"id\": \"<string>\",\n \"displayname\": \"<string>\",\n \"ai_modal\": \"<string>\",\n \"language\": \"<string>\",\n \"language_name\": \"<string>\",\n \"similarity\": 123,\n \"stability\": 123\n },\n \"stability\": 123,\n \"similarity\": 123,\n \"style_exaggeration\": 123,\n \"speaker_boost\": true,\n \"safety_fallback_delay\": 123,\n \"enable_delay\": true,\n \"is_call_flow\": true,\n \"call_flow\": {},\n \"background_type\": \"<string>\",\n \"background_volume\": 123,\n \"end_call_message\": \"<string>\",\n \"wait_max_interval\": 123,\n \"set_transcription_start_time\": 123,\n \"widget_config\": {\n \"api_key\": \"<string>\",\n \"enabled\": true,\n \"uiStyle\": \"<string>\",\n \"position\": \"<string>\",\n \"containerId\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qcall.ai/api/v1/user/updateAssistant?id={id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"accent\": \"<string>\",\n \"goal\": \"<string>\",\n \"start_speech\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"voice_name\": \"<string>\",\n \"script\": \"<string>\",\n \"maximum_time_per_call\": 123,\n \"is_voice_note\": true,\n \"voice_note\": \"<string>\",\n \"ai_model_id\": \"1\",\n \"sentiment\": {\n \"general_prompt\": \"<string>\",\n \"positive_prompt\": \"<string>\",\n \"negative_prompt\": \"<string>\",\n \"neutral_prompt\": \"<string>\"\n },\n \"ai_modal\": \"<string>\",\n \"opt_out_script\": \"If a user explicitly expresses that they no longer wish to receive calls, such as by saying 'Don't call me again,' 'I'm not interested,' or any similar phrase indicating that they want to opt out of future communications, please trigger the 'optOut' function and inform the user that they will no longer be contacted for calls.\",\n \"meeting_note_prompt\": \"<string>\",\n \"call_outcome_prompt\": \"<string>\",\n \"actions\": [\n {\n \"meetingType\": \"openBooking\",\n \"timezone\": \"<string>\",\n \"startDate\": \"<string>\",\n \"description\": \"<string>\",\n \"say\": \"<string>\",\n \"length\": 123,\n \"prompt\": \"<string>\",\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"bookingDays\": \"<string>\",\n \"sms\": {\n \"is_sms\": true,\n \"description\": \"<string>\",\n \"content\": \"<string>\",\n \"end_call_sms\": true,\n \"end_call_sms_not_answered\": true\n },\n \"whatsapp\": {\n \"is_whatsapp\": true,\n \"description\": \"<string>\",\n \"content\": {},\n \"end_call_sms\": true,\n \"end_call_sms_not_answered\": true\n },\n \"zeplo\": {\n \"is_zeplo\": true,\n \"description\": \"<string>\",\n \"content\": {\n \"templateName\": \"<string>\",\n \"language\": \"en_US\",\n \"parameter_hints\": [\n \"<string>\"\n ],\n \"parameter_slots\": [\n {\n \"index\": 123,\n \"sub_index\": 123,\n \"label\": \"<string>\"\n }\n ],\n \"components\": [\n \"<unknown>\"\n ]\n },\n \"end_call_sms\": true,\n \"end_call_sms_not_answered\": true\n }\n }\n ],\n \"zapier_hook\": \"<string>\",\n \"knowledge_base_Id\": \"<string>\",\n \"is_recording\": true,\n \"generate_call_flow\": true,\n \"is_start_speech_update\": true,\n \"company_website\": \"<string>\",\n \"eleven_lab_modal\": \"<string>\",\n \"voice_data\": {\n \"voice_id\": \"<string>\",\n \"name\": \"<string>\",\n \"category\": \"<string>\",\n \"labels\": {\n \"language\": \"<string>\",\n \"language_name\": \"<string>\",\n \"gender\": \"<string>\",\n \"accent\": \"<string>\"\n },\n \"preview_url\": \"<string>\",\n \"reference_text\": \"<string>\",\n \"is_native\": true,\n \"categories\": [\n \"<string>\"\n ],\n \"source\": \"<string>\",\n \"id\": \"<string>\",\n \"displayname\": \"<string>\",\n \"ai_modal\": \"<string>\",\n \"language\": \"<string>\",\n \"language_name\": \"<string>\",\n \"similarity\": 123,\n \"stability\": 123\n },\n \"stability\": 123,\n \"similarity\": 123,\n \"style_exaggeration\": 123,\n \"speaker_boost\": true,\n \"safety_fallback_delay\": 123,\n \"enable_delay\": true,\n \"is_call_flow\": true,\n \"call_flow\": {},\n \"background_type\": \"<string>\",\n \"background_volume\": 123,\n \"end_call_message\": \"<string>\",\n \"wait_max_interval\": 123,\n \"set_transcription_start_time\": 123,\n \"widget_config\": {\n \"api_key\": \"<string>\",\n \"enabled\": true,\n \"uiStyle\": \"<string>\",\n \"position\": \"<string>\",\n \"containerId\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"type": "inbound",
"language": "en",
"name": "<string>",
"company_name": "<string>",
"accent": "<string>",
"goal": "<string>",
"start_speech": "<string>",
"voice_id": "<string>",
"voice_name": "<string>",
"script": "<string>",
"maximum_time_per_call": 123,
"is_voice_note": true,
"voice_note": "<string>",
"ai_model_id": "1",
"sentiment": {
"general_prompt": "<string>",
"positive_prompt": "<string>",
"negative_prompt": "<string>",
"neutral_prompt": "<string>"
},
"voice_speed": 1,
"is_filler": true,
"fillers": "umm",
"assistant_image": "https://precallai.s3.ap-south-1.amazonaws.com/assistant_profile/1.jpeg",
"ai_modal": "<string>",
"sensitivity": 600,
"temperature": 0.7,
"opt_out_script": "If a user explicitly expresses that they no longer wish to receive calls, such as by saying 'Don't call me again,' 'I'm not interested,' or any similar phrase indicating that they want to opt out of future communications, please trigger the 'optOut' function and inform the user that they will no longer be contacted for calls.",
"is_wait_start_speech": true,
"utterance_length": 1,
"meeting_note_prompt": "<string>",
"call_outcome_prompt": "<string>",
"actions": [
{
"type": "scheduleMeeting",
"meetingType": "openBooking",
"timezone": "<string>",
"startDate": "<string>",
"description": "<string>",
"say": "<string>",
"length": 123,
"prompt": "<string>",
"startTime": "<string>",
"endTime": "<string>",
"bookingDays": "<string>",
"sms": {
"is_sms": true,
"description": "<string>",
"content": "<string>",
"end_call_sms": true,
"end_call_sms_not_answered": true
},
"whatsapp": {
"is_whatsapp": true,
"description": "<string>",
"content": {},
"end_call_sms": true,
"end_call_sms_not_answered": true
},
"zeplo": {
"is_zeplo": true,
"description": "<string>",
"content": {
"templateName": "<string>",
"language": "en_US",
"category": "MARKETING",
"parameter_hints": [
"<string>"
],
"parameter_slots": [
{
"section": "header",
"index": 123,
"sub_index": 123,
"label": "<string>"
}
],
"components": [
"<unknown>"
]
},
"end_call_sms": true,
"end_call_sms_not_answered": true
}
}
],
"zapier_hook": "<string>",
"knowledge_base_Id": "<string>",
"is_recording": true,
"is_back_sound": true,
"is_sensitivity": true,
"is_opt_out": true,
"generate_call_flow": true,
"gender": "male",
"is_start_speech_update": true,
"company_website": "<string>",
"eleven_lab_modal": "<string>",
"voice_data": {
"voice_id": "<string>",
"name": "<string>",
"category": "<string>",
"labels": {
"language": "<string>",
"language_name": "<string>",
"gender": "<string>",
"accent": "<string>"
},
"preview_url": "<string>",
"reference_text": "<string>",
"is_native": true,
"categories": [
"<string>"
],
"source": "<string>",
"id": "<string>",
"displayname": "<string>",
"ai_modal": "<string>",
"language": "<string>",
"language_name": "<string>",
"similarity": 123,
"stability": 123
},
"stability": 123,
"similarity": 123,
"style_exaggeration": 123,
"speaker_boost": true,
"safety_fallback_delay": 123,
"enable_delay": true,
"is_call_flow": true,
"call_flow": {},
"background_type": "<string>",
"background_volume": 123,
"end_call_message": "<string>",
"wait_max_interval": 123,
"set_transcription_start_time": 123,
"widget_config": {
"mode": "floating",
"api_key": "<string>",
"enabled": true,
"uiStyle": "<string>",
"position": "<string>",
"containerId": "<string>"
}
}{
"error": 123,
"message": "<string>"
}Body
application/json
Assistant to update
Language of the assistant. Supported values: en (English), de (German), hi (Hindi), es (Spanish), fr (French), it (Italian), ar-kw (Arabic Kuwait), gu (Gujarati), bn (Bengali), te (Telugu India), kn (Kannada India), ta (Tamil India), mr (Marathi).
Available options:
en, de, hi, es, fr, it, ar-kw, gu, bn, te, kn, ta, mr Assistant image url
Available options:
https://precallai.s3.ap-south-1.amazonaws.com/assistant_profile/1.jpeg, https://precallai.s3.ap-south-1.amazonaws.com/assistant_profile/1.jpeg, https://precallai.s3.ap-south-1.amazonaws.com/assistant_profile/3.jpeg, https://precallai.s3.ap-south-1.amazonaws.com/assistant_profile/4.jpeg, https://precallai.s3.ap-south-1.amazonaws.com/assistant_profile/5.jpeg If is_opt_out is enable then add opt out prompts
Available options:
If a user explicitly expresses that they no longer wish to receive calls, such as by saying 'Don't call me again,' 'I'm not interested,' or any similar phrase indicating that they want to opt out of future communications, please trigger the 'optOut' function and inform the user that they will no longer be contacted for calls. Response
Assistant response
Language of the assistant. Supported values: en (English), de (German), hi (Hindi), es (Spanish), fr (French), it (Italian), ar-kw (Arabic Kuwait), gu (Gujarati), bn (Bengali), te (Telugu India), kn (Kannada India), ta (Tamil India), mr (Marathi).
Available options:
en, de, hi, es, fr, it, ar-kw, gu, bn, te, kn, ta, mr Assistant image url
Available options:
https://precallai.s3.ap-south-1.amazonaws.com/assistant_profile/1.jpeg, https://precallai.s3.ap-south-1.amazonaws.com/assistant_profile/1.jpeg, https://precallai.s3.ap-south-1.amazonaws.com/assistant_profile/3.jpeg, https://precallai.s3.ap-south-1.amazonaws.com/assistant_profile/4.jpeg, https://precallai.s3.ap-south-1.amazonaws.com/assistant_profile/5.jpeg If is_opt_out is enable then add opt out prompts
Available options:
If a user explicitly expresses that they no longer wish to receive calls, such as by saying 'Don't call me again,' 'I'm not interested,' or any similar phrase indicating that they want to opt out of future communications, please trigger the 'optOut' function and inform the user that they will no longer be contacted for calls. 
