cURL
curl --request PATCH \
--url https://app.closerx.ai/api/agent-llm/ \
--header 'Company-Name: <company-name>' \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"agent": {
"agent_name": "Jarvis",
"voice_id": "11labs-Adrian",
"voice_temperature": 1,
"voice_speed": 1,
"volume": 1,
"responsiveness": 1,
"interruption_sensitivity": 1,
"pronunciation_dictionary": [
{
"word": "actually",
"phoneme": "ˈæktʃuəli"
}
],
"enable_backchannel": true,
"backchannel_frequency": 0.9,
"backchannel_words": [
"yeah",
"uh-huh"
],
"vocab_specialization": "general",
"allow_user_dtmf": true,
"user_dtmf_options": {
"digit_limit": 123,
"timeout_ms": 123,
"termination_key": "<string>"
},
"denoising_mode": "noise-cancellation",
"reminder_trigger_ms": 10000,
"reminder_max_count": 2,
"ambient_sound_volume": 1,
"language": "en-US",
"boosted_keywords": [
"aicall",
"kroger"
],
"normalize_for_speech": true,
"end_call_after_silence_ms": 600000,
"max_call_duration_ms": 3600000,
"voicemail_option": {
"action": {
"type": "static_text",
"text": "Please give us a callback tomorrow at 10am."
}
},
"analysis_data": [
{
"type": "string",
"name": "<string>",
"description": "<string>",
"examples": [
"<string>"
]
}
],
"ring_duration_ms": 30000
}
}
'import requests
url = "https://app.closerx.ai/api/agent-llm/"
payload = { "agent": {
"agent_name": "Jarvis",
"voice_id": "11labs-Adrian",
"voice_temperature": 1,
"voice_speed": 1,
"volume": 1,
"responsiveness": 1,
"interruption_sensitivity": 1,
"pronunciation_dictionary": [
{
"word": "actually",
"phoneme": "ˈæktʃuəli"
}
],
"enable_backchannel": True,
"backchannel_frequency": 0.9,
"backchannel_words": ["yeah", "uh-huh"],
"vocab_specialization": "general",
"allow_user_dtmf": True,
"user_dtmf_options": {
"digit_limit": 123,
"timeout_ms": 123,
"termination_key": "<string>"
},
"denoising_mode": "noise-cancellation",
"reminder_trigger_ms": 10000,
"reminder_max_count": 2,
"ambient_sound_volume": 1,
"language": "en-US",
"boosted_keywords": ["aicall", "kroger"],
"normalize_for_speech": True,
"end_call_after_silence_ms": 600000,
"max_call_duration_ms": 3600000,
"voicemail_option": { "action": {
"type": "static_text",
"text": "Please give us a callback tomorrow at 10am."
} },
"analysis_data": [
{
"type": "string",
"name": "<string>",
"description": "<string>",
"examples": ["<string>"]
}
],
"ring_duration_ms": 30000
} }
headers = {
"Company-Name": "<company-name>",
"api_key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'Company-Name': '<company-name>',
api_key: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
agent: {
agent_name: 'Jarvis',
voice_id: '11labs-Adrian',
voice_temperature: 1,
voice_speed: 1,
volume: 1,
responsiveness: 1,
interruption_sensitivity: 1,
pronunciation_dictionary: [{word: 'actually', phoneme: 'ˈæktʃuəli'}],
enable_backchannel: true,
backchannel_frequency: 0.9,
backchannel_words: ['yeah', 'uh-huh'],
vocab_specialization: 'general',
allow_user_dtmf: true,
user_dtmf_options: {digit_limit: 123, timeout_ms: 123, termination_key: '<string>'},
denoising_mode: 'noise-cancellation',
reminder_trigger_ms: 10000,
reminder_max_count: 2,
ambient_sound_volume: 1,
language: 'en-US',
boosted_keywords: ['aicall', 'kroger'],
normalize_for_speech: true,
end_call_after_silence_ms: 600000,
max_call_duration_ms: 3600000,
voicemail_option: {
action: {type: 'static_text', text: 'Please give us a callback tomorrow at 10am.'}
},
analysis_data: [
{
type: 'string',
name: '<string>',
description: '<string>',
examples: ['<string>']
}
],
ring_duration_ms: 30000
}
})
};
fetch('https://app.closerx.ai/api/agent-llm/', 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://app.closerx.ai/api/agent-llm/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'agent' => [
'agent_name' => 'Jarvis',
'voice_id' => '11labs-Adrian',
'voice_temperature' => 1,
'voice_speed' => 1,
'volume' => 1,
'responsiveness' => 1,
'interruption_sensitivity' => 1,
'pronunciation_dictionary' => [
[
'word' => 'actually',
'phoneme' => 'ˈæktʃuəli'
]
],
'enable_backchannel' => true,
'backchannel_frequency' => 0.9,
'backchannel_words' => [
'yeah',
'uh-huh'
],
'vocab_specialization' => 'general',
'allow_user_dtmf' => true,
'user_dtmf_options' => [
'digit_limit' => 123,
'timeout_ms' => 123,
'termination_key' => '<string>'
],
'denoising_mode' => 'noise-cancellation',
'reminder_trigger_ms' => 10000,
'reminder_max_count' => 2,
'ambient_sound_volume' => 1,
'language' => 'en-US',
'boosted_keywords' => [
'aicall',
'kroger'
],
'normalize_for_speech' => true,
'end_call_after_silence_ms' => 600000,
'max_call_duration_ms' => 3600000,
'voicemail_option' => [
'action' => [
'type' => 'static_text',
'text' => 'Please give us a callback tomorrow at 10am.'
]
],
'analysis_data' => [
[
'type' => 'string',
'name' => '<string>',
'description' => '<string>',
'examples' => [
'<string>'
]
]
],
'ring_duration_ms' => 30000
]
]),
CURLOPT_HTTPHEADER => [
"Company-Name: <company-name>",
"Content-Type: application/json",
"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://app.closerx.ai/api/agent-llm/"
payload := strings.NewReader("{\n \"agent\": {\n \"agent_name\": \"Jarvis\",\n \"voice_id\": \"11labs-Adrian\",\n \"voice_temperature\": 1,\n \"voice_speed\": 1,\n \"volume\": 1,\n \"responsiveness\": 1,\n \"interruption_sensitivity\": 1,\n \"pronunciation_dictionary\": [\n {\n \"word\": \"actually\",\n \"phoneme\": \"ˈæktʃuəli\"\n }\n ],\n \"enable_backchannel\": true,\n \"backchannel_frequency\": 0.9,\n \"backchannel_words\": [\n \"yeah\",\n \"uh-huh\"\n ],\n \"vocab_specialization\": \"general\",\n \"allow_user_dtmf\": true,\n \"user_dtmf_options\": {\n \"digit_limit\": 123,\n \"timeout_ms\": 123,\n \"termination_key\": \"<string>\"\n },\n \"denoising_mode\": \"noise-cancellation\",\n \"reminder_trigger_ms\": 10000,\n \"reminder_max_count\": 2,\n \"ambient_sound_volume\": 1,\n \"language\": \"en-US\",\n \"boosted_keywords\": [\n \"aicall\",\n \"kroger\"\n ],\n \"normalize_for_speech\": true,\n \"end_call_after_silence_ms\": 600000,\n \"max_call_duration_ms\": 3600000,\n \"voicemail_option\": {\n \"action\": {\n \"type\": \"static_text\",\n \"text\": \"Please give us a callback tomorrow at 10am.\"\n }\n },\n \"analysis_data\": [\n {\n \"type\": \"string\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"examples\": [\n \"<string>\"\n ]\n }\n ],\n \"ring_duration_ms\": 30000\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Company-Name", "<company-name>")
req.Header.Add("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.patch("https://app.closerx.ai/api/agent-llm/")
.header("Company-Name", "<company-name>")
.header("api_key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"agent\": {\n \"agent_name\": \"Jarvis\",\n \"voice_id\": \"11labs-Adrian\",\n \"voice_temperature\": 1,\n \"voice_speed\": 1,\n \"volume\": 1,\n \"responsiveness\": 1,\n \"interruption_sensitivity\": 1,\n \"pronunciation_dictionary\": [\n {\n \"word\": \"actually\",\n \"phoneme\": \"ˈæktʃuəli\"\n }\n ],\n \"enable_backchannel\": true,\n \"backchannel_frequency\": 0.9,\n \"backchannel_words\": [\n \"yeah\",\n \"uh-huh\"\n ],\n \"vocab_specialization\": \"general\",\n \"allow_user_dtmf\": true,\n \"user_dtmf_options\": {\n \"digit_limit\": 123,\n \"timeout_ms\": 123,\n \"termination_key\": \"<string>\"\n },\n \"denoising_mode\": \"noise-cancellation\",\n \"reminder_trigger_ms\": 10000,\n \"reminder_max_count\": 2,\n \"ambient_sound_volume\": 1,\n \"language\": \"en-US\",\n \"boosted_keywords\": [\n \"aicall\",\n \"kroger\"\n ],\n \"normalize_for_speech\": true,\n \"end_call_after_silence_ms\": 600000,\n \"max_call_duration_ms\": 3600000,\n \"voicemail_option\": {\n \"action\": {\n \"type\": \"static_text\",\n \"text\": \"Please give us a callback tomorrow at 10am.\"\n }\n },\n \"analysis_data\": [\n {\n \"type\": \"string\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"examples\": [\n \"<string>\"\n ]\n }\n ],\n \"ring_duration_ms\": 30000\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.closerx.ai/api/agent-llm/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Company-Name"] = '<company-name>'
request["api_key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent\": {\n \"agent_name\": \"Jarvis\",\n \"voice_id\": \"11labs-Adrian\",\n \"voice_temperature\": 1,\n \"voice_speed\": 1,\n \"volume\": 1,\n \"responsiveness\": 1,\n \"interruption_sensitivity\": 1,\n \"pronunciation_dictionary\": [\n {\n \"word\": \"actually\",\n \"phoneme\": \"ˈæktʃuəli\"\n }\n ],\n \"enable_backchannel\": true,\n \"backchannel_frequency\": 0.9,\n \"backchannel_words\": [\n \"yeah\",\n \"uh-huh\"\n ],\n \"vocab_specialization\": \"general\",\n \"allow_user_dtmf\": true,\n \"user_dtmf_options\": {\n \"digit_limit\": 123,\n \"timeout_ms\": 123,\n \"termination_key\": \"<string>\"\n },\n \"denoising_mode\": \"noise-cancellation\",\n \"reminder_trigger_ms\": 10000,\n \"reminder_max_count\": 2,\n \"ambient_sound_volume\": 1,\n \"language\": \"en-US\",\n \"boosted_keywords\": [\n \"aicall\",\n \"kroger\"\n ],\n \"normalize_for_speech\": true,\n \"end_call_after_silence_ms\": 600000,\n \"max_call_duration_ms\": 3600000,\n \"voicemail_option\": {\n \"action\": {\n \"type\": \"static_text\",\n \"text\": \"Please give us a callback tomorrow at 10am.\"\n }\n },\n \"analysis_data\": [\n {\n \"type\": \"string\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"examples\": [\n \"<string>\"\n ]\n }\n ],\n \"ring_duration_ms\": 30000\n }\n}"
response = http.request(request)
puts response.read_body{
"agent": {
"agent_name": "Jarvis",
"voice_id": "11labs-Adrian",
"voice_temperature": 1,
"voice_speed": 1,
"volume": 1,
"responsiveness": 1,
"interruption_sensitivity": 1,
"pronunciation_dictionary": [
{
"word": "actually",
"phoneme": "ˈæktʃuəli"
}
],
"enable_backchannel": true,
"backchannel_frequency": 0.9,
"backchannel_words": [
"yeah",
"uh-huh"
],
"vocab_specialization": "general",
"allow_user_dtmf": true,
"user_dtmf_options": {
"digit_limit": 123,
"timeout_ms": 123,
"termination_key": "<string>"
},
"denoising_mode": "noise-cancellation",
"reminder_trigger_ms": 10000,
"reminder_max_count": 2,
"ambient_sound_volume": 1,
"language": "en-US",
"boosted_keywords": [
"aicall",
"kroger"
],
"normalize_for_speech": true,
"end_call_after_silence_ms": 600000,
"max_call_duration_ms": 3600000,
"voicemail_option": {
"action": {
"type": "static_text",
"text": "Please give us a callback tomorrow at 10am."
}
},
"analysis_data": [
{
"type": "string",
"name": "<string>",
"description": "<string>",
"examples": [
"<string>"
]
}
],
"ring_duration_ms": 30000
}
}{
"success": true,
"message": "<string>",
"data": {}
}Agent
Update Agent
Updates the configuration of an existing AI call agent or LLM by its ID
PATCH
/
agent-llm
/
cURL
curl --request PATCH \
--url https://app.closerx.ai/api/agent-llm/ \
--header 'Company-Name: <company-name>' \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"agent": {
"agent_name": "Jarvis",
"voice_id": "11labs-Adrian",
"voice_temperature": 1,
"voice_speed": 1,
"volume": 1,
"responsiveness": 1,
"interruption_sensitivity": 1,
"pronunciation_dictionary": [
{
"word": "actually",
"phoneme": "ˈæktʃuəli"
}
],
"enable_backchannel": true,
"backchannel_frequency": 0.9,
"backchannel_words": [
"yeah",
"uh-huh"
],
"vocab_specialization": "general",
"allow_user_dtmf": true,
"user_dtmf_options": {
"digit_limit": 123,
"timeout_ms": 123,
"termination_key": "<string>"
},
"denoising_mode": "noise-cancellation",
"reminder_trigger_ms": 10000,
"reminder_max_count": 2,
"ambient_sound_volume": 1,
"language": "en-US",
"boosted_keywords": [
"aicall",
"kroger"
],
"normalize_for_speech": true,
"end_call_after_silence_ms": 600000,
"max_call_duration_ms": 3600000,
"voicemail_option": {
"action": {
"type": "static_text",
"text": "Please give us a callback tomorrow at 10am."
}
},
"analysis_data": [
{
"type": "string",
"name": "<string>",
"description": "<string>",
"examples": [
"<string>"
]
}
],
"ring_duration_ms": 30000
}
}
'import requests
url = "https://app.closerx.ai/api/agent-llm/"
payload = { "agent": {
"agent_name": "Jarvis",
"voice_id": "11labs-Adrian",
"voice_temperature": 1,
"voice_speed": 1,
"volume": 1,
"responsiveness": 1,
"interruption_sensitivity": 1,
"pronunciation_dictionary": [
{
"word": "actually",
"phoneme": "ˈæktʃuəli"
}
],
"enable_backchannel": True,
"backchannel_frequency": 0.9,
"backchannel_words": ["yeah", "uh-huh"],
"vocab_specialization": "general",
"allow_user_dtmf": True,
"user_dtmf_options": {
"digit_limit": 123,
"timeout_ms": 123,
"termination_key": "<string>"
},
"denoising_mode": "noise-cancellation",
"reminder_trigger_ms": 10000,
"reminder_max_count": 2,
"ambient_sound_volume": 1,
"language": "en-US",
"boosted_keywords": ["aicall", "kroger"],
"normalize_for_speech": True,
"end_call_after_silence_ms": 600000,
"max_call_duration_ms": 3600000,
"voicemail_option": { "action": {
"type": "static_text",
"text": "Please give us a callback tomorrow at 10am."
} },
"analysis_data": [
{
"type": "string",
"name": "<string>",
"description": "<string>",
"examples": ["<string>"]
}
],
"ring_duration_ms": 30000
} }
headers = {
"Company-Name": "<company-name>",
"api_key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'Company-Name': '<company-name>',
api_key: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
agent: {
agent_name: 'Jarvis',
voice_id: '11labs-Adrian',
voice_temperature: 1,
voice_speed: 1,
volume: 1,
responsiveness: 1,
interruption_sensitivity: 1,
pronunciation_dictionary: [{word: 'actually', phoneme: 'ˈæktʃuəli'}],
enable_backchannel: true,
backchannel_frequency: 0.9,
backchannel_words: ['yeah', 'uh-huh'],
vocab_specialization: 'general',
allow_user_dtmf: true,
user_dtmf_options: {digit_limit: 123, timeout_ms: 123, termination_key: '<string>'},
denoising_mode: 'noise-cancellation',
reminder_trigger_ms: 10000,
reminder_max_count: 2,
ambient_sound_volume: 1,
language: 'en-US',
boosted_keywords: ['aicall', 'kroger'],
normalize_for_speech: true,
end_call_after_silence_ms: 600000,
max_call_duration_ms: 3600000,
voicemail_option: {
action: {type: 'static_text', text: 'Please give us a callback tomorrow at 10am.'}
},
analysis_data: [
{
type: 'string',
name: '<string>',
description: '<string>',
examples: ['<string>']
}
],
ring_duration_ms: 30000
}
})
};
fetch('https://app.closerx.ai/api/agent-llm/', 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://app.closerx.ai/api/agent-llm/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'agent' => [
'agent_name' => 'Jarvis',
'voice_id' => '11labs-Adrian',
'voice_temperature' => 1,
'voice_speed' => 1,
'volume' => 1,
'responsiveness' => 1,
'interruption_sensitivity' => 1,
'pronunciation_dictionary' => [
[
'word' => 'actually',
'phoneme' => 'ˈæktʃuəli'
]
],
'enable_backchannel' => true,
'backchannel_frequency' => 0.9,
'backchannel_words' => [
'yeah',
'uh-huh'
],
'vocab_specialization' => 'general',
'allow_user_dtmf' => true,
'user_dtmf_options' => [
'digit_limit' => 123,
'timeout_ms' => 123,
'termination_key' => '<string>'
],
'denoising_mode' => 'noise-cancellation',
'reminder_trigger_ms' => 10000,
'reminder_max_count' => 2,
'ambient_sound_volume' => 1,
'language' => 'en-US',
'boosted_keywords' => [
'aicall',
'kroger'
],
'normalize_for_speech' => true,
'end_call_after_silence_ms' => 600000,
'max_call_duration_ms' => 3600000,
'voicemail_option' => [
'action' => [
'type' => 'static_text',
'text' => 'Please give us a callback tomorrow at 10am.'
]
],
'analysis_data' => [
[
'type' => 'string',
'name' => '<string>',
'description' => '<string>',
'examples' => [
'<string>'
]
]
],
'ring_duration_ms' => 30000
]
]),
CURLOPT_HTTPHEADER => [
"Company-Name: <company-name>",
"Content-Type: application/json",
"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://app.closerx.ai/api/agent-llm/"
payload := strings.NewReader("{\n \"agent\": {\n \"agent_name\": \"Jarvis\",\n \"voice_id\": \"11labs-Adrian\",\n \"voice_temperature\": 1,\n \"voice_speed\": 1,\n \"volume\": 1,\n \"responsiveness\": 1,\n \"interruption_sensitivity\": 1,\n \"pronunciation_dictionary\": [\n {\n \"word\": \"actually\",\n \"phoneme\": \"ˈæktʃuəli\"\n }\n ],\n \"enable_backchannel\": true,\n \"backchannel_frequency\": 0.9,\n \"backchannel_words\": [\n \"yeah\",\n \"uh-huh\"\n ],\n \"vocab_specialization\": \"general\",\n \"allow_user_dtmf\": true,\n \"user_dtmf_options\": {\n \"digit_limit\": 123,\n \"timeout_ms\": 123,\n \"termination_key\": \"<string>\"\n },\n \"denoising_mode\": \"noise-cancellation\",\n \"reminder_trigger_ms\": 10000,\n \"reminder_max_count\": 2,\n \"ambient_sound_volume\": 1,\n \"language\": \"en-US\",\n \"boosted_keywords\": [\n \"aicall\",\n \"kroger\"\n ],\n \"normalize_for_speech\": true,\n \"end_call_after_silence_ms\": 600000,\n \"max_call_duration_ms\": 3600000,\n \"voicemail_option\": {\n \"action\": {\n \"type\": \"static_text\",\n \"text\": \"Please give us a callback tomorrow at 10am.\"\n }\n },\n \"analysis_data\": [\n {\n \"type\": \"string\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"examples\": [\n \"<string>\"\n ]\n }\n ],\n \"ring_duration_ms\": 30000\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Company-Name", "<company-name>")
req.Header.Add("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.patch("https://app.closerx.ai/api/agent-llm/")
.header("Company-Name", "<company-name>")
.header("api_key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"agent\": {\n \"agent_name\": \"Jarvis\",\n \"voice_id\": \"11labs-Adrian\",\n \"voice_temperature\": 1,\n \"voice_speed\": 1,\n \"volume\": 1,\n \"responsiveness\": 1,\n \"interruption_sensitivity\": 1,\n \"pronunciation_dictionary\": [\n {\n \"word\": \"actually\",\n \"phoneme\": \"ˈæktʃuəli\"\n }\n ],\n \"enable_backchannel\": true,\n \"backchannel_frequency\": 0.9,\n \"backchannel_words\": [\n \"yeah\",\n \"uh-huh\"\n ],\n \"vocab_specialization\": \"general\",\n \"allow_user_dtmf\": true,\n \"user_dtmf_options\": {\n \"digit_limit\": 123,\n \"timeout_ms\": 123,\n \"termination_key\": \"<string>\"\n },\n \"denoising_mode\": \"noise-cancellation\",\n \"reminder_trigger_ms\": 10000,\n \"reminder_max_count\": 2,\n \"ambient_sound_volume\": 1,\n \"language\": \"en-US\",\n \"boosted_keywords\": [\n \"aicall\",\n \"kroger\"\n ],\n \"normalize_for_speech\": true,\n \"end_call_after_silence_ms\": 600000,\n \"max_call_duration_ms\": 3600000,\n \"voicemail_option\": {\n \"action\": {\n \"type\": \"static_text\",\n \"text\": \"Please give us a callback tomorrow at 10am.\"\n }\n },\n \"analysis_data\": [\n {\n \"type\": \"string\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"examples\": [\n \"<string>\"\n ]\n }\n ],\n \"ring_duration_ms\": 30000\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.closerx.ai/api/agent-llm/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Company-Name"] = '<company-name>'
request["api_key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent\": {\n \"agent_name\": \"Jarvis\",\n \"voice_id\": \"11labs-Adrian\",\n \"voice_temperature\": 1,\n \"voice_speed\": 1,\n \"volume\": 1,\n \"responsiveness\": 1,\n \"interruption_sensitivity\": 1,\n \"pronunciation_dictionary\": [\n {\n \"word\": \"actually\",\n \"phoneme\": \"ˈæktʃuəli\"\n }\n ],\n \"enable_backchannel\": true,\n \"backchannel_frequency\": 0.9,\n \"backchannel_words\": [\n \"yeah\",\n \"uh-huh\"\n ],\n \"vocab_specialization\": \"general\",\n \"allow_user_dtmf\": true,\n \"user_dtmf_options\": {\n \"digit_limit\": 123,\n \"timeout_ms\": 123,\n \"termination_key\": \"<string>\"\n },\n \"denoising_mode\": \"noise-cancellation\",\n \"reminder_trigger_ms\": 10000,\n \"reminder_max_count\": 2,\n \"ambient_sound_volume\": 1,\n \"language\": \"en-US\",\n \"boosted_keywords\": [\n \"aicall\",\n \"kroger\"\n ],\n \"normalize_for_speech\": true,\n \"end_call_after_silence_ms\": 600000,\n \"max_call_duration_ms\": 3600000,\n \"voicemail_option\": {\n \"action\": {\n \"type\": \"static_text\",\n \"text\": \"Please give us a callback tomorrow at 10am.\"\n }\n },\n \"analysis_data\": [\n {\n \"type\": \"string\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"examples\": [\n \"<string>\"\n ]\n }\n ],\n \"ring_duration_ms\": 30000\n }\n}"
response = http.request(request)
puts response.read_body{
"agent": {
"agent_name": "Jarvis",
"voice_id": "11labs-Adrian",
"voice_temperature": 1,
"voice_speed": 1,
"volume": 1,
"responsiveness": 1,
"interruption_sensitivity": 1,
"pronunciation_dictionary": [
{
"word": "actually",
"phoneme": "ˈæktʃuəli"
}
],
"enable_backchannel": true,
"backchannel_frequency": 0.9,
"backchannel_words": [
"yeah",
"uh-huh"
],
"vocab_specialization": "general",
"allow_user_dtmf": true,
"user_dtmf_options": {
"digit_limit": 123,
"timeout_ms": 123,
"termination_key": "<string>"
},
"denoising_mode": "noise-cancellation",
"reminder_trigger_ms": 10000,
"reminder_max_count": 2,
"ambient_sound_volume": 1,
"language": "en-US",
"boosted_keywords": [
"aicall",
"kroger"
],
"normalize_for_speech": true,
"end_call_after_silence_ms": 600000,
"max_call_duration_ms": 3600000,
"voicemail_option": {
"action": {
"type": "static_text",
"text": "Please give us a callback tomorrow at 10am."
}
},
"analysis_data": [
{
"type": "string",
"name": "<string>",
"description": "<string>",
"examples": [
"<string>"
]
}
],
"ring_duration_ms": 30000
}
}{
"success": true,
"message": "<string>",
"data": {}
}Authorizations
Headers
The name of the schema to be used for the request
Query Parameters
Specifies whether the request is for an agent or LLM
Available options:
agent, llm Example:
"agent"
Unique identifier for the AI call agent or LLM to be updated
Example:
12
Body
application/json
Configuration details to update for the AI call agent or LLM
- Option 1
- Option 2
Show child attributes
Show child attributes
Response
AI call agent or LLM update response
- Option 1
- Option 2
Show child attributes
Show child attributes
⌘I
