Chatbot Operations
Update chatbot settings
This API endpoint allows you to edit your chatbot. Only the fields you send are changed; fields set to null are ignored.
post/update-chatbot-settings
Request
- Base URL: https://api.chat-data.com/api/v2
- URL: https://api.chat-data.com/api/v2/update-chatbot-settings
- Auth: HTTP bearer
Request body
Example request
{
"chatbotId": "6650f1c2a9e4b83d2c7a1f05",
"chatbotName": "Support Bot",
"basePrompt": "You are a friendly support assistant for Example Inc. Answer only from the provided knowledge base and keep replies under 120 words.",
"initialMessages": [
"Hi! How can I help you today?"
],
"suggestedMessages": [
"What are your opening hours?",
"How do I track my order?"
],
"domains": [
"example.com",
"chat.example.com"
],
"disallowedUrls": [
"https://www.example.com/checkout"
],
"rateLimitPoints": 20,
"rateLimitTimeframe": 240,
"rateLimitMessage": "Too many messages in a row. Please wait a few minutes and try again.",
"storeChat": true,
"qALinks": [
{
"text": "How to train your chatbot",
"link": "https://cookbook.chat-data.com/docs/train-with-your-data"
}
],
"calendarUrl": "https://calendly.com/jane-doe/30min",
"calendarMessage": "Book a demo",
"calCom": {
"showCalendar": true,
"username": "jane-doe/30min",
"calendarMessage": "Book a demo",
"hideEventTypeDetails": false,
"brandColor": "#292929",
"layout": "month"
},
"bubbleSize": 54,
"inputPlaceholderMsg": "Message...",
"sources": {
"enable": true,
"label": "Sources"
},
"footer": "Replies are generated by AI and may contain mistakes.",
"leadsConfig": {
"message": "Let us know how to contact you.",
"collectName": true,
"collectEmail": true,
"collectPhone": false,
"nameMessage": "Name",
"emailMessage": "Email",
"phoneMessage": "Phone"
},
"styles": {
"theme": "dark",
"buttonColor": "rgb(0, 0, 0)",
"displayName": "Support Bot",
"alignChatButton": "left",
"userMessageColor": "rgb(59, 129, 246)",
"actionButtonColor": "rgb(59, 129, 246)",
"profilePictureFile": "/storage/public/image/avatar_6650f1c2a9e4b83d2c7a1f05.png",
"bubblePictureFile": "/storage/public/image/chat_icon_6650f1c2a9e4b83d2c7a1f05.png",
"autoOpenChatWindowAfter": 3
}
}Response
Successful response.
Changes
No recorded changes to this operation across all 1 revision of this API.