curl --request PUT \
--url https://api.cleartalk.ai/web-agent/{id}/settings \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"phoneNumber": "+1234567890",
"max_duration": 300,
"temperature": 0.7,
"voiceSpeed": 1,
"similarity": 0.75,
"stability": 0.5,
"background_track": "background_music.mp3",
"interruptionThreshold": 1000,
"calendarID": "cal_123456",
"calendarName": "Business Hours",
"pathwayID": "path_123456",
"customTool": [],
"inboundCustomTool": [],
"waitForGreeting": true,
"questionsData": [
{
"question": "What is your name?",
"questionType": "text"
}
],
"appointmentAgent": true,
"task": "Handle customer inquiries",
"knowledgeName": "customer_support",
"transferPhoneNumber": "+1987654321",
"selectedVoice": "Maya",
"model": "enhanced",
"firstSentence": "Hello, how can I help you today?",
"selectedLanguage": "en",
"agentName": "Customer Support Agent",
"store": true,
"webSettings": {
"button_text": "<string>",
"button_background_color": "<string>",
"text_color": "<string>",
"font_size": "<string>",
"button_hover_background_color": "<string>",
"border_radius": "<string>",
"show_avatar": false,
"avatar_image_url": "<string>",
"icon_color": "<string>",
"container_background_color": "<string>",
"base_url_for_embed": "<string>",
"generated_iframe_url": "<string>",
"iframe_embed_code": "<string>",
"mobile_logo_url": "<string>",
"mobile_brand_name": "<string>",
"mobile_brand_tagline": "<string>",
"mobile_logo_position": "<string>",
"mobile_brand_name_position": "<string>",
"mobile_background_color": "<string>",
"mobile_gradient_start_color": "<string>",
"mobile_gradient_end_color": "<string>",
"mobile_text_color": "<string>",
"mobile_secondary_text_color": "<string>",
"mobile_answer_button_color": "<string>",
"mobile_end_button_color": "<string>",
"mobile_slide_bar_color": "<string>",
"mobile_slide_bar_opacity": "<string>",
"mobile_remember_me_icon": "<string>",
"mobile_message_icon": "<string>",
"mobile_phone_icon": "<string>",
"mobile_end_call_icon": "<string>",
"mobile_remind_me_text": "<string>",
"mobile_message_text": "<string>",
"mobile_slide_to_answer_text": "<string>",
"mobile_base_url_for_embed": "<string>",
"mobile_generated_iframe_url": "<string>",
"mobile_iframe_embed_code": "<string>",
"orb_button_border_radius": "<string>",
"orb_button_size": "<string>",
"orb_blink_color": "<string>",
"orb_icon_color": "<string>",
"orb_icon_size": "<string>",
"orb_button_bg_color": "<string>",
"orb_base_url": "<string>",
"orb_iframe_url": "<string>",
"orb_iframe_embed_code": "<string>"
}
}
'{
"status": "success",
"message": "Agent updated successfully",
"agent_id": "agent_123456"
}curl --request PUT \
--url https://api.cleartalk.ai/web-agent/{id}/settings \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"phoneNumber": "+1234567890",
"max_duration": 300,
"temperature": 0.7,
"voiceSpeed": 1,
"similarity": 0.75,
"stability": 0.5,
"background_track": "background_music.mp3",
"interruptionThreshold": 1000,
"calendarID": "cal_123456",
"calendarName": "Business Hours",
"pathwayID": "path_123456",
"customTool": [],
"inboundCustomTool": [],
"waitForGreeting": true,
"questionsData": [
{
"question": "What is your name?",
"questionType": "text"
}
],
"appointmentAgent": true,
"task": "Handle customer inquiries",
"knowledgeName": "customer_support",
"transferPhoneNumber": "+1987654321",
"selectedVoice": "Maya",
"model": "enhanced",
"firstSentence": "Hello, how can I help you today?",
"selectedLanguage": "en",
"agentName": "Customer Support Agent",
"store": true,
"webSettings": {
"button_text": "<string>",
"button_background_color": "<string>",
"text_color": "<string>",
"font_size": "<string>",
"button_hover_background_color": "<string>",
"border_radius": "<string>",
"show_avatar": false,
"avatar_image_url": "<string>",
"icon_color": "<string>",
"container_background_color": "<string>",
"base_url_for_embed": "<string>",
"generated_iframe_url": "<string>",
"iframe_embed_code": "<string>",
"mobile_logo_url": "<string>",
"mobile_brand_name": "<string>",
"mobile_brand_tagline": "<string>",
"mobile_logo_position": "<string>",
"mobile_brand_name_position": "<string>",
"mobile_background_color": "<string>",
"mobile_gradient_start_color": "<string>",
"mobile_gradient_end_color": "<string>",
"mobile_text_color": "<string>",
"mobile_secondary_text_color": "<string>",
"mobile_answer_button_color": "<string>",
"mobile_end_button_color": "<string>",
"mobile_slide_bar_color": "<string>",
"mobile_slide_bar_opacity": "<string>",
"mobile_remember_me_icon": "<string>",
"mobile_message_icon": "<string>",
"mobile_phone_icon": "<string>",
"mobile_end_call_icon": "<string>",
"mobile_remind_me_text": "<string>",
"mobile_message_text": "<string>",
"mobile_slide_to_answer_text": "<string>",
"mobile_base_url_for_embed": "<string>",
"mobile_generated_iframe_url": "<string>",
"mobile_iframe_embed_code": "<string>",
"orb_button_border_radius": "<string>",
"orb_button_size": "<string>",
"orb_blink_color": "<string>",
"orb_icon_color": "<string>",
"orb_icon_size": "<string>",
"orb_button_bg_color": "<string>",
"orb_base_url": "<string>",
"orb_iframe_url": "<string>",
"orb_iframe_embed_code": "<string>"
}
}
'{
"status": "success",
"message": "Agent updated successfully",
"agent_id": "agent_123456"
}API Key for authentication
The ID of the web agent to update
Phone number for the agent
"+1234567890"
Maximum duration for the agent in seconds
300
Temperature setting for the agent
0.7
Voice speed setting
1
Similarity setting for voice
0.75
Stability setting for voice
0.5
Background track for the agent
"background_music.mp3"
Interruption threshold in milliseconds
1000
Calendar ID for appointments
"cal_123456"
Calendar name
"Business Hours"
Pathway ID
"path_123456"
Custom tools metadata
[]Inbound custom tools
[]Wait for greeting setting
true
Agent questions data
[
{
"question": "What is your name?",
"questionType": "text"
}
]Appointment agent setting
true
Task description
"Handle customer inquiries"
Knowledge base name
"customer_support"
Transfer phone number
"+1987654321"
Selected voice
"Maya"
AI model to use
"enhanced"
First sentence for the agent
"Hello, how can I help you today?"
Selected language
"en"
Agent name
"Customer Support Agent"
Store setting
true
Web agent settings
Show child attributes