curl --request PUT \
--url 'https://api.awazindia.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": "<string>",
"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": [
{
"type": "scheduleMeeting",
"meetingType": "openBooking",
"startDate": "<string>",
"startTime": "<string>",
"endTime": "<string>",
"bookingDays": "<string>",
"timezone": "<string>",
"description": "<string>",
"say": "<string>",
"length": 123,
"prompt": "<string>"
}
],
"zapier_hook": "<string>",
"knowledge_base_Id": "<string>",
"is_recording": true
}
EOFimport requests
url = "https://api.awazindia.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": "<string>",
"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": [
{
"type": "scheduleMeeting",
"meetingType": "openBooking",
"startDate": "<string>",
"startTime": "<string>",
"endTime": "<string>",
"bookingDays": "<string>",
"timezone": "<string>",
"description": "<string>",
"say": "<string>",
"length": 123,
"prompt": "<string>"
}
],
"zapier_hook": "<string>",
"knowledge_base_Id": "<string>",
"is_recording": True
}
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: '<string>',
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: [
{
type: 'scheduleMeeting',
meetingType: 'openBooking',
startDate: '<string>',
startTime: '<string>',
endTime: '<string>',
bookingDays: '<string>',
timezone: '<string>',
description: '<string>',
say: '<string>',
length: 123,
prompt: '<string>'
}
],
zapier_hook: '<string>',
knowledge_base_Id: '<string>',
is_recording: true
})
};
fetch('https://api.awazindia.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.awazindia.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' => '<string>',
'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' => [
[
'type' => 'scheduleMeeting',
'meetingType' => 'openBooking',
'startDate' => '<string>',
'startTime' => '<string>',
'endTime' => '<string>',
'bookingDays' => '<string>',
'timezone' => '<string>',
'description' => '<string>',
'say' => '<string>',
'length' => 123,
'prompt' => '<string>'
]
],
'zapier_hook' => '<string>',
'knowledge_base_Id' => '<string>',
'is_recording' => true
]),
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.awazindia.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\": \"<string>\",\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 \"type\": \"scheduleMeeting\",\n \"meetingType\": \"openBooking\",\n \"startDate\": \"<string>\",\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"bookingDays\": \"<string>\",\n \"timezone\": \"<string>\",\n \"description\": \"<string>\",\n \"say\": \"<string>\",\n \"length\": 123,\n \"prompt\": \"<string>\"\n }\n ],\n \"zapier_hook\": \"<string>\",\n \"knowledge_base_Id\": \"<string>\",\n \"is_recording\": true\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.awazindia.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\": \"<string>\",\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 \"type\": \"scheduleMeeting\",\n \"meetingType\": \"openBooking\",\n \"startDate\": \"<string>\",\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"bookingDays\": \"<string>\",\n \"timezone\": \"<string>\",\n \"description\": \"<string>\",\n \"say\": \"<string>\",\n \"length\": 123,\n \"prompt\": \"<string>\"\n }\n ],\n \"zapier_hook\": \"<string>\",\n \"knowledge_base_Id\": \"<string>\",\n \"is_recording\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.awazindia.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\": \"<string>\",\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 \"type\": \"scheduleMeeting\",\n \"meetingType\": \"openBooking\",\n \"startDate\": \"<string>\",\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"bookingDays\": \"<string>\",\n \"timezone\": \"<string>\",\n \"description\": \"<string>\",\n \"say\": \"<string>\",\n \"length\": 123,\n \"prompt\": \"<string>\"\n }\n ],\n \"zapier_hook\": \"<string>\",\n \"knowledge_base_Id\": \"<string>\",\n \"is_recording\": true\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": "<string>",
"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",
"startDate": "<string>",
"startTime": "<string>",
"endTime": "<string>",
"bookingDays": "<string>",
"timezone": "<string>",
"description": "<string>",
"say": "<string>",
"length": 123,
"prompt": "<string>"
}
],
"zapier_hook": "<string>",
"knowledge_base_Id": "<string>",
"is_recording": true,
"is_back_sound": true,
"is_sensitivity": true,
"is_opt_out": true
}{
"error": 123,
"message": "<string>"
}Update Assistant
Update a Assistant
curl --request PUT \
--url 'https://api.awazindia.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": "<string>",
"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": [
{
"type": "scheduleMeeting",
"meetingType": "openBooking",
"startDate": "<string>",
"startTime": "<string>",
"endTime": "<string>",
"bookingDays": "<string>",
"timezone": "<string>",
"description": "<string>",
"say": "<string>",
"length": 123,
"prompt": "<string>"
}
],
"zapier_hook": "<string>",
"knowledge_base_Id": "<string>",
"is_recording": true
}
EOFimport requests
url = "https://api.awazindia.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": "<string>",
"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": [
{
"type": "scheduleMeeting",
"meetingType": "openBooking",
"startDate": "<string>",
"startTime": "<string>",
"endTime": "<string>",
"bookingDays": "<string>",
"timezone": "<string>",
"description": "<string>",
"say": "<string>",
"length": 123,
"prompt": "<string>"
}
],
"zapier_hook": "<string>",
"knowledge_base_Id": "<string>",
"is_recording": True
}
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: '<string>',
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: [
{
type: 'scheduleMeeting',
meetingType: 'openBooking',
startDate: '<string>',
startTime: '<string>',
endTime: '<string>',
bookingDays: '<string>',
timezone: '<string>',
description: '<string>',
say: '<string>',
length: 123,
prompt: '<string>'
}
],
zapier_hook: '<string>',
knowledge_base_Id: '<string>',
is_recording: true
})
};
fetch('https://api.awazindia.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.awazindia.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' => '<string>',
'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' => [
[
'type' => 'scheduleMeeting',
'meetingType' => 'openBooking',
'startDate' => '<string>',
'startTime' => '<string>',
'endTime' => '<string>',
'bookingDays' => '<string>',
'timezone' => '<string>',
'description' => '<string>',
'say' => '<string>',
'length' => 123,
'prompt' => '<string>'
]
],
'zapier_hook' => '<string>',
'knowledge_base_Id' => '<string>',
'is_recording' => true
]),
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.awazindia.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\": \"<string>\",\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 \"type\": \"scheduleMeeting\",\n \"meetingType\": \"openBooking\",\n \"startDate\": \"<string>\",\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"bookingDays\": \"<string>\",\n \"timezone\": \"<string>\",\n \"description\": \"<string>\",\n \"say\": \"<string>\",\n \"length\": 123,\n \"prompt\": \"<string>\"\n }\n ],\n \"zapier_hook\": \"<string>\",\n \"knowledge_base_Id\": \"<string>\",\n \"is_recording\": true\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.awazindia.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\": \"<string>\",\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 \"type\": \"scheduleMeeting\",\n \"meetingType\": \"openBooking\",\n \"startDate\": \"<string>\",\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"bookingDays\": \"<string>\",\n \"timezone\": \"<string>\",\n \"description\": \"<string>\",\n \"say\": \"<string>\",\n \"length\": 123,\n \"prompt\": \"<string>\"\n }\n ],\n \"zapier_hook\": \"<string>\",\n \"knowledge_base_Id\": \"<string>\",\n \"is_recording\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.awazindia.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\": \"<string>\",\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 \"type\": \"scheduleMeeting\",\n \"meetingType\": \"openBooking\",\n \"startDate\": \"<string>\",\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"bookingDays\": \"<string>\",\n \"timezone\": \"<string>\",\n \"description\": \"<string>\",\n \"say\": \"<string>\",\n \"length\": 123,\n \"prompt\": \"<string>\"\n }\n ],\n \"zapier_hook\": \"<string>\",\n \"knowledge_base_Id\": \"<string>\",\n \"is_recording\": true\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": "<string>",
"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",
"startDate": "<string>",
"startTime": "<string>",
"endTime": "<string>",
"bookingDays": "<string>",
"timezone": "<string>",
"description": "<string>",
"say": "<string>",
"length": 123,
"prompt": "<string>"
}
],
"zapier_hook": "<string>",
"knowledge_base_Id": "<string>",
"is_recording": true,
"is_back_sound": true,
"is_sensitivity": true,
"is_opt_out": true
}{
"error": 123,
"message": "<string>"
}Authorizations
Path Parameters
The ID of the assistant to update
Body
Assistant to update
Type of assistant
inbound, outbound 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).
en, de, hi, es, fr, it, ar-kw, gu, bn, te, kn, ta, mr The name of the assistant
The name of the company
The accent
The goal of the assistant
Start speech of the assistant
Voice Id will get where we choose Accent
Voice name will get where we choose Accent
Script of the assistant
Maximum time per call in minutes
Enable disable voice note
Voice note is required if is_voice_note are enabled.
AI model id need to pass.
Sentiment classification prompts for analyzing conversations.
Show child attributes
Show child attributes
Voice speed sound enable/disable
1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2 Filler enable/disable
true, false Fillers
Assistant image url
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 AI modal will get where we choose Accent
Sensitivity
600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500, 1600, 1700, 1800, 1900, 2000 Temperature
0.7, 0.8, 0.9, 1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2 If is_opt_out is enable then add opt out prompts
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. For assistant typle is outbound then you can enable or disable
true, false Utterance length
1, 2, 3, 4, 5, 6, 7, 8, 9, 10 Meeting note prompt
Call outcome prompt
The actions
Show child attributes
Show child attributes
For Zapier hook need to add link
Knowledge base
Enable disable recording
Background sound enable/disable
true, false Sensitivity enable/disable
true, false Opt out enable/disable
true, false Response
Assistant response
Type of assistant
inbound, outbound 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).
en, de, hi, es, fr, it, ar-kw, gu, bn, te, kn, ta, mr The name of the assistant
The name of the company
The accent
The goal of the assistant
Start speech of the assistant
Voice Id will get where we choose Accent
Voice name will get where we choose Accent
Script of the assistant
Maximum time per call in minutes
Enable disable voice note
Voice note is required if is_voice_note are enabled.
AI model id need to pass.
Sentiment classification prompts for analyzing conversations.
Show child attributes
Show child attributes
Voice speed sound enable/disable
1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2 Filler enable/disable
true, false Fillers
Assistant image url
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 AI modal will get where we choose Accent
Sensitivity
600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500, 1600, 1700, 1800, 1900, 2000 Temperature
0.7, 0.8, 0.9, 1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2 If is_opt_out is enable then add opt out prompts
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. For assistant typle is outbound then you can enable or disable
true, false Utterance length
1, 2, 3, 4, 5, 6, 7, 8, 9, 10 Meeting note prompt
Call outcome prompt
The actions
Show child attributes
Show child attributes
For Zapier hook need to add link
Knowledge base
Enable disable recording
Background sound enable/disable
true, false Sensitivity enable/disable
true, false Opt out enable/disable
true, false