Update Chatbot

Update Chatbot

patch/api/external/chatbots

Query parameters

idstring
Example:a9158955-2f82-4ec1-8d3e-0b24d79f53e4

Headers

x-api-keystring
Example:4358d60b39ef0df47f421c0d58331407ec609abb6355dfa4

Request body

descriptionstring
is_publicboolean
namestring
slugstring

Example request

{
  "description": "A helpful support assistant",
  "is_public": true,
  "name": "Customer Support External Bot!",
  "settings": {
    "avatar": "https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/chatbot/a9158955-2f82-4ec1-8d3e-0b24d79f53e4/0.9680291497355293.jpg",
    "greeting": "Hello! How can I assist you today?",
    "isToolEnabled": true,
    "model": "gpt-4o",
    "prompt": "You are a helpful and friendly customer support agent. Respond to user inquiries in a clear and concise manner. Always strive to provide accurate and helpful information.",
    "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": "customer-support-bot-98"
}

Changes