Update Chatbot

Update Chatbot

patch/api/external/chatbots

Query parameters

idstring
Example:3317853e-0af2-427d-a56f-351a9587f48f

Headers

x-api-keystring
Example:15a23c21867f4f38b0b46f5e4adb1caf87a040b34eb58f68

Request body

descriptionstring
is_publicboolean
namestring

Example request

{
  "description": "A helpful support assistant",
  "name": "API Docs Demo Chatbot",
  "personality_config": {
    "style": "Friendly",
    "tone": "Professional"
  },
  "settings": {
    "greeting": "Hello! How can I assist you today?",
    "isToolEnabled": true,
    "model": "gpt-4o-mini",
    "prompt": "You are a highly skilled customer support assistant for [company name]. Your goal is to provide accurate, polite, and concise answers to customer inquiries. If you do not know the answer, recommend the customer to contact human support or check the FAQ section. Ensure a positive tone in all responses",
    "snippet": {
      "header": "Customer Support",
      "logo": "https://example.com/logo.png",
      "name": "Support Assistant",
      "primaryColor": "#4F46E5",
      "secondaryColor": "#10B981",
      "slogan": "How can I help you today?"
    }
  }
}

Response

Example

messagestring

Example response

{
  "chatbot": {
    "active": true,
    "created_at": "2025-01-22T04:30:45.790337+00:00",
    "description": "A helpful support assistant",
    "id": "3317853e-0af2-427d-a56f-351a9587f48f",
    "name": "API Docs Demo Chatbot",
    "organization_id": "123042b2-86e2-4184-a86e-95423d728815",
    "personality_config": {
      "style": "Friendly",
      "tone": "Professional"
    },
    "settings": {
      "greeting": "Hello! How can I assist you today?",
      "isToolEnabled": true,
      "model": "gpt-4o-mini",
      "prompt": "You are a highly skilled customer support assistant for [company name]. Your goal is to provide accurate, polite, and concise answers to customer inquiries. If you do not know the answer, recommend the customer to contact human support or check the FAQ section. Ensure a positive tone in all responses",
      "snippet": {
        "header": "Customer Support",
        "logo": "https://example.com/logo.png",
        "name": "Support Assistant",
        "primaryColor": "#4F46E5",
        "secondaryColor": "#10B981",
        "slogan": "How can I help you today?"
      }
    },
    "slug": "api-docs-demo-chatbot",
    "updated_at": "2025-01-22T04:30:45.790337+00:00"
  },
  "message": "Chatbot updated successfully"
}

Changes

Changed in 2 of the 10 revisions of this API.1244

  • b8640ab9f7e022See the full diff
    • removed the request property settings/avatar

      request-property-removed

    • removed the request property slug

      request-property-removed

    • added the new optional request property personality_config

      new-optional-request-property

    • added the media type application/json for the response with the status 200

      response-media-type-added

  • 9a74b2d0931e1222See the full diff
    • removed the media type application/json for the response with the status 200

      response-media-type-removed

    • the optional response header CF-RAY removed for the status 200

      optional-response-header-removed

    • the optional response header Cache-Control removed for the status 200

      optional-response-header-removed

    • the optional response header Connection removed for the status 200

      optional-response-header-removed

    • the optional response header Content-Encoding removed for the status 200

      optional-response-header-removed

    • the optional response header Date removed for the status 200

      optional-response-header-removed

    • the optional response header NEL removed for the status 200

      optional-response-header-removed

    • the optional response header Report-To removed for the status 200

      optional-response-header-removed

    • the optional response header Server removed for the status 200

      optional-response-header-removed

    • the optional response header Transfer-Encoding removed for the status 200

      optional-response-header-removed

    • the optional response header access-control-allow-credentials removed for the status 200

      optional-response-header-removed

    • the optional response header access-control-allow-headers removed for the status 200

      optional-response-header-removed

    • the optional response header access-control-allow-methods removed for the status 200

      optional-response-header-removed

    • the optional response header access-control-allow-origin removed for the status 200

      optional-response-header-removed

    • the optional response header alt-svc removed for the status 200

      optional-response-header-removed

    • the optional response header cf-cache-status removed for the status 200

      optional-response-header-removed

    • the optional response header server-timing removed for the status 200

      optional-response-header-removed

    • the optional response header strict-transport-security removed for the status 200

      optional-response-header-removed

    • the optional response header vary removed for the status 200

      optional-response-header-removed

    • the optional response header x-matched-path removed for the status 200

      optional-response-header-removed

    • the optional response header x-vercel-cache removed for the status 200

      optional-response-header-removed

    • the optional response header x-vercel-id removed for the status 200

      optional-response-header-removed

    • removed the request property personality_config

      request-property-removed

    • added the new optional request property settings/avatar

      new-optional-request-property

    • added the new optional request property slug

      new-optional-request-property