{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crevio-co/json-schema/crevio-co-ai-bot-request-schema.json",
  "title": "AiBotRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crevio-co-bots-api-openapi.yml#/components/schemas/AiBotRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "handle": {
      "type": "string"
    },
    "role": {
      "type": [
        "string",
        "null"
      ]
    },
    "persona": {
      "type": [
        "string",
        "null"
      ]
    },
    "position": {
      "type": "integer"
    },
    "avatar_style": {
      "type": "object",
      "properties": {
        "shape": {
          "type": "string"
        },
        "color": {
          "type": "string"
        }
      }
    },
    "skill_slugs": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "Restrict the bot to these skills. `null` means every skill; `[]` means none. Omit to leave unchanged."
    },
    "toolsets": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "Restrict the bot to these toolsets (crevio_platform, crevio_onboarding, crevio_docs, crevio_api, integrations). `null` means every toolset; `[]` means none. Omit to leave unchanged."
    },
    "model_tier": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "fast",
        "balanced",
        "quality",
        null
      ],
      "description": "Which model tier the bot runs on: `fast` (cheapest, for checks and short reviews), `balanced`, or `quality`. `null` uses the account default. Omit to leave unchanged."
    }
  }
}