Chatbase
    Chatbase
    • 简介
    • 创建聊天机器人
      POST
    • 向聊天机器人发送消息
      POST
    • 更新聊天机器人
      POST
    • 删除聊天机器人
      DELETE
    • 更新聊天机器人设置
      POST
    • 获取线索
      GET
    • 获取对话
      GET
    • 删除聊天机器人图标
      DELETE
    • 上传聊天机器人图标
      POST
    • 删除聊天机器人个人资料图片
      DELETE
    • 上传聊天机器人个人资料图片
      POST
    • 获取聊天机器人
      GET

      更新聊天机器人设置

      开发环境
      http://dev-cn.your-api-server.com
      开发环境
      http://dev-cn.your-api-server.com
      POST
      /api/v1/update-chatbot-settings
      更新聊天机器人设置 API 允许您编辑聊天机器人的设置,例如其名称、基本提示、初始消息、建议消息、可见性状态、域限制、IP 限制、AI 模型等。
      请求示例请求示例
      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 参数

      Body 参数application/json

      示例

      返回响应

      🟢200成功
      application/json
      Body

      🟠400请求有误
      修改于 2024-03-20 09:58:06
      上一页
      删除聊天机器人
      下一页
      获取线索
      Built with