{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ibm-api-connect/json-schema/ibm-api-connect-portal-chatbot-schema.json",
  "title": "PortalChatbot",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ibm-api-connect-portal-api-openapi.yml#/components/schemas/PortalChatbot",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "type": {
      "type": "string",
      "description": "Request/response type. Use 'user-message' to send a message. Use 'user-plan' to execute a plan (toolcalls required). Response types include 'agent-plan' and 'agent-response'."
    },
    "message": {
      "type": "string",
      "description": "The user's message to send to the AI agent (used with type 'user-message')",
      "maxLength": 4000
    },
    "agent_message": {
      "type": "string",
      "description": "The AI agent's response message",
      "items": {
        "type": "object"
      }
    },
    "plan_title": {
      "type": [
        "string",
        "null"
      ],
      "description": "Title of the plan from the AI agent"
    },
    "plan_description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Description of the plan from the AI agent"
    }
  }
}