curl --request PATCH \
--url https://api.cleartalk.ai/chatbot/{id} \
--header 'Content-Type: multipart/form-data' \
--header 'x-api-key: <api-key>' \
--form chatbot_image='@example-file' \
--form bubbleIconImage='@example-file' \
--form 'chatbotName=<string>' \
--form 'chatbot_title=<string>' \
--form 'header_color=<string>' \
--form 'background_color=<string>' \
--form 'text_color=<string>' \
--form 'pathway_id=<string>' \
--form 'welcome_message=<string>' \
--form auto_open=true \
--form 'user_message_color=<string>' \
--form 'input_placeholder=<string>' \
--form 'greeting_text=<string>' \
--form show_branding=true \
--form 'input_bg_color=<string>'import requests
url = "https://api.cleartalk.ai/chatbot/{id}"
files = {
"chatbot_image": ("example-file", open("example-file", "rb")),
"bubbleIconImage": ("example-file", open("example-file", "rb"))
}
payload = {
"chatbotName": "<string>",
"chatbot_title": "<string>",
"header_color": "<string>",
"background_color": "<string>",
"text_color": "<string>",
"pathway_id": "<string>",
"welcome_message": "<string>",
"auto_open": "true",
"user_message_color": "<string>",
"input_placeholder": "<string>",
"greeting_text": "<string>",
"show_branding": "true",
"input_bg_color": "<string>"
}
headers = {"x-api-key": "<api-key>"}
response = requests.patch(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('chatbot_image', '<string>');
form.append('bubbleIconImage', '<string>');
form.append('chatbotName', '<string>');
form.append('chatbot_title', '<string>');
form.append('header_color', '<string>');
form.append('background_color', '<string>');
form.append('text_color', '<string>');
form.append('pathway_id', '<string>');
form.append('welcome_message', '<string>');
form.append('auto_open', 'true');
form.append('user_message_color', '<string>');
form.append('input_placeholder', '<string>');
form.append('greeting_text', '<string>');
form.append('show_branding', 'true');
form.append('input_bg_color', '<string>');
const options = {method: 'PATCH', headers: {'x-api-key': '<api-key>'}};
options.body = form;
fetch('https://api.cleartalk.ai/chatbot/{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.cleartalk.ai/chatbot/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbot_image\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"bubbleIconImage\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbotName\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbot_title\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"header_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"background_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"text_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"pathway_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"welcome_message\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"auto_open\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"user_message_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"input_placeholder\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"greeting_text\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"show_branding\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"input_bg_color\"\r\n\r\n<string>\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data",
"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.cleartalk.ai/chatbot/{id}"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbot_image\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"bubbleIconImage\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbotName\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbot_title\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"header_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"background_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"text_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"pathway_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"welcome_message\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"auto_open\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"user_message_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"input_placeholder\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"greeting_text\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"show_branding\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"input_bg_color\"\r\n\r\n<string>\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.cleartalk.ai/chatbot/{id}")
.header("x-api-key", "<api-key>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbot_image\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"bubbleIconImage\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbotName\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbot_title\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"header_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"background_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"text_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"pathway_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"welcome_message\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"auto_open\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"user_message_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"input_placeholder\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"greeting_text\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"show_branding\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"input_bg_color\"\r\n\r\n<string>\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cleartalk.ai/chatbot/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbot_image\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"bubbleIconImage\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbotName\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbot_title\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"header_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"background_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"text_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"pathway_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"welcome_message\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"auto_open\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"user_message_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"input_placeholder\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"greeting_text\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"show_branding\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"input_bg_color\"\r\n\r\n<string>\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"chatbotName": "<string>",
"chatbot_title": "<string>",
"header_color": "#000000",
"background_color": "#FFFFFF",
"text_color": "#000000",
"chatbot_image": "<string>",
"pathway_id": "<string>",
"welcome_message": "Hi! How can I help you today?",
"webhook_url": "https://example.com/webhook",
"template": "modern",
"bubble_icon": "message-circle",
"bubble_position": "bottom-right",
"bubble_size": "medium",
"auto_open": false,
"user_message_color": "#007bff",
"input_placeholder": "Ask me anything...",
"greeting_text": "Hi! Need help?",
"show_branding": true,
"bubble_icon_image": "<string>",
"input_bg_color": "#f0f0f0",
"persistent_buttons": [
{
"label": "Schedule Call",
"icon": "phone",
"action_type": "url",
"action_value": "https://calendly.com/demo"
}
]
}Update a chatbot
curl --request PATCH \
--url https://api.cleartalk.ai/chatbot/{id} \
--header 'Content-Type: multipart/form-data' \
--header 'x-api-key: <api-key>' \
--form chatbot_image='@example-file' \
--form bubbleIconImage='@example-file' \
--form 'chatbotName=<string>' \
--form 'chatbot_title=<string>' \
--form 'header_color=<string>' \
--form 'background_color=<string>' \
--form 'text_color=<string>' \
--form 'pathway_id=<string>' \
--form 'welcome_message=<string>' \
--form auto_open=true \
--form 'user_message_color=<string>' \
--form 'input_placeholder=<string>' \
--form 'greeting_text=<string>' \
--form show_branding=true \
--form 'input_bg_color=<string>'import requests
url = "https://api.cleartalk.ai/chatbot/{id}"
files = {
"chatbot_image": ("example-file", open("example-file", "rb")),
"bubbleIconImage": ("example-file", open("example-file", "rb"))
}
payload = {
"chatbotName": "<string>",
"chatbot_title": "<string>",
"header_color": "<string>",
"background_color": "<string>",
"text_color": "<string>",
"pathway_id": "<string>",
"welcome_message": "<string>",
"auto_open": "true",
"user_message_color": "<string>",
"input_placeholder": "<string>",
"greeting_text": "<string>",
"show_branding": "true",
"input_bg_color": "<string>"
}
headers = {"x-api-key": "<api-key>"}
response = requests.patch(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('chatbot_image', '<string>');
form.append('bubbleIconImage', '<string>');
form.append('chatbotName', '<string>');
form.append('chatbot_title', '<string>');
form.append('header_color', '<string>');
form.append('background_color', '<string>');
form.append('text_color', '<string>');
form.append('pathway_id', '<string>');
form.append('welcome_message', '<string>');
form.append('auto_open', 'true');
form.append('user_message_color', '<string>');
form.append('input_placeholder', '<string>');
form.append('greeting_text', '<string>');
form.append('show_branding', 'true');
form.append('input_bg_color', '<string>');
const options = {method: 'PATCH', headers: {'x-api-key': '<api-key>'}};
options.body = form;
fetch('https://api.cleartalk.ai/chatbot/{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.cleartalk.ai/chatbot/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbot_image\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"bubbleIconImage\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbotName\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbot_title\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"header_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"background_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"text_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"pathway_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"welcome_message\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"auto_open\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"user_message_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"input_placeholder\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"greeting_text\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"show_branding\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"input_bg_color\"\r\n\r\n<string>\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data",
"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.cleartalk.ai/chatbot/{id}"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbot_image\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"bubbleIconImage\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbotName\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbot_title\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"header_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"background_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"text_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"pathway_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"welcome_message\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"auto_open\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"user_message_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"input_placeholder\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"greeting_text\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"show_branding\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"input_bg_color\"\r\n\r\n<string>\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.cleartalk.ai/chatbot/{id}")
.header("x-api-key", "<api-key>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbot_image\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"bubbleIconImage\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbotName\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbot_title\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"header_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"background_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"text_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"pathway_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"welcome_message\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"auto_open\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"user_message_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"input_placeholder\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"greeting_text\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"show_branding\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"input_bg_color\"\r\n\r\n<string>\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cleartalk.ai/chatbot/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbot_image\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"bubbleIconImage\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbotName\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"chatbot_title\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"header_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"background_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"text_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"pathway_id\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"welcome_message\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"auto_open\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"user_message_color\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"input_placeholder\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"greeting_text\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"show_branding\"\r\n\r\ntrue\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"input_bg_color\"\r\n\r\n<string>\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"chatbotName": "<string>",
"chatbot_title": "<string>",
"header_color": "#000000",
"background_color": "#FFFFFF",
"text_color": "#000000",
"chatbot_image": "<string>",
"pathway_id": "<string>",
"welcome_message": "Hi! How can I help you today?",
"webhook_url": "https://example.com/webhook",
"template": "modern",
"bubble_icon": "message-circle",
"bubble_position": "bottom-right",
"bubble_size": "medium",
"auto_open": false,
"user_message_color": "#007bff",
"input_placeholder": "Ask me anything...",
"greeting_text": "Hi! Need help?",
"show_branding": true,
"bubble_icon_image": "<string>",
"input_bg_color": "#f0f0f0",
"persistent_buttons": [
{
"label": "Schedule Call",
"icon": "phone",
"action_type": "url",
"action_value": "https://calendly.com/demo"
}
]
}Authorizations
API Key for authentication
Path Parameters
Chatbot ID
Body
classic, modern, glassmorphism message-circle, sparkles, bot, headphones, help-circle, heart bottom-right, bottom-left, bottom-center small, medium, large Response
Chatbot updated successfully
Name of the chatbot
Title of the chatbot
Header color in hex format
"#000000"
Background color in hex format
"#FFFFFF"
Text color in hex format
"#000000"
Path to chatbot image
Pathway ID
Welcome message shown when chat starts
"Hi! How can I help you today?"
Webhook URL to receive extracted variables when a conversation completes
"https://example.com/webhook"
UI template for the chatbot widget
classic, modern, glassmorphism "modern"
Icon for the chat bubble
message-circle, sparkles, bot, headphones, help-circle, heart "message-circle"
Position of the chat bubble
bottom-right, bottom-left, bottom-center "bottom-right"
Size of the chat bubble
small, medium, large "medium"
Whether the chat window opens automatically
false
Color for user message bubbles (hex)
"#007bff"
Placeholder text for the message input
"Ask me anything..."
Greeting text shown as a tooltip near the chat bubble
"Hi! Need help?"
Show "Powered by ClearTalk" branding in chat footer
true
Custom bubble icon image path (uploaded file)
Input text box background color (hex)
"#f0f0f0"
Persistent action buttons shown at bottom of chat widget (max 4)
[
{
"label": "Schedule Call",
"icon": "phone",
"action_type": "url",
"action_value": "https://calendly.com/demo"
}
]
