{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nitrino-ai/json-schema/nitrino-ai-patch-api-v1-agents-id-request-schema.json",
  "title": "PatchApiV1AgentsIdRequest",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/nitrino-ai-openapi-generated.yml#/components/schemas/PatchApiV1AgentsIdRequest",
  "type": "object",
  "properties": {
    "goal": {
      "type": "string",
      "description": "What the agent leads the conversation towards"
    },
    "rules": {
      "type": "string",
      "description": "How it must behave"
    },
    "knowledge": {
      "type": "string",
      "description": "What it knows about your business"
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the agent works at all"
    },
    "labels": {
      "type": "string",
      "description": "Product tags it covers; empty means every client"
    },
    "members": {
      "type": "string",
      "description": "Whose behalf and channels it writes with"
    },
    "channels": {
      "type": "string",
      "description": "Connections it writes through; empty means every channel of its people"
    },
    "hours": {
      "type": "object",
      "description": "The agent's hours: timezone, from, to, weekends and replies outside the hours"
    },
    "pricing": {
      "type": "string",
      "description": "What it says about money"
    },
    "groups": {
      "type": "string",
      "description": "The group chats it leads, ids from /agents/groups"
    },
    "rank": {
      "type": "integer",
      "description": "Its place among switched‑on agents when several could lead a conversation"
    },
    "maxAuto": {
      "type": "integer",
      "description": "How many letters in a row it writes without an answer"
    },
    "minScore": {
      "type": "integer",
      "description": "Below which closeness to the goal it leaves a silent conversation alone"
    },
    "ignoreAfter": {
      "type": "integer",
      "description": "After how many silent days a conversation counts as abandoned"
    },
    "meetHours": {
      "type": "object",
      "description": "From which hour to which it offers meetings, in the workspace timezone"
    },
    "manners": {
      "type": "object",
      "description": "How it handles silence: replyOnly, stopAfterLink, nudgeAfter, staleAfter"
    },
    "delays": {
      "type": "object",
      "description": "The wait before a letter, per channel: connection, min and max in minutes"
    }
  }
}