{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nitrino-ai/json-schema/nitrino-ai-post-api-v1-agents-request-schema.json",
  "title": "PostApiV1AgentsRequest",
  "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/PostApiV1AgentsRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "What the agent is called in the list"
    },
    "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"
    },
    "company": {
      "type": "string",
      "description": "On whose behalf it writes"
    },
    "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"
    },
    "confirmed": {
      "type": "boolean",
      "description": "true is the person’s yes to the agent starting to write by itself; needed along with the send scope when the change switches such an agent on or sets sendMode to auto"
    }
  },
  "required": [
    "name",
    "goal",
    "confirmed"
  ]
}