更新聊天机器人设置
开发环境
开发环境
POST
/api/v1/update-chatbot-settings
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/api/v1/update-chatbot-settings' \
--header 'content-type: application/json' \
--data-raw '{
"collectCustomerInformation": {
"name": {
"label": "Name",
"active": true
}
},
"styles": {
"theme": "dark",
"userMessageColor": "#3B81F7",
"buttonColor": "#3B81F7",
"displayName": "Product Hunt",
"autoOpenChatWindowAfter": 4,
"alignChatButton": "left"
},
"chatbotId": "[Your ChatbotID]",
"name": "my Chatbot",
"instructions": "I want you to act as a document that I am having a conversation with. Your name is \"AI Assistant\". You will provide me with answers from the given info. If the answer is not included, say exactly \"Hmm, I am not sure.\" and stop after that. Refuse to answer any question not about the info. Never break character.",
"initialMessages": [
"Hi! What can I help you with?"
],
"suggestedMessages": [
"Hi! What are you?"
],
"visibility": "private",
"onlyAllowOnAddedDomains": true,
"domains": [
"example.com"
],
"ipLimit": 20,
"ipLimitTimeframe": 240,
"ipLimitMessage": "Too many messages in a row",
"model": "gpt-4",
"temp": 0.2
}'
响应示例响应示例
200 - 成功示例
返回成功消息,表明 聊天机器人设置已成功更新。
请求参数
Header 参数
content-type
string
必需
示例值:
application/json
Body 参数application/json
返回响应
修改于 2024-03-20 09:58:06