SiteGPT
    SiteGPT
    • 入门
    • 获取所有聊天机器人
      GET
    • 创建聊天机器人
      POST
    • 获取聊天机器人
      GET
    • 删除聊天机器人
      DELETE
    • 更新聊天机器人外观
      PATCH
    • 修改聊天机器人自定义内容
      POST
    • 获取所有后续提示
      GET
    • 添加跟进提示
      POST
    • 获取后续提示
      GET
    • 删除后续提示
      DELETE
    • 更新跟进提示
      PATCH
    • 更新聊天机器人图标
      POST
    • 删除聊天机器人图标
      DELETE
    • 获取链接
      GET
    • 添加聊天机器人链接
      POST
    • 发信息
      POST
    • 更新消息
      PATCH
    • 添加聊天机器人提示
      POST
    • 删除聊天机器人提示
      DELETE
    • 更新聊天机器人提示
      PATCH
    • 获取所有快速提示
      GET
    • 添加快速提示
      POST
    • 获取快速提示
      GET
    • 删除快速提示
      DELETE
    • 更新快速提示
      PATCH
    • 更新聊天机器人设置 - 高级
      PATCH
    • 更新聊天机器人设置 - 聊天模式
      PATCH
    • 更新聊天机器人设置 - 常规
      PATCH
    • 更新聊天机器人设置 - 本地化
      PATCH
    • 更新聊天机器人设置 - 用户数据
      PATCH
    • 获取所有线程
      GET
    • 获取线程
      GET
    • 更新主题
      PATCH
    • 升级对话
      POST
    • 获取白标品牌
      GET
    • 获取白标品牌
      GET
    • 添加白标用户
      POST
    • 更新白标用户
      PATCH

      更新聊天机器人设置 - 本地化

      开发环境
      开发环境
      PATCH
      /api/v0/chatbots/{chatbotId}/settings/localization
      更新聊天机器人的本地化设置
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request PATCH 'http://dev-cn.your-api-server.com/api/v0/chatbots//settings/localization' \
      --header 'Authorization: Bearer <token>' \
      --header 'Content-Type: application/json' \
      --data-raw '{
        "chatHome": {
          "home": "Home",
          "addDetails": "Add details",
          "startConversation": "Start a conversation",
          "starting": "Starting..."
        },
        "chatMessages": {
          "messages": "Messages",
          "noMessages": "No Messages",
          "loginToSeeHistory": "Verify your email to save your conversation history.",
          "historyShowsUpHere": "Your conversation history shows up here.",
          "verifyEmail": "Verify your email",
          "startConversation": "Start a conversation",
          "starting": "Starting..."
        },
        "chatMessage": {
          "botName": "Bot",
          "yourName": "You",
          "agentName": "Agent",
          "escalationHeading": "Are you sure you want to escalate the chat to human support?",
          "escalationSubHeading": "This conversation will be shared with the human support and they will get back to you as soon as they can.",
          "yesContinue": "Yes, continue",
          "cancel": "Cancel",
          "conversationEscalated": "👨‍💼 Conversation changed to human mode"
        },
        "chatAccount": {
          "account": "Account",
          "verifyEmail": "Verify your email",
          "loginToSeeHistory": "Verify your email to save your chat history.",
          "emailLabel": "Email",
          "nameLabel": "Name",
          "phoneLabel": "Phone Number",
          "sendingOtp": "Sending OTP...",
          "verifyOtp": "Verify OTP",
          "sentOtpToEmail": "We sent the OTP to your email address",
          "otp": "OTP",
          "verifyAndContinue": "Verify & Continue",
          "notReceivedOtpYet": "Didn'\''t receive OTP yet?",
          "resend": "Resend",
          "editDetails": "Edit Details",
          "resetting": "Resetting...",
          "verifying": "Verifying...",
          "logout": "Logout",
          "loggingOut": "Logging out...",
          "verified": "Verified",
          "edit": "Edit",
          "update": "Update",
          "updating": "Updating..."
        }
      }'
      响应示例响应示例
      200 - 成功示例
      {
        "success": true,
        "message": "Updated localization settings of the chatbot successfully",
        "data": {}
      }

      请求参数

      Path 参数
      chatbotId
      string 
      必需
      聊天机器人的 ID
      Header 参数
      Authorization
      string 
      必需
      示例值:
      Bearer <token>
      Content-Type
      string 
      必需
      示例值:
      application/json
      Body 参数application/json
      chatHome
      object 
      可选
      聊天机器人主屏幕的本地化设置
      home
      string 
      必需
      addDetails
      string 
      必需
      startConversation
      string 
      必需
      starting
      string 
      必需
      chatMessages
      object 
      可选
      聊天机器人中消息屏幕的本地化设置
      messages
      string 
      必需
      noMessages
      string 
      必需
      loginToSeeHistory
      string 
      必需
      historyShowsUpHere
      string 
      必需
      verifyEmail
      string 
      必需
      startConversation
      string 
      必需
      starting
      string 
      必需
      chatMessage
      object 
      可选
      聊天机器人中各个对话的本地化设置
      botName
      string 
      必需
      yourName
      string 
      必需
      agentName
      string 
      必需
      escalationHeading
      string 
      必需
      escalationSubHeading
      string 
      必需
      yesContinue
      string 
      必需
      cancel
      string 
      必需
      conversationEscalated
      string 
      必需
      chatAccount
      object 
      可选
      聊天机器人中帐户屏幕的本地化设置
      account
      string 
      必需
      verifyEmail
      string 
      必需
      loginToSeeHistory
      string 
      必需
      emailLabel
      string 
      必需
      nameLabel
      string 
      必需
      phoneLabel
      string 
      必需
      sendingOtp
      string 
      必需
      verifyOtp
      string 
      必需
      sentOtpToEmail
      string 
      必需
      otp
      string 
      必需
      verifyAndContinue
      string 
      必需
      notReceivedOtpYet
      string 
      必需
      resend
      string 
      必需
      editDetails
      string 
      必需
      resetting
      string 
      必需
      verifying
      string 
      必需
      logout
      string 
      必需
      loggingOut
      string 
      必需
      verified
      string 
      必需
      edit
      string 
      必需
      update
      string 
      必需
      updating
      string 
      必需
      示例

      返回响应

      🟢200成功
      application/json
      Body
      success
      boolean 
      必需
      message
      string 
      必需
      data
      object 
      必需
      🟠400请求有误
      🟠401没有权限
      🟠403禁止访问
      🔴500服务器错误
      修改于 2024-03-28 08:26:16
      上一页
      更新聊天机器人设置 - 常规
      下一页
      更新聊天机器人设置 - 用户数据
      Built with