{
  "endpoint": "https://app.solacia.ai/mcp",
  "schema": "solacia.mcp.v1",
  "tools": [
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Get a buyer"
      },
      "description": "One buyer's full record by the `id` find_buyers gives: who they are, priority and why, what they saw and asked with the answers, concerns, meeting request and the drafted follow-up. include=transcript adds the conversation; include=calls adds the voice calls; include=deals adds their deals in the CRM, won, lost or open. The caller's account only; test demos are left out unless asked for.",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "include": {
            "default": "",
            "description": "Comma-separated: transcript, calls, deals.",
            "maxLength": 40,
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "method": "GET",
      "name": "get_buyer",
      "operation": "leads.get",
      "output_schema": {
        "$defs": {
          "Activity": {
            "additionalProperties": false,
            "properties": {
              "first_at": {
                "title": "First At",
                "type": "string"
              },
              "last_at": {
                "title": "Last At",
                "type": "string"
              },
              "minutes": {
                "title": "Minutes",
                "type": "number"
              }
            },
            "required": [
              "first_at",
              "last_at",
              "minutes"
            ],
            "title": "Activity",
            "type": "object"
          },
          "Call": {
            "additionalProperties": false,
            "properties": {
              "ended": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "goodbye, left, idle, limit, timeout, error; null when unknown.",
                "title": "Ended"
              },
              "minutes": {
                "title": "Minutes",
                "type": "number"
              },
              "model": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Always null. Kept so v1 answers stay the same shape.",
                "title": "Model"
              },
              "started_at": {
                "title": "Started At",
                "type": "string"
              },
              "voice": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Always null. Kept so v1 answers stay the same shape.",
                "title": "Voice"
              }
            },
            "required": [
              "started_at",
              "minutes",
              "ended"
            ],
            "title": "Call",
            "type": "object"
          },
          "Concern": {
            "additionalProperties": false,
            "properties": {
              "dealbreaker": {
                "title": "Dealbreaker",
                "type": "boolean"
              },
              "text": {
                "title": "Text",
                "type": "string"
              }
            },
            "required": [
              "text",
              "dealbreaker"
            ],
            "title": "Concern",
            "type": "object"
          },
          "Contact": {
            "additionalProperties": false,
            "properties": {
              "company": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "From the email's domain.",
                "title": "Company"
              },
              "country": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Where their company is based (ISO 3166 code), when the buyer said it.",
                "examples": [
                  "MX"
                ],
                "title": "Country"
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Email"
              },
              "employees": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "How many people their company has: what the buyer said, else the company lookup's.",
                "examples": [
                  250
                ],
                "title": "Employees"
              },
              "role": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Role"
              }
            },
            "required": [
              "email",
              "company",
              "role"
            ],
            "title": "Contact",
            "type": "object"
          },
          "Deal": {
            "additionalProperties": false,
            "description": "A deal the buyer is on in the account's CRM, as the team keeps it there.",
            "properties": {
              "amount": {
                "description": "As the CRM holds it; empty when none.",
                "title": "Amount",
                "type": "string"
              },
              "closed_at": {
                "description": "When it was won or lost, ISO 8601; empty while open.",
                "title": "Closed At",
                "type": "string"
              },
              "currency": {
                "title": "Currency",
                "type": "string"
              },
              "id": {
                "title": "Id",
                "type": "string"
              },
              "name": {
                "title": "Name",
                "type": "string"
              },
              "stage": {
                "description": "Its stage, as the CRM names it.",
                "title": "Stage",
                "type": "string"
              },
              "state": {
                "enum": [
                  "open",
                  "won",
                  "lost"
                ],
                "title": "State",
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "stage",
              "state",
              "amount",
              "currency",
              "closed_at"
            ],
            "title": "Deal",
            "type": "object"
          },
          "FollowUp": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              },
              "subject": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Subject"
              }
            },
            "required": [
              "subject",
              "body"
            ],
            "title": "FollowUp",
            "type": "object"
          },
          "LeadFact": {
            "additionalProperties": false,
            "properties": {
              "group": {
                "title": "Group",
                "type": "string"
              },
              "label": {
                "title": "Label",
                "type": "string"
              },
              "source": {
                "description": "said, confirmed or inferred",
                "title": "Source",
                "type": "string"
              },
              "value": {
                "title": "Value",
                "type": "string"
              }
            },
            "required": [
              "group",
              "label",
              "value",
              "source"
            ],
            "title": "LeadFact",
            "type": "object"
          },
          "LeadQuestion": {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Only an answer that held; null when the team owes it.",
                "title": "Answer"
              },
              "answered": {
                "title": "Answered",
                "type": "boolean"
              },
              "at": {
                "title": "At",
                "type": "string"
              },
              "channel": {
                "title": "Channel",
                "type": "string"
              },
              "question": {
                "title": "Question",
                "type": "string"
              }
            },
            "required": [
              "question",
              "answer",
              "answered",
              "channel",
              "at"
            ],
            "title": "LeadQuestion",
            "type": "object"
          },
          "LeadSource": {
            "additionalProperties": false,
            "description": "Where the buyer came from: your own campaign tags as you wrote them, the campaign, the\npage that brought them to the demo, and Solacia's reading of a channel.",
            "properties": {
              "arrival_url": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The page that brought the buyer, with the tags Solacia kept from its address.",
                "title": "Arrival Url"
              },
              "arrived_at": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "When that visit was, ISO 8601, when the site kept it.",
                "title": "Arrived At"
              },
              "campaign": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The demo link's campaign, else the page's utm_campaign.",
                "title": "Campaign"
              },
              "channel": {
                "description": "Solacia's reading of where the buyer came from, beside your own tags, never in their place: outbound (a personal demo link), paid, email, social, ai_assistant, organic, referral, campaign or direct; by the visit that first brought the buyer to the site when known, else the page the demo opened on.",
                "title": "Channel",
                "type": "string"
              },
              "click_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Which ad click id the visit carried (gclid, msclkid, fbclid, li_fat_id, ...), if any.",
                "title": "Click Id"
              },
              "click_ids": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "The ad click ids of that visit, by name (gclid, msclkid, fbclid, oppref, ...).",
                "title": "Click Ids",
                "type": "object"
              },
              "embedded": {
                "default": false,
                "description": "The demo was opened from the embed on the vendor's own site.",
                "title": "Embedded",
                "type": "boolean"
              },
              "first_touch": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/SourceTouch"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              },
              "landing_page": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The page the demo was opened on.",
                "title": "Landing Page"
              },
              "last_touch": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/SourceTouch"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              },
              "referrer": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Referrer"
              },
              "utm": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Your utm_source, utm_medium, utm_campaign, utm_term and utm_content, exactly as you wrote them, of the visit that first brought the buyer to the site when known, else of the page the demo opened on. Each touch below has its own.",
                "title": "Utm",
                "type": "object"
              }
            },
            "required": [
              "channel"
            ],
            "title": "LeadSource",
            "type": "object"
          },
          "Line": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "title": "At",
                "type": "string"
              },
              "kind": {
                "default": "",
                "description": "An event's kind: opened, played, source, showed, presented, team, call_started or call_ended.",
                "title": "Kind",
                "type": "string"
              },
              "note": {
                "default": "",
                "title": "Note",
                "type": "string"
              },
              "text": {
                "title": "Text",
                "type": "string"
              },
              "what": {
                "default": "",
                "description": "The screen, place or deck the event names, or how the call ended.",
                "title": "What",
                "type": "string"
              },
              "who": {
                "enum": [
                  "buyer",
                  "guide",
                  "event"
                ],
                "title": "Who",
                "type": "string"
              }
            },
            "required": [
              "at",
              "who",
              "text"
            ],
            "title": "Line",
            "type": "object"
          },
          "Network": {
            "additionalProperties": false,
            "properties": {
              "company": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Null when the lookup named no company.",
                "title": "Company"
              },
              "confidence": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The provider's grade: very high, high, moderate, low or very low.",
                "title": "Confidence"
              },
              "domain": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Domain"
              },
              "industry": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Industry"
              },
              "matches_email": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The company's domain is the email's; null when either is missing.",
                "title": "Matches Email"
              },
              "provider": {
                "title": "Provider",
                "type": "string"
              },
              "size": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Employees, as a range such as 51-200.",
                "title": "Size"
              }
            },
            "required": [
              "company",
              "domain",
              "size",
              "industry",
              "confidence",
              "matches_email",
              "provider"
            ],
            "title": "Network",
            "type": "object"
          },
          "Reason": {
            "additionalProperties": false,
            "properties": {
              "text": {
                "title": "Text",
                "type": "string"
              },
              "tone": {
                "enum": [
                  "intent",
                  "fit",
                  "caution"
                ],
                "title": "Tone",
                "type": "string"
              }
            },
            "required": [
              "text",
              "tone"
            ],
            "title": "Reason",
            "type": "object"
          },
          "SourceTouch": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "At"
              },
              "channel": {
                "description": "Solacia's reading of this visit, as the lead's `channel`.",
                "title": "Channel",
                "type": "string"
              },
              "click_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Which ad click id this visit carried, if any.",
                "title": "Click Id"
              },
              "page": {
                "description": "The page's address, without its query.",
                "title": "Page",
                "type": "string"
              },
              "referrer": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The host of the site that sent the buyer there, if another site did.",
                "title": "Referrer"
              },
              "utm": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "The utm_ tags this visit carried, exactly as you wrote them.",
                "title": "Utm",
                "type": "object"
              }
            },
            "required": [
              "page",
              "referrer",
              "channel"
            ],
            "title": "SourceTouch",
            "type": "object"
          },
          "TeamRequest": {
            "additionalProperties": false,
            "properties": {
              "booked": {
                "anyOf": [
                  {
                    "additionalProperties": true,
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The meeting made in the vendor's scheduler.",
                "title": "Booked"
              },
              "requested": {
                "title": "Requested",
                "type": "boolean"
              },
              "slot": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The time they picked, ISO 8601 with offset.",
                "title": "Slot"
              }
            },
            "required": [
              "requested",
              "slot",
              "booked"
            ],
            "title": "TeamRequest",
            "type": "object"
          }
        },
        "additionalProperties": false,
        "description": "One buyer, as of `at`: who they are, why the lead matters, what they saw and asked, whether\nthey want the team, and the follow-up drafted for them. The same record a CRM receives.",
        "properties": {
          "activity": {
            "$ref": "#/$defs/Activity"
          },
          "at": {
            "title": "At",
            "type": "string"
          },
          "calls": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/$defs/Call"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "With include=calls.",
            "title": "Calls"
          },
          "campaign": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The campaign of the personal demo link the buyer came in by, if it named one.",
            "title": "Campaign"
          },
          "concerns": {
            "items": {
              "$ref": "#/$defs/Concern"
            },
            "title": "Concerns",
            "type": "array"
          },
          "contact": {
            "$ref": "#/$defs/Contact"
          },
          "deals": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/$defs/Deal"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "With include=deals: the buyer's deals in the account's CRM, read now.",
            "title": "Deals"
          },
          "event": {
            "description": "lead.snapshot when read here; lead.contact, lead.team_request or lead.call_ended when pushed.",
            "title": "Event",
            "type": "string"
          },
          "facts": {
            "items": {
              "$ref": "#/$defs/LeadFact"
            },
            "title": "Facts",
            "type": "array"
          },
          "fit": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fit"
          },
          "follow_up": {
            "anyOf": [
              {
                "$ref": "#/$defs/FollowUp"
              },
              {
                "type": "null"
              }
            ]
          },
          "link": {
            "description": "The team's page for this buyer.",
            "title": "Link",
            "type": "string"
          },
          "network": {
            "anyOf": [
              {
                "$ref": "#/$defs/Network"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The company the buyer's network address was looked up as when they gave their email, if it was. An office network can name the company; home, mobile and VPN addresses mostly name none."
          },
          "next_meeting": {
            "items": {
              "type": "string"
            },
            "title": "Next Meeting",
            "type": "array"
          },
          "number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Which try of the demo this is; #1 is the first.",
            "title": "Number"
          },
          "priority": {
            "enum": [
              "hot",
              "warm",
              "nurture",
              "cold"
            ],
            "title": "Priority",
            "type": "string"
          },
          "product": {
            "title": "Product",
            "type": "string"
          },
          "questions": {
            "items": {
              "$ref": "#/$defs/LeadQuestion"
            },
            "title": "Questions",
            "type": "array"
          },
          "reasons": {
            "items": {
              "$ref": "#/$defs/Reason"
            },
            "title": "Reasons",
            "type": "array"
          },
          "schema": {
            "default": "solacia.lead.v1",
            "title": "Schema",
            "type": "string"
          },
          "seen": {
            "items": {
              "type": "string"
            },
            "title": "Seen",
            "type": "array"
          },
          "session": {
            "description": "The demo's id; the same as a demo's `id`.",
            "title": "Session",
            "type": "string"
          },
          "source": {
            "anyOf": [
              {
                "$ref": "#/$defs/LeadSource"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Where the buyer came from; null when nobody knows."
          },
          "stages": {
            "description": "How far the demo went: email, call, saw, asked, team.",
            "items": {
              "type": "string"
            },
            "title": "Stages",
            "type": "array"
          },
          "team_request": {
            "$ref": "#/$defs/TeamRequest"
          },
          "test": {
            "description": "One of the vendor's or our own test demos.",
            "title": "Test",
            "type": "boolean"
          },
          "transcript": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/$defs/Line"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "With include=transcript.",
            "title": "Transcript"
          },
          "vendor": {
            "title": "Vendor",
            "type": "string"
          }
        },
        "required": [
          "event",
          "at",
          "product",
          "vendor",
          "session",
          "link",
          "test",
          "contact",
          "priority",
          "fit",
          "reasons",
          "stages",
          "facts",
          "seen",
          "questions",
          "concerns",
          "team_request",
          "next_meeting",
          "follow_up",
          "activity"
        ],
        "title": "Lead",
        "type": "object"
      },
      "path": "/leads/{id}",
      "scope": "leads:read",
      "title": "Get a buyer"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Find buyers"
      },
      "description": "The buyers who took a demo in the last `days` days, one short row each: who they are, company, outcome (meeting, qualified, nurture, anonymous), fit, three facts, their main question, how far they went and when. `q` keeps the buyers whose name, company, role or anything they said holds every word. order=promising puts meetings and qualified buyers first. Pass a row's `id` to get_buyer for the full record. For the rows after these, pass the answer's `next_cursor` as `cursor`. The caller's account only; test demos are left out unless asked for.",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "cursor": {
            "default": "",
            "description": "The previous page's next_cursor; empty for the first page.",
            "maxLength": 2000,
            "type": "string"
          },
          "days": {
            "default": 30,
            "description": "Demos that began in the last `days` days, today included.",
            "maximum": 365,
            "minimum": 1,
            "type": "integer"
          },
          "language": {
            "default": "en",
            "description": "The language the rows' roles and facts are written in: English, Spanish or Portuguese.",
            "enum": [
              "en",
              "es",
              "pt"
            ],
            "type": "string"
          },
          "limit": {
            "default": 20,
            "description": "At most this many buyers; 0 for all of them.",
            "maximum": 500,
            "minimum": 0,
            "type": "integer"
          },
          "order": {
            "default": "promising",
            "description": "newest: by their latest demo. promising: meetings first, then qualified, nurture and no email, each by score.",
            "enum": [
              "newest",
              "promising"
            ],
            "type": "string"
          },
          "q": {
            "default": "",
            "description": "Only the buyers whose name, address, company, role, or anything they said or told the demo (calls included) holds every word of it; case and accents don't matter.",
            "examples": [
              "amex"
            ],
            "maxLength": 120,
            "type": "string"
          },
          "tests": {
            "default": false,
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "method": "GET",
      "name": "find_buyers",
      "operation": "buyers.list",
      "output_schema": {
        "$defs": {
          "Buyer": {
            "additionalProperties": false,
            "description": "One row of the console's Buyers list, one per buyer (their demos joined by work email):\nwho they are, three facts, their main question and where it stands. In preview.",
            "properties": {
              "action": {
                "anyOf": [
                  {
                    "enum": [
                      "book",
                      "prep",
                      "follow_up"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "What a seller does next: book the call they asked for, prep the call they booked, or send the follow-up; empty when there is no way to reach them. In preview.",
                "title": "Action"
              },
              "agent": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Agent"
              },
              "asked": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/BuyerAsked"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "audience": {
                "default": "buyer",
                "description": "Who the demo is for. buyer: someone the vendor could sell to. vendor: a prospect's own people on a link Solacia made. made_up: a made-up buyer on dev. test: an address at the vendor's or Solacia's domain. staff: opened by Solacia's team. try: opened by a try link. rehearsal: the team rehearsing an agent. `test` is true for test, staff, try and rehearsal.",
                "enum": [
                  "buyer",
                  "vendor",
                  "made_up",
                  "test",
                  "staff",
                  "try",
                  "rehearsal"
                ],
                "title": "Audience",
                "type": "string"
              },
              "calls": {
                "description": "Voice calls with the agent.",
                "title": "Calls",
                "type": "integer"
              },
              "company": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Company"
              },
              "crm": {
                "title": "Crm",
                "type": "boolean"
              },
              "demos": {
                "description": "Their demos in all; 2 or more means they came back.",
                "title": "Demos",
                "type": "integer"
              },
              "done": {
                "default": false,
                "description": "The action is done: a teammate marked it, or the call they booked has begun. A new demo or a new action brings it back. In preview.",
                "title": "Done",
                "type": "boolean"
              },
              "door": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "examples": [
                  "site:acme.com"
                ],
                "title": "Door"
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Email"
              },
              "facts": {
                "description": "Three things about their business.",
                "examples": [
                  [
                    "420 employees",
                    "SAP"
                  ]
                ],
                "items": {
                  "type": "string"
                },
                "title": "Facts",
                "type": "array"
              },
              "first_at": {
                "title": "First At",
                "type": "string"
              },
              "fit": {
                "examples": [
                  "ICP"
                ],
                "title": "Fit",
                "type": "string"
              },
              "follow_up": {
                "title": "Follow Up",
                "type": "boolean"
              },
              "found": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/BuyerFound"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "With `q`: what it met in what they said; empty when their name met it."
              },
              "id": {
                "description": "Their newest demo with their email (their newest, when none has it).",
                "title": "Id",
                "type": "string"
              },
              "label": {
                "description": "The outcome in words.",
                "examples": [
                  "Meeting requested"
                ],
                "title": "Label",
                "type": "string"
              },
              "last_at": {
                "title": "Last At",
                "type": "string"
              },
              "logo": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Their company's logo (Brandfetch's CDN), linked, never copied. In preview.",
                "title": "Logo"
              },
              "minutes": {
                "description": "Active minutes in the demo.",
                "title": "Minutes",
                "type": "number"
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The person, when their link's brief or their email names them.",
                "title": "Name"
              },
              "number": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Number"
              },
              "outcome": {
                "enum": [
                  "meeting",
                  "qualified",
                  "nurture",
                  "anonymous"
                ],
                "title": "Outcome",
                "type": "string"
              },
              "qualified": {
                "title": "Qualified",
                "type": "boolean"
              },
              "questions": {
                "title": "Questions",
                "type": "integer"
              },
              "reach": {
                "description": "How far the demo went: opened, saw, asked, talked, asked to meet.",
                "maximum": 5,
                "minimum": 1,
                "title": "Reach",
                "type": "integer"
              },
              "role": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Role"
              },
              "score": {
                "description": "Orders buyers within an outcome: higher is more promising.",
                "title": "Score",
                "type": "integer"
              },
              "seen": {
                "description": "The parts of the product they saw.",
                "title": "Seen",
                "type": "integer"
              },
              "sessions": {
                "description": "Their demos in the period: `id` first, then the rest newest first. Demos share a work email, or ran in the same browser before they gave one.",
                "items": {
                  "type": "string"
                },
                "title": "Sessions",
                "type": "array"
              },
              "size": {
                "description": "Enterprise, Mid-market, SMB, or empty when unknown.",
                "title": "Size",
                "type": "string"
              },
              "slot": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The meeting time the buyer picked.",
                "title": "Slot"
              },
              "test": {
                "title": "Test",
                "type": "boolean"
              },
              "unanswered": {
                "title": "Unanswered",
                "type": "integer"
              }
            },
            "required": [
              "id",
              "number",
              "name",
              "email",
              "company",
              "role",
              "outcome",
              "label",
              "qualified",
              "fit",
              "score",
              "facts",
              "asked",
              "questions",
              "unanswered",
              "reach",
              "size",
              "demos",
              "sessions",
              "minutes",
              "seen",
              "calls",
              "slot",
              "follow_up",
              "crm",
              "agent",
              "door",
              "test",
              "first_at",
              "last_at"
            ],
            "title": "Buyer",
            "type": "object"
          },
          "BuyerAsked": {
            "additionalProperties": false,
            "properties": {
              "answered": {
                "enum": [
                  "yes",
                  "partly",
                  "no"
                ],
                "title": "Answered",
                "type": "string"
              },
              "text": {
                "description": "Their main question, in their own words.",
                "title": "Text",
                "type": "string"
              }
            },
            "required": [
              "text",
              "answered"
            ],
            "title": "BuyerAsked",
            "type": "object"
          },
          "BuyerFound": {
            "additionalProperties": false,
            "description": "Where a search met the buyer: what they said (or a fact the demo learned), cut around\nthe words, with where each word sits.",
            "properties": {
              "at": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "When they said it; empty for a fact.",
                "title": "At"
              },
              "demo": {
                "description": "The demo they said it in.",
                "title": "Demo",
                "type": "string"
              },
              "marks": {
                "description": "[start, end) of each matched word in `text`.",
                "items": {
                  "items": {
                    "type": "integer"
                  },
                  "type": "array"
                },
                "title": "Marks",
                "type": "array"
              },
              "text": {
                "title": "Text",
                "type": "string"
              },
              "where": {
                "description": "Said on a call, written in the chat, a suggested question they tapped, or a fact.",
                "enum": [
                  "call",
                  "chat",
                  "tapped",
                  "fact"
                ],
                "title": "Where",
                "type": "string"
              }
            },
            "required": [
              "where",
              "text",
              "marks",
              "at",
              "demo"
            ],
            "title": "BuyerFound",
            "type": "object"
          }
        },
        "additionalProperties": false,
        "properties": {
          "buyers": {
            "items": {
              "$ref": "#/$defs/Buyer"
            },
            "title": "Buyers",
            "type": "array"
          },
          "days": {
            "title": "Days",
            "type": "integer"
          },
          "hidden_tests": {
            "description": "Test demos left out; ask with tests=true to see them.",
            "title": "Hidden Tests",
            "type": "integer"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Pass it as `cursor` for the buyers after these; empty on the last page.",
            "title": "Next Cursor"
          },
          "total": {
            "default": 0,
            "description": "Buyers that matched, over every page.",
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "days",
          "hidden_tests",
          "buyers"
        ],
        "title": "Buyers",
        "type": "object"
      },
      "path": "/buyers",
      "scope": "demos:read",
      "title": "Find buyers"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Edit a buyer's follow-up email"
      },
      "description": "Replace the follow-up email drafted for a buyer (the `id` find_buyers gives) with this subject and body, kept as the person's edit. Nothing is sent: the team sends it. Given only a change, read the draft with get_buyer first and keep the rest.",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "body": {
            "maxLength": 10000,
            "minLength": 1,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "subject": {
            "maxLength": 300,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id",
          "subject",
          "body"
        ],
        "type": "object"
      },
      "method": "PUT",
      "name": "edit_follow_up",
      "operation": "demos.follow_up",
      "output_schema": {
        "additionalProperties": false,
        "description": "The demo's follow-up email as it now stands. In preview.",
        "properties": {
          "at": {
            "title": "At",
            "type": "string"
          },
          "body": {
            "title": "Body",
            "type": "string"
          },
          "edited_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Who edited it last; none when it is as drafted.",
            "title": "Edited By"
          },
          "language": {
            "title": "Language",
            "type": "string"
          },
          "subject": {
            "title": "Subject",
            "type": "string"
          }
        },
        "required": [
          "subject",
          "body",
          "language",
          "at"
        ],
        "title": "FollowUpDraft",
        "type": "object"
      },
      "path": "/demos/{id}/follow-up",
      "scope": "leads:write",
      "title": "Edit a buyer's follow-up email"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List buyers' questions"
      },
      "description": "Questions buyers asked in demos, newest first, each with the agent's answer and how well it was answered. `q` keeps questions holding those words; answered=false keeps the ones it could not answer. For those grouped, with how often each was asked, use list_unanswered_questions. The caller's account only; test demos are left out unless asked for.",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "answered": {
            "description": "true: answered from a source or in the call; false: not.",
            "type": "boolean"
          },
          "cursor": {
            "default": "",
            "description": "The previous page's next_cursor; empty for the first page.",
            "maxLength": 2000,
            "type": "string"
          },
          "fresh": {
            "default": false,
            "type": "boolean"
          },
          "limit": {
            "default": 20,
            "maximum": 200,
            "minimum": 1,
            "type": "integer"
          },
          "q": {
            "default": "",
            "maxLength": 200,
            "type": "string"
          },
          "since": {
            "default": "",
            "description": "Only demos active at or after this time, ISO 8601 (e.g. 2026-10-01T00:00:00Z).",
            "maxLength": 40,
            "type": "string"
          },
          "tests": {
            "default": false,
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "method": "GET",
      "name": "list_questions",
      "operation": "questions.list",
      "output_schema": {
        "$defs": {
          "Question": {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Answer"
              },
              "area": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Area"
              },
              "at": {
                "title": "At",
                "type": "string"
              },
              "channel": {
                "title": "Channel",
                "type": "string"
              },
              "demo": {
                "title": "Demo",
                "type": "string"
              },
              "schema": {
                "default": "solacia.question.v1",
                "title": "Schema",
                "type": "string"
              },
              "status": {
                "enum": [
                  "sourced",
                  "partial",
                  "unsourced",
                  "spoken",
                  "wrong",
                  "none"
                ],
                "title": "Status",
                "type": "string"
              },
              "text": {
                "title": "Text",
                "type": "string"
              }
            },
            "required": [
              "demo",
              "at",
              "text",
              "channel",
              "answer",
              "status",
              "area"
            ],
            "title": "Question",
            "type": "object"
          }
        },
        "additionalProperties": false,
        "properties": {
          "items": {
            "items": {
              "$ref": "#/$defs/Question"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "total": {
            "default": 0,
            "description": "Questions that matched, over every page.",
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "next_cursor"
        ],
        "title": "QuestionPage",
        "type": "object"
      },
      "path": "/questions",
      "scope": "demos:read",
      "title": "List buyers' questions"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List unanswered questions"
      },
      "description": "Questions the agent could not answer from the vendor's own sources, grouped, most asked first, with how many times and what the agent said instead. status=closed lists the ones the team has answered since; dismissed, the ones it set aside. For the rows after these, pass the answer's `next_cursor` as `cursor`.",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "cursor": {
            "default": "",
            "description": "The previous page's next_cursor; empty for the first page.",
            "maxLength": 2000,
            "type": "string"
          },
          "fresh": {
            "default": false,
            "type": "boolean"
          },
          "language": {
            "default": "en",
            "description": "The language who asked is described in: English, Spanish or Portuguese.",
            "enum": [
              "en",
              "es",
              "pt"
            ],
            "type": "string"
          },
          "limit": {
            "default": 20,
            "description": "At most this many questions; 0 for all of them.",
            "maximum": 500,
            "minimum": 0,
            "type": "integer"
          },
          "status": {
            "default": "open",
            "enum": [
              "open",
              "closed",
              "dismissed",
              "all"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "method": "GET",
      "name": "list_unanswered_questions",
      "operation": "gaps.list",
      "output_schema": {
        "$defs": {
          "Gap": {
            "description": "A question the agent could not settle from the vendor's sources, counted across buyers;\nthe team closes it once with an answer the agent then uses for everyone, or dismisses it.",
            "properties": {
              "answer": {
                "title": "Answer",
                "type": "string"
              },
              "answered_at": {
                "title": "Answered At",
                "type": "string"
              },
              "area": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The product area buyers' askings were routed to.",
                "title": "Area"
              },
              "asked": {
                "title": "Asked",
                "type": "integer"
              },
              "buyers": {
                "description": "Who asked, newest first.",
                "items": {
                  "$ref": "#/$defs/GapBuyer"
                },
                "title": "Buyers",
                "type": "array"
              },
              "dismissed_at": {
                "default": "",
                "description": "When the team dismissed it; empty unless status is dismissed.",
                "title": "Dismissed At",
                "type": "string"
              },
              "dismissed_by": {
                "default": "",
                "description": "Who dismissed it.",
                "title": "Dismissed By",
                "type": "string"
              },
              "key": {
                "title": "Key",
                "type": "string"
              },
              "kind": {
                "enum": [
                  "question",
                  "coverage"
                ],
                "title": "Kind",
                "type": "string"
              },
              "listed_by": {
                "items": {
                  "type": "string"
                },
                "title": "Listed By",
                "type": "array"
              },
              "name": {
                "title": "Name",
                "type": "string"
              },
              "not_listed_by": {
                "items": {
                  "type": "string"
                },
                "title": "Not Listed By",
                "type": "array"
              },
              "question": {
                "title": "Question",
                "type": "string"
              },
              "reason": {
                "title": "Reason",
                "type": "string"
              },
              "said": {
                "title": "Said",
                "type": "string"
              },
              "schema": {
                "default": "solacia.gap.v1",
                "title": "Schema",
                "type": "string"
              },
              "sessions": {
                "items": {
                  "type": "string"
                },
                "title": "Sessions",
                "type": "array"
              },
              "status": {
                "enum": [
                  "open",
                  "closed",
                  "dismissed"
                ],
                "title": "Status",
                "type": "string"
              },
              "variants": {
                "items": {
                  "type": "string"
                },
                "title": "Variants",
                "type": "array"
              },
              "where": {
                "title": "Where",
                "type": "string"
              }
            },
            "required": [
              "key",
              "kind",
              "status",
              "question",
              "asked",
              "sessions",
              "said",
              "reason",
              "name",
              "where",
              "listed_by",
              "not_listed_by",
              "variants",
              "answer",
              "answered_at"
            ],
            "title": "Gap",
            "type": "object"
          },
          "GapBuyer": {
            "additionalProperties": false,
            "description": "A buyer who asked a gap's question: who, how their demo ended, and whether they left\nright after asking.",
            "properties": {
              "asked_at": {
                "title": "Asked At",
                "type": "string"
              },
              "company": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Company"
              },
              "demo": {
                "title": "Demo",
                "type": "string"
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Email"
              },
              "left_after_s": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Seconds from asking to their last activity.",
                "title": "Left After S"
              },
              "left_soon": {
                "default": false,
                "description": "They stopped within 90 seconds of asking.",
                "title": "Left Soon",
                "type": "boolean"
              },
              "outcome": {
                "enum": [
                  "meeting",
                  "qualified",
                  "nurture",
                  "anonymous"
                ],
                "title": "Outcome",
                "type": "string"
              },
              "role": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Role"
              },
              "test": {
                "title": "Test",
                "type": "boolean"
              }
            },
            "required": [
              "demo",
              "company",
              "role",
              "email",
              "outcome",
              "asked_at",
              "test"
            ],
            "title": "GapBuyer",
            "type": "object"
          }
        },
        "additionalProperties": false,
        "properties": {
          "built_at": {
            "title": "Built At",
            "type": "number"
          },
          "items": {
            "items": {
              "$ref": "#/$defs/Gap"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Pass it as `cursor` for the questions after these; empty on the last page.",
            "title": "Next Cursor"
          },
          "open": {
            "title": "Open",
            "type": "integer"
          },
          "topics": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "The product's areas (a gap's or a question's `area`) named as topics, in `language`.",
            "title": "Topics",
            "type": "object"
          },
          "total": {
            "default": 0,
            "description": "Questions that matched, over every page.",
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "open",
          "built_at"
        ],
        "title": "GapList",
        "type": "object"
      },
      "path": "/gaps",
      "scope": "demos:read",
      "title": "List unanswered questions"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Answer a question the agent couldn't"
      },
      "description": "Give the agent the team's answer to a question it could not answer (a `key` list_unanswered_questions gives); from then on it tells every buyer who asks. Write only what the person said buyers should be told, never an answer you made up, and show it to them first.",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "answer": {
            "description": "What buyers should be told, as the team would say it: facts only, no quotes.",
            "maxLength": 2000,
            "minLength": 1,
            "type": "string"
          },
          "key": {
            "description": "The gap's key",
            "maxLength": 2000,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "key",
          "answer"
        ],
        "type": "object"
      },
      "method": "POST",
      "name": "answer_question",
      "operation": "gaps.answer",
      "output_schema": {
        "$defs": {
          "GapBuyer": {
            "additionalProperties": false,
            "description": "A buyer who asked a gap's question: who, how their demo ended, and whether they left\nright after asking.",
            "properties": {
              "asked_at": {
                "title": "Asked At",
                "type": "string"
              },
              "company": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Company"
              },
              "demo": {
                "title": "Demo",
                "type": "string"
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Email"
              },
              "left_after_s": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Seconds from asking to their last activity.",
                "title": "Left After S"
              },
              "left_soon": {
                "default": false,
                "description": "They stopped within 90 seconds of asking.",
                "title": "Left Soon",
                "type": "boolean"
              },
              "outcome": {
                "enum": [
                  "meeting",
                  "qualified",
                  "nurture",
                  "anonymous"
                ],
                "title": "Outcome",
                "type": "string"
              },
              "role": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Role"
              },
              "test": {
                "title": "Test",
                "type": "boolean"
              }
            },
            "required": [
              "demo",
              "company",
              "role",
              "email",
              "outcome",
              "asked_at",
              "test"
            ],
            "title": "GapBuyer",
            "type": "object"
          }
        },
        "description": "A question the agent could not settle from the vendor's sources, counted across buyers;\nthe team closes it once with an answer the agent then uses for everyone, or dismisses it.",
        "properties": {
          "answer": {
            "title": "Answer",
            "type": "string"
          },
          "answered_at": {
            "title": "Answered At",
            "type": "string"
          },
          "area": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The product area buyers' askings were routed to.",
            "title": "Area"
          },
          "asked": {
            "title": "Asked",
            "type": "integer"
          },
          "buyers": {
            "description": "Who asked, newest first.",
            "items": {
              "$ref": "#/$defs/GapBuyer"
            },
            "title": "Buyers",
            "type": "array"
          },
          "dismissed_at": {
            "default": "",
            "description": "When the team dismissed it; empty unless status is dismissed.",
            "title": "Dismissed At",
            "type": "string"
          },
          "dismissed_by": {
            "default": "",
            "description": "Who dismissed it.",
            "title": "Dismissed By",
            "type": "string"
          },
          "key": {
            "title": "Key",
            "type": "string"
          },
          "kind": {
            "enum": [
              "question",
              "coverage"
            ],
            "title": "Kind",
            "type": "string"
          },
          "listed_by": {
            "items": {
              "type": "string"
            },
            "title": "Listed By",
            "type": "array"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "not_listed_by": {
            "items": {
              "type": "string"
            },
            "title": "Not Listed By",
            "type": "array"
          },
          "question": {
            "title": "Question",
            "type": "string"
          },
          "reason": {
            "title": "Reason",
            "type": "string"
          },
          "said": {
            "title": "Said",
            "type": "string"
          },
          "schema": {
            "default": "solacia.gap.v1",
            "title": "Schema",
            "type": "string"
          },
          "sessions": {
            "items": {
              "type": "string"
            },
            "title": "Sessions",
            "type": "array"
          },
          "status": {
            "enum": [
              "open",
              "closed",
              "dismissed"
            ],
            "title": "Status",
            "type": "string"
          },
          "variants": {
            "items": {
              "type": "string"
            },
            "title": "Variants",
            "type": "array"
          },
          "where": {
            "title": "Where",
            "type": "string"
          }
        },
        "required": [
          "key",
          "kind",
          "status",
          "question",
          "asked",
          "sessions",
          "said",
          "reason",
          "name",
          "where",
          "listed_by",
          "not_listed_by",
          "variants",
          "answer",
          "answered_at"
        ],
        "title": "Gap",
        "type": "object"
      },
      "path": "/gaps/answer",
      "scope": "gaps:write",
      "title": "Answer a question the agent couldn't"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Dismiss a question"
      },
      "description": "Set aside a question the agent could not answer (a `key` list_unanswered_questions gives): a wrong flag, a test, or something the team never tells buyers. It leaves the open list and the agent's answers stay as they are; dismissed=false brings it back.",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "dismissed": {
            "default": true,
            "description": "false restores it to the open list",
            "type": "boolean"
          },
          "key": {
            "description": "The gap's key",
            "maxLength": 2000,
            "minLength": 1,
            "type": "string"
          },
          "reason": {
            "const": "unpublished",
            "description": "unpublished: the vendor deliberately doesn't publish this (a margin, a custom price), so the agent keeps handing it to the team (ADR 0009)",
            "type": "string"
          }
        },
        "required": [
          "key"
        ],
        "type": "object"
      },
      "method": "POST",
      "name": "dismiss_question",
      "operation": "gaps.dismiss",
      "output_schema": {
        "$defs": {
          "GapBuyer": {
            "additionalProperties": false,
            "description": "A buyer who asked a gap's question: who, how their demo ended, and whether they left\nright after asking.",
            "properties": {
              "asked_at": {
                "title": "Asked At",
                "type": "string"
              },
              "company": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Company"
              },
              "demo": {
                "title": "Demo",
                "type": "string"
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Email"
              },
              "left_after_s": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Seconds from asking to their last activity.",
                "title": "Left After S"
              },
              "left_soon": {
                "default": false,
                "description": "They stopped within 90 seconds of asking.",
                "title": "Left Soon",
                "type": "boolean"
              },
              "outcome": {
                "enum": [
                  "meeting",
                  "qualified",
                  "nurture",
                  "anonymous"
                ],
                "title": "Outcome",
                "type": "string"
              },
              "role": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Role"
              },
              "test": {
                "title": "Test",
                "type": "boolean"
              }
            },
            "required": [
              "demo",
              "company",
              "role",
              "email",
              "outcome",
              "asked_at",
              "test"
            ],
            "title": "GapBuyer",
            "type": "object"
          }
        },
        "description": "A question the agent could not settle from the vendor's sources, counted across buyers;\nthe team closes it once with an answer the agent then uses for everyone, or dismisses it.",
        "properties": {
          "answer": {
            "title": "Answer",
            "type": "string"
          },
          "answered_at": {
            "title": "Answered At",
            "type": "string"
          },
          "area": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The product area buyers' askings were routed to.",
            "title": "Area"
          },
          "asked": {
            "title": "Asked",
            "type": "integer"
          },
          "buyers": {
            "description": "Who asked, newest first.",
            "items": {
              "$ref": "#/$defs/GapBuyer"
            },
            "title": "Buyers",
            "type": "array"
          },
          "dismissed_at": {
            "default": "",
            "description": "When the team dismissed it; empty unless status is dismissed.",
            "title": "Dismissed At",
            "type": "string"
          },
          "dismissed_by": {
            "default": "",
            "description": "Who dismissed it.",
            "title": "Dismissed By",
            "type": "string"
          },
          "key": {
            "title": "Key",
            "type": "string"
          },
          "kind": {
            "enum": [
              "question",
              "coverage"
            ],
            "title": "Kind",
            "type": "string"
          },
          "listed_by": {
            "items": {
              "type": "string"
            },
            "title": "Listed By",
            "type": "array"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "not_listed_by": {
            "items": {
              "type": "string"
            },
            "title": "Not Listed By",
            "type": "array"
          },
          "question": {
            "title": "Question",
            "type": "string"
          },
          "reason": {
            "title": "Reason",
            "type": "string"
          },
          "said": {
            "title": "Said",
            "type": "string"
          },
          "schema": {
            "default": "solacia.gap.v1",
            "title": "Schema",
            "type": "string"
          },
          "sessions": {
            "items": {
              "type": "string"
            },
            "title": "Sessions",
            "type": "array"
          },
          "status": {
            "enum": [
              "open",
              "closed",
              "dismissed"
            ],
            "title": "Status",
            "type": "string"
          },
          "variants": {
            "items": {
              "type": "string"
            },
            "title": "Variants",
            "type": "array"
          },
          "where": {
            "title": "Where",
            "type": "string"
          }
        },
        "required": [
          "key",
          "kind",
          "status",
          "question",
          "asked",
          "sessions",
          "said",
          "reason",
          "name",
          "where",
          "listed_by",
          "not_listed_by",
          "variants",
          "answer",
          "answered_at"
        ],
        "title": "Gap",
        "type": "object"
      },
      "path": "/gaps/dismiss",
      "scope": "gaps:write",
      "title": "Dismiss a question"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Get the demo numbers"
      },
      "description": "The demos' numbers for the last `days` days against the period before: sessions, calls, minutes, goals reached, conversion, the funnel, and the topics buyers asked about most.",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "days": {
            "default": 30,
            "maximum": 365,
            "minimum": 1,
            "type": "integer"
          },
          "demos": {
            "default": false,
            "description": "false leaves out each demo's row and the demos behind each question: the numbers alone.",
            "type": "boolean"
          },
          "fresh": {
            "default": false,
            "type": "boolean"
          },
          "tests": {
            "default": false,
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "method": "GET",
      "name": "get_numbers",
      "operation": "analytics.get",
      "output_schema": {
        "additionalProperties": true,
        "description": "The team's analytics for the last `days` days against the days before: KPIs, activity by\nday, the funnel, what buyers told us, what they saw and asked, every session, companies.\nShape v0: fields beyond these may still change; the Analytics screen owns them.",
        "properties": {
          "end": {
            "title": "End",
            "type": "string"
          },
          "period_days": {
            "title": "Period Days",
            "type": "integer"
          },
          "schema": {
            "default": "solacia.analytics.v0",
            "title": "Schema",
            "type": "string"
          },
          "start": {
            "title": "Start",
            "type": "string"
          }
        },
        "required": [
          "period_days",
          "start",
          "end"
        ],
        "title": "Analytics",
        "type": "object"
      },
      "path": "/analytics",
      "scope": "demos:read",
      "title": "Get the demo numbers"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List integrations"
      },
      "description": "Which tools this account has connected and how: its CRM (HubSpot, Salesforce), scheduler, Slack, email alerts, internal docs, the website embed and API keys, each connected or not, with what and by whom, and the CRM and scheduler buyers go to. Connecting one is done in the console.",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "language": {
            "default": "en",
            "description": "The language its words are in.",
            "enum": [
              "en",
              "es",
              "pt"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "method": "GET",
      "name": "list_integrations",
      "operation": "integrations.list",
      "output_schema": {
        "$defs": {
          "IntegrationEvent": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "description": "The event type's id in the scheduler",
                "title": "Id",
                "type": "string"
              },
              "name": {
                "title": "Name",
                "type": "string"
              },
              "url": {
                "description": "Its booking page",
                "title": "Url",
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "url"
            ],
            "title": "IntegrationEvent",
            "type": "object"
          },
          "IntegrationFile": {
            "additionalProperties": false,
            "properties": {
              "modified": {
                "title": "Modified",
                "type": "string"
              },
              "title": {
                "title": "Title",
                "type": "string"
              }
            },
            "required": [
              "title",
              "modified"
            ],
            "title": "IntegrationFile",
            "type": "object"
          },
          "IntegrationGroup": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "title": "Id",
                "type": "string"
              },
              "items": {
                "items": {
                  "$ref": "#/$defs/IntegrationOut"
                },
                "title": "Items",
                "type": "array"
              },
              "title": {
                "title": "Title",
                "type": "string"
              }
            },
            "required": [
              "id",
              "title",
              "items"
            ],
            "title": "IntegrationGroup",
            "type": "object"
          },
          "IntegrationMadeBy": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "description": "When, ISO 8601.",
                "title": "At",
                "type": "string"
              },
              "by": {
                "description": "Who connected it.",
                "title": "By",
                "type": "string"
              },
              "label": {
                "description": "What it is connected to, such as the HubSpot portal.",
                "title": "Label",
                "type": "string"
              }
            },
            "required": [
              "label",
              "by",
              "at"
            ],
            "title": "IntegrationMadeBy",
            "type": "object"
          },
          "IntegrationOut": {
            "additionalProperties": false,
            "description": "One integration as the console's Integrations page shows it.",
            "properties": {
              "calls": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Sales calls: how many were read, once something is picked.",
                "title": "Calls"
              },
              "connect": {
                "description": "An owner connects it by signing in there.",
                "title": "Connect",
                "type": "boolean"
              },
              "connection": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/IntegrationMadeBy"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "crm": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The CRM it is, when it is one.",
                "title": "Crm"
              },
              "detail": {
                "description": "One line on what it holds once connected, or why it was lost.",
                "title": "Detail",
                "type": "string"
              },
              "docs": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Docs"
              },
              "event": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/IntegrationEvent"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Calendly or Cal.com: the event buyers book."
              },
              "events": {
                "description": "Calendly or Cal.com: its event types can be picked.",
                "title": "Events",
                "type": "boolean"
              },
              "files": {
                "anyOf": [
                  {
                    "items": {
                      "$ref": "#/$defs/IntegrationFile"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Internal docs: the files last read.",
                "title": "Files"
              },
              "how": {
                "description": "How it is set up.",
                "title": "How",
                "type": "string"
              },
              "id": {
                "title": "Id",
                "type": "string"
              },
              "line": {
                "description": "What it does, in one line.",
                "title": "Line",
                "type": "string"
              },
              "link": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "HubSpot Meetings: the meeting link buyers book.",
                "title": "Link"
              },
              "links": {
                "description": "HubSpot Meetings: its meeting links can be picked.",
                "title": "Links",
                "type": "boolean"
              },
              "name": {
                "title": "Name",
                "type": "string"
              },
              "paste": {
                "description": "Connected by pasting a link (internal docs).",
                "title": "Paste",
                "type": "boolean"
              },
              "router": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Chili Piper: the router buyers go through.",
                "title": "Router"
              },
              "routers": {
                "default": false,
                "description": "Chili Piper, its token pasted: its routers can be picked.",
                "title": "Routers",
                "type": "boolean"
              },
              "routing": {
                "description": "Email alerts: set up on the Routing page.",
                "title": "Routing",
                "type": "boolean"
              },
              "scheduler": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The scheduler it is, when it is one.",
                "title": "Scheduler"
              },
              "sign_in_again": {
                "default": false,
                "description": "Zendesk, connected by an API token where it now connects by signing in: an owner signs in (POST /integrations/zendesk/sign-in) to keep it, and the audiences picked carry over.",
                "title": "Sign In Again",
                "type": "boolean"
              },
              "skipped": {
                "items": {
                  "type": "string"
                },
                "title": "Skipped",
                "type": "array"
              },
              "snippet": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The website embed's script tag, once it has a key.",
                "title": "Snippet"
              },
              "status": {
                "enum": [
                  "connected",
                  "not_connected",
                  "planned"
                ],
                "title": "Status",
                "type": "string"
              },
              "what": {
                "title": "What",
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "line",
              "what",
              "how",
              "status",
              "detail",
              "scheduler",
              "crm",
              "snippet",
              "docs",
              "connect",
              "paste",
              "files",
              "skipped",
              "connection",
              "links",
              "link",
              "events",
              "event",
              "routing"
            ],
            "title": "IntegrationOut",
            "type": "object"
          },
          "IntegrationPicked": {
            "additionalProperties": false,
            "properties": {
              "chosen": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The provider picked, or off; null before a pick.",
                "title": "Chosen"
              },
              "source": {
                "description": "Picked in the console, or the setup's.",
                "title": "Source",
                "type": "string"
              }
            },
            "required": [
              "chosen",
              "source"
            ],
            "title": "IntegrationPicked",
            "type": "object"
          }
        },
        "additionalProperties": false,
        "description": "Every integration with its state, grouped as the console's Integrations page shows them,\nand the scheduler and CRM the account picked.",
        "properties": {
          "calendar": {
            "$ref": "#/$defs/IntegrationPicked"
          },
          "crm": {
            "$ref": "#/$defs/IntegrationPicked"
          },
          "groups": {
            "items": {
              "$ref": "#/$defs/IntegrationGroup"
            },
            "title": "Groups",
            "type": "array"
          }
        },
        "required": [
          "groups",
          "calendar",
          "crm"
        ],
        "title": "Integrations",
        "type": "object"
      },
      "path": "/integrations",
      "scope": "integrations:read",
      "title": "List integrations"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Get the website embed"
      },
      "description": "The script tag that puts this account's live demo on its own website, ready to paste into the site's HTML before </body>, with the sites it answers on and whether it is paused. An empty list: Solacia has not made the account's embed yet.",
      "input_schema": {
        "additionalProperties": false,
        "properties": {},
        "type": "object"
      },
      "method": "GET",
      "name": "get_website_embed",
      "operation": "embed.get",
      "output_schema": {
        "$defs": {
          "Embed": {
            "additionalProperties": false,
            "description": "One key that puts the demo on the vendor's own site. The key is public: it sits in the\npage.",
            "properties": {
              "calls_per_day": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Voice calls a day it allows; null: no own limit.",
                "title": "Calls Per Day"
              },
              "key": {
                "title": "Key",
                "type": "string"
              },
              "paused": {
                "description": "Paused: the site shows no demo until Solacia resumes it.",
                "title": "Paused",
                "type": "boolean"
              },
              "sites": {
                "description": "The origins it answers on, such as https://www.acme.com; empty: any.",
                "items": {
                  "type": "string"
                },
                "title": "Sites",
                "type": "array"
              },
              "snippet": {
                "description": "The script tag to paste into the site's HTML, before </body>.",
                "title": "Snippet",
                "type": "string"
              }
            },
            "required": [
              "key",
              "snippet",
              "sites",
              "paused"
            ],
            "title": "Embed",
            "type": "object"
          }
        },
        "additionalProperties": false,
        "description": "The account's website embeds. Solacia makes the keys and their sites; none until it has.",
        "properties": {
          "embeds": {
            "items": {
              "$ref": "#/$defs/Embed"
            },
            "title": "Embeds",
            "type": "array"
          }
        },
        "required": [
          "embeds"
        ],
        "title": "Embeds",
        "type": "object"
      },
      "path": "/embed",
      "scope": null,
      "title": "Get the website embed"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List the agents"
      },
      "description": "The account's demo agents: what each says and how (tone, instructions, facts, voices), which channel each runs (the website, outreach links, the demo's own address) and the rules that pick one, its last 30 days, and the A/B tests between them. Pass an agent's `id` to get_agent for its versions, draft and script.",
      "input_schema": {
        "additionalProperties": false,
        "properties": {},
        "type": "object"
      },
      "method": "GET",
      "name": "list_agents",
      "operation": "agents.list",
      "output_schema": {
        "$defs": {
          "AgentFact": {
            "additionalProperties": false,
            "properties": {
              "name": {
                "description": "What it is about; one named like the docs' replaces it",
                "maxLength": 80,
                "minLength": 1,
                "title": "Name",
                "type": "string"
              },
              "text": {
                "description": "What the agent says about it",
                "maxLength": 600,
                "minLength": 1,
                "title": "Text",
                "type": "string"
              }
            },
            "required": [
              "name",
              "text"
            ],
            "title": "AgentFact",
            "type": "object"
          },
          "AgentNumbers": {
            "additionalProperties": false,
            "properties": {
              "demos": {
                "title": "Demos",
                "type": "number"
              },
              "engaged": {
                "title": "Engaged",
                "type": "number"
              },
              "meetings": {
                "description": "Demos where the buyer asked for a meeting",
                "title": "Meetings",
                "type": "number"
              },
              "minutes": {
                "title": "Minutes",
                "type": "number"
              },
              "spend": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "US cents: each demo at the price of the agent that ran it, when it ran. Solacia's people only; null for everyone else",
                "title": "Spend"
              }
            },
            "required": [
              "demos",
              "engaged",
              "meetings",
              "minutes",
              "spend"
            ],
            "title": "AgentNumbers",
            "type": "object"
          },
          "AgentOut": {
            "additionalProperties": false,
            "properties": {
              "audience": {
                "default": "",
                "description": "Who its demos are for, in the team's words",
                "title": "Audience",
                "type": "string"
              },
              "base": {
                "description": "The first agent, the product's pack: every other one is built on it",
                "title": "Base",
                "type": "boolean"
              },
              "changed_at": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Changed At"
              },
              "changed_by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Changed By"
              },
              "cost": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "US cents a demo. Solacia's people only; null for everyone else",
                "title": "Cost"
              },
              "counts": {
                "default": "qualified",
                "description": "What reaching its goal is",
                "enum": [
                  "qualified",
                  "meeting"
                ],
                "title": "Counts",
                "type": "string"
              },
              "facts": {
                "description": "What only it knows, said at once like the docs",
                "items": {
                  "$ref": "#/$defs/AgentFact"
                },
                "title": "Facts",
                "type": "array"
              },
              "goal": {
                "default": "",
                "description": "What a demo with it is for, in the team's words",
                "title": "Goal",
                "type": "string"
              },
              "id": {
                "title": "Id",
                "type": "string"
              },
              "instructions": {
                "description": "What it does differently on a call, in the team's words",
                "title": "Instructions",
                "type": "string"
              },
              "last_30_days": {
                "$ref": "#/$defs/AgentNumbers"
              },
              "list_price": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "US cents a demo at the list price for its renderer. Solacia's people only; null otherwise",
                "title": "List Price"
              },
              "name": {
                "description": "The team's name for it; buyers meet the guide by its own name",
                "title": "Name",
                "type": "string"
              },
              "placed": {
                "$ref": "#/$defs/AgentPlaced",
                "description": "How many places of each kind it meets buyers in"
              },
              "renderer": {
                "description": "What buyers get: the guide's voice, or voice and face",
                "enum": [
                  "voice",
                  "face"
                ],
                "title": "Renderer",
                "type": "string"
              },
              "retired": {
                "description": "Paused: it meets no buyer anywhere until resumed",
                "title": "Retired",
                "type": "boolean"
              },
              "runs": {
                "description": "The channels whose demos it runs",
                "items": {
                  "enum": [
                    "embed",
                    "outbound",
                    "link"
                  ],
                  "type": "string"
                },
                "title": "Runs",
                "type": "array"
              },
              "state": {
                "default": "live",
                "description": "testing: in a running test; draft: a draft waits to go live; live: meets buyers; idle: meets nobody; paused: retired, its places sending buyers on until it resumes",
                "enum": [
                  "testing",
                  "draft",
                  "live",
                  "idle",
                  "paused"
                ],
                "title": "State",
                "type": "string"
              },
              "tone": {
                "anyOf": [
                  {
                    "enum": [
                      "brief",
                      "warm",
                      "expert"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "How it talks; null: as the product's brief says",
                "title": "Tone"
              },
              "version": {
                "default": 1,
                "description": "Its live version; GET /v1/agents/{id} has every one",
                "title": "Version",
                "type": "integer"
              },
              "voices": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Its voice id per language, where not the product's",
                "title": "Voices",
                "type": "object"
              }
            },
            "required": [
              "id",
              "name",
              "base",
              "retired",
              "renderer",
              "cost",
              "list_price",
              "runs",
              "changed_by",
              "changed_at",
              "tone",
              "instructions",
              "facts",
              "voices",
              "last_30_days"
            ],
            "title": "AgentOut",
            "type": "object"
          },
          "AgentPlaced": {
            "additionalProperties": false,
            "description": "How many places of each kind an agent meets buyers in; GET /v1/agents/{id} lists each.",
            "properties": {
              "address": {
                "default": false,
                "description": "It meets buyers on the product's own demo address",
                "title": "Address",
                "type": "boolean"
              },
              "campaigns": {
                "default": 0,
                "description": "Campaigns whose personal links were made with it",
                "title": "Campaigns",
                "type": "integer"
              },
              "links": {
                "default": 0,
                "description": "Personal links made with it outside any campaign",
                "title": "Links",
                "type": "integer"
              },
              "outreach": {
                "default": false,
                "description": "Personal links made with no agent named meet it",
                "title": "Outreach",
                "type": "boolean"
              },
              "pages": {
                "default": 0,
                "description": "Website rules on a page",
                "title": "Pages",
                "type": "integer"
              },
              "sources": {
                "default": 0,
                "description": "Website rules on where buyers came from",
                "title": "Sources",
                "type": "integer"
              },
              "website": {
                "default": false,
                "description": "It meets the website's buyers no rule picks",
                "title": "Website",
                "type": "boolean"
              }
            },
            "title": "AgentPlaced",
            "type": "object"
          },
          "AgentRule": {
            "additionalProperties": false,
            "description": "One website rule: buyers who came from `match` (when `source`: one of your own tags by its\nname such as utm_campaign=spring-launch, a tag's value in any tag such as spring-launch, a\nreferring site such as linkedin, or a channel such as paid or social), or who opened the demo\non a page under `match` (when `page`: a path such as /card), meet `agent`.",
            "properties": {
              "agent": {
                "maxLength": 80,
                "minLength": 1,
                "title": "Agent",
                "type": "string"
              },
              "match": {
                "maxLength": 120,
                "minLength": 1,
                "title": "Match",
                "type": "string"
              },
              "when": {
                "enum": [
                  "source",
                  "page"
                ],
                "title": "When",
                "type": "string"
              }
            },
            "required": [
              "when",
              "match",
              "agent"
            ],
            "title": "AgentRule",
            "type": "object"
          },
          "AgentTest": {
            "additionalProperties": false,
            "properties": {
              "agent": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The agent whose versions are the sides, wherever it is placed",
                "title": "Agent"
              },
              "arms": {
                "items": {
                  "$ref": "#/$defs/TestArm"
                },
                "title": "Arms",
                "type": "array"
              },
              "by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "By"
              },
              "chances": {
                "description": "The best challenger against A: worse, about the same, better",
                "items": {
                  "type": "number"
                },
                "title": "Chances",
                "type": "array"
              },
              "channel": {
                "anyOf": [
                  {
                    "enum": [
                      "embed",
                      "outbound",
                      "link"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Null: a test between one agent's versions",
                "title": "Channel"
              },
              "ended": {
                "description": "Past its end and not stopped: new buyers meet side A, one side waits to be kept",
                "title": "Ended",
                "type": "boolean"
              },
              "ends": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "When it stops taking buyers; null: when the team stops it",
                "title": "Ends"
              },
              "guardrails": {
                "description": "Between an agent's versions: what the test must not make worse, side A against B",
                "items": {
                  "$ref": "#/$defs/TestGuardrail"
                },
                "title": "Guardrails",
                "type": "array"
              },
              "high": {
                "title": "High",
                "type": "number"
              },
              "id": {
                "title": "Id",
                "type": "string"
              },
              "kept": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The agent kept for the channel when it stopped",
                "title": "Kept"
              },
              "leader": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Leader"
              },
              "lever": {
                "anyOf": [
                  {
                    "enum": [
                      "message",
                      "features",
                      "pricing",
                      "offer",
                      "qualification"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "What it is to learn, when it was started from a lever",
                "title": "Lever"
              },
              "lift": {
                "description": "The best challenger's meeting rate minus A's",
                "title": "Lift",
                "type": "number"
              },
              "looks": {
                "description": "Week by week, oldest first",
                "items": {
                  "$ref": "#/$defs/TestLook"
                },
                "title": "Looks",
                "type": "array"
              },
              "low": {
                "description": "95% interval of that difference, valid however often it is read",
                "title": "Low",
                "type": "number"
              },
              "meetings_from": {
                "default": "demo",
                "description": "What counts as a meeting. demo: asking in the demo; form: that, or sending the vendor's own demo form (the website against no demo); crm: a meeting the account's CRM shows booked after the prospect's link was made (outreach against no demo); qualified: the buyer qualified, hot or warm, which asking for a meeting also is (a test between versions)",
                "enum": [
                  "demo",
                  "form",
                  "crm",
                  "qualified"
                ],
                "title": "Meetings From",
                "type": "string"
              },
              "min_buyers": {
                "description": "Buyers each side needs before any verdict",
                "title": "Min Buyers",
                "type": "integer"
              },
              "more": {
                "description": "Buyers each side still needs: before any verdict when early, to decide when ahead",
                "title": "More",
                "type": "integer"
              },
              "per_side_week": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Buyers a week on its smallest side, from its whole weeks so far",
                "title": "Per Side Week"
              },
              "question": {
                "title": "Question",
                "type": "string"
              },
              "rule": {
                "default": "proven",
                "description": "How it decides. proven: a side goes live once it beats the others past chance; unless_worse (between an agent's versions): a challenger may go live once keeping it would cost under 0.2 points on average if it were worse, read at the end of each week",
                "enum": [
                  "unless_worse",
                  "proven"
                ],
                "title": "Rule",
                "type": "string"
              },
              "says": {
                "description": "The readout in one sentence",
                "title": "Says",
                "type": "string"
              },
              "sides": {
                "description": "Between an agent's versions: how far each side's buyers got",
                "items": {
                  "$ref": "#/$defs/TestSide"
                },
                "title": "Sides",
                "type": "array"
              },
              "srm": {
                "description": "p-value of the sample-ratio check",
                "title": "Srm",
                "type": "number"
              },
              "started": {
                "title": "Started",
                "type": "string"
              },
              "stopped": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Stopped"
              },
              "verdict": {
                "description": "winner: one side beats every other past chance, on an interval that holds however often the test is read; safe (unless_worse): at the end of one of its weeks a challenger risked under 0.2 points if worse, so it may go live (`leader`); even: the gap is proven under 2 points; broken: the buyers did not fall on the sides as the shares say",
                "enum": [
                  "early",
                  "ahead",
                  "winner",
                  "even",
                  "safe",
                  "broken"
                ],
                "title": "Verdict",
                "type": "string"
              },
              "weeks_left": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Weeks until `more` buyers a side arrive at that pace; null when not counting",
                "title": "Weeks Left"
              }
            },
            "required": [
              "id",
              "channel",
              "question",
              "started",
              "stopped",
              "ends",
              "ended",
              "min_buyers",
              "kept",
              "by",
              "arms",
              "verdict",
              "leader",
              "lift",
              "low",
              "high",
              "more",
              "srm",
              "says"
            ],
            "title": "AgentTest",
            "type": "object"
          },
          "ChannelPace": {
            "additionalProperties": false,
            "properties": {
              "crm": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/CrmPace"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Outreach only: the same for a test against no demo, whose meetings come from the CRM"
              },
              "demos": {
                "description": "Demos the channel labelled in the last 30 days, test demos left out",
                "title": "Demos",
                "type": "integer"
              },
              "meetings": {
                "title": "Meetings",
                "type": "integer"
              },
              "per_side": {
                "description": "Buyers each side of a test needs to see that rate rise by half",
                "title": "Per Side",
                "type": "integer"
              },
              "per_side_double": {
                "description": "Buyers each side needs to see it double",
                "title": "Per Side Double",
                "type": "integer"
              },
              "per_week": {
                "title": "Per Week",
                "type": "number"
              },
              "rate": {
                "description": "The channel's meeting rate; 10% until it has 20 demos of its own",
                "title": "Rate",
                "type": "number"
              }
            },
            "required": [
              "demos",
              "meetings",
              "per_week",
              "rate",
              "per_side",
              "per_side_double"
            ],
            "title": "ChannelPace",
            "type": "object"
          },
          "CrmPace": {
            "additionalProperties": false,
            "properties": {
              "per_side": {
                "title": "Per Side",
                "type": "integer"
              },
              "per_side_double": {
                "title": "Per Side Double",
                "type": "integer"
              },
              "rate": {
                "description": "The meeting rate assumed for cold outreach",
                "title": "Rate",
                "type": "number"
              }
            },
            "required": [
              "rate",
              "per_side",
              "per_side_double"
            ],
            "title": "CrmPace",
            "type": "object"
          },
          "FlowWay": {
            "additionalProperties": false,
            "description": "One way a demo can go, from opening it to where the buyer is now, and how many went it.",
            "properties": {
              "n": {
                "title": "N",
                "type": "integer"
              },
              "steps": {
                "examples": [
                  [
                    "opened",
                    "saw",
                    "talked",
                    "qualified",
                    "meeting"
                  ]
                ],
                "items": {
                  "type": "string"
                },
                "title": "Steps",
                "type": "array"
              }
            },
            "required": [
              "steps",
              "n"
            ],
            "title": "FlowWay",
            "type": "object"
          },
          "PoolVoice": {
            "additionalProperties": false,
            "properties": {
              "accent": {
                "description": "The locale it is native to, e.g. es-CO",
                "title": "Accent",
                "type": "string"
              },
              "gender": {
                "description": "f or m; empty for a product voice outside the pool",
                "enum": [
                  "f",
                  "m",
                  ""
                ],
                "title": "Gender",
                "type": "string"
              },
              "id": {
                "description": "The voice's id at the speech provider",
                "title": "Id",
                "type": "string"
              },
              "name": {
                "description": "Its name; empty for a product voice outside the pool",
                "title": "Name",
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "gender",
              "accent"
            ],
            "title": "PoolVoice",
            "type": "object"
          },
          "TestArm": {
            "additionalProperties": false,
            "properties": {
              "agent": {
                "title": "Agent",
                "type": "string"
              },
              "best": {
                "description": "The chance this side is the best of them (0 to 1)",
                "title": "Best",
                "type": "number"
              },
              "buyers": {
                "description": "Buyers put on this side who opened a demo; each counts once",
                "title": "Buyers",
                "type": "integer"
              },
              "cost": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "US cents a demo. Solacia's people only; null for everyone else",
                "title": "Cost"
              },
              "demos": {
                "title": "Demos",
                "type": "integer"
              },
              "key": {
                "description": "A (what ran before), B, C",
                "title": "Key",
                "type": "string"
              },
              "loss": {
                "description": "Meeting rate lost on average by keeping this side, if another is better (0.004 = 0.4 points)",
                "title": "Loss",
                "type": "number"
              },
              "meetings": {
                "description": "Buyers who asked for a meeting",
                "title": "Meetings",
                "type": "integer"
              },
              "name": {
                "title": "Name",
                "type": "string"
              },
              "rate": {
                "description": "meetings / buyers",
                "title": "Rate",
                "type": "number"
              },
              "renderer": {
                "enum": [
                  "voice",
                  "face"
                ],
                "title": "Renderer",
                "type": "string"
              },
              "share": {
                "description": "Percent of buyers sent to this side",
                "title": "Share",
                "type": "integer"
              },
              "version": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "In a test between an agent's versions: this side's; null for its draft",
                "title": "Version"
              }
            },
            "required": [
              "key",
              "agent",
              "name",
              "renderer",
              "cost",
              "share",
              "buyers",
              "demos",
              "meetings",
              "rate",
              "best",
              "loss"
            ],
            "title": "TestArm",
            "type": "object"
          },
          "TestGuardrail": {
            "additionalProperties": false,
            "description": "One guardrail across a test's two sides, as a scorecard row: side A, side B, B minus A and\nits interval, read as the goal's is (valid however often it is read).",
            "properties": {
              "a": {
                "title": "A",
                "type": "number"
              },
              "a_count": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Buyers who did it on side A; null for an average",
                "title": "A Count"
              },
              "b": {
                "title": "B",
                "type": "number"
              },
              "b_count": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "B Count"
              },
              "better": {
                "description": "Which way is better",
                "enum": [
                  "up",
                  "down"
                ],
                "title": "Better",
                "type": "string"
              },
              "gap": {
                "description": "b minus a: points of share, or minutes",
                "title": "Gap",
                "type": "number"
              },
              "high": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "High"
              },
              "id": {
                "description": "meetings: share who asked to meet the team; minutes: average minutes in the demo; left_early: share who left in the first minute",
                "enum": [
                  "meetings",
                  "minutes",
                  "left_early"
                ],
                "title": "Id",
                "type": "string"
              },
              "low": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Null until both sides have buyers",
                "title": "Low"
              }
            },
            "required": [
              "id",
              "better",
              "a",
              "b",
              "gap",
              "low",
              "high"
            ],
            "title": "TestGuardrail",
            "type": "object"
          },
          "TestGuards": {
            "additionalProperties": false,
            "properties": {
              "buyers": {
                "title": "Buyers",
                "type": "integer"
              },
              "left_early": {
                "description": "Share who left in the first minute",
                "title": "Left Early",
                "type": "number"
              },
              "meetings": {
                "description": "Share who asked to meet the team",
                "title": "Meetings",
                "type": "number"
              },
              "minutes": {
                "description": "Average minutes in the demo",
                "title": "Minutes",
                "type": "number"
              }
            },
            "required": [
              "buyers",
              "meetings",
              "minutes",
              "left_early"
            ],
            "title": "TestGuards",
            "type": "object"
          },
          "TestLook": {
            "additionalProperties": false,
            "description": "The test as it stood at the end of one of its weeks.",
            "properties": {
              "at": {
                "description": "When that week ended",
                "title": "At",
                "type": "string"
              },
              "better": {
                "description": "The chance it is better by over a point",
                "title": "Better",
                "type": "number"
              },
              "buyers": {
                "description": "On each side, A first",
                "items": {
                  "type": "integer"
                },
                "title": "Buyers",
                "type": "array"
              },
              "gap": {
                "description": "The best challenger's rate minus A's",
                "title": "Gap",
                "type": "number"
              },
              "high": {
                "title": "High",
                "type": "number"
              },
              "low": {
                "title": "Low",
                "type": "number"
              },
              "rates": {
                "items": {
                  "type": "number"
                },
                "title": "Rates",
                "type": "array"
              },
              "safe": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Under unless_worse: the side that could go live at this week's end",
                "title": "Safe"
              },
              "same": {
                "description": "The chance it is within a point either way",
                "title": "Same",
                "type": "number"
              },
              "week": {
                "description": "1: its first seven days",
                "title": "Week",
                "type": "integer"
              },
              "worse": {
                "description": "The chance that challenger is worse than A, by over a point",
                "title": "Worse",
                "type": "number"
              }
            },
            "required": [
              "week",
              "at",
              "buyers",
              "rates",
              "gap",
              "low",
              "high",
              "worse",
              "same",
              "better"
            ],
            "title": "TestLook",
            "type": "object"
          },
          "TestSide": {
            "additionalProperties": false,
            "description": "One side of a test between an agent's versions, as its buyers went through it.",
            "properties": {
              "guards": {
                "$ref": "#/$defs/TestGuards"
              },
              "key": {
                "title": "Key",
                "type": "string"
              },
              "paths": {
                "description": "How many buyers went each way, as Home's flow reads demos; every way listed, zeros included",
                "items": {
                  "$ref": "#/$defs/FlowWay"
                },
                "title": "Paths",
                "type": "array"
              }
            },
            "required": [
              "key",
              "paths",
              "guards"
            ],
            "title": "TestSide",
            "type": "object"
          },
          "ToneOut": {
            "additionalProperties": false,
            "properties": {
              "name": {
                "title": "Name",
                "type": "string"
              },
              "says": {
                "description": "What the guide is told, word for word",
                "title": "Says",
                "type": "string"
              }
            },
            "required": [
              "name",
              "says"
            ],
            "title": "ToneOut",
            "type": "object"
          },
          "VoicePool": {
            "additionalProperties": false,
            "properties": {
              "product": {
                "description": "The voice calls speak this language with when the agent picks none",
                "title": "Product",
                "type": "string"
              },
              "voices": {
                "description": "The voices to pick from, the product's own first",
                "items": {
                  "$ref": "#/$defs/PoolVoice"
                },
                "title": "Voices",
                "type": "array"
              }
            },
            "required": [
              "product",
              "voices"
            ],
            "title": "VoicePool",
            "type": "object"
          }
        },
        "additionalProperties": false,
        "description": "The account's agents, and the agent each channel runs: `embed` (the vendor's website),\n`outbound` (personal links from outreach) and `link` (the demo's own address). Then each\nchannel's pace, and the tests between agents, newest first.",
        "properties": {
          "agents": {
            "items": {
              "$ref": "#/$defs/AgentOut"
            },
            "title": "Agents",
            "type": "array"
          },
          "defaults": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "The agent each teammate sends links with unless they pick another, by their email",
            "title": "Defaults",
            "type": "object"
          },
          "languages": {
            "description": "The languages the demo's calls speak",
            "items": {
              "type": "string"
            },
            "title": "Languages",
            "type": "array"
          },
          "list_prices": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "propertyNames": {
                  "enum": [
                    "voice",
                    "face"
                  ]
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "US cents a demo for each renderer. Solacia's people only; null for everyone else",
            "title": "List Prices"
          },
          "pace": {
            "additionalProperties": {
              "$ref": "#/$defs/ChannelPace"
            },
            "propertyNames": {
              "enum": [
                "embed",
                "outbound",
                "link"
              ]
            },
            "title": "Pace",
            "type": "object"
          },
          "routes": {
            "additionalProperties": {
              "type": "string"
            },
            "propertyNames": {
              "enum": [
                "embed",
                "outbound",
                "link"
              ]
            },
            "title": "Routes",
            "type": "object"
          },
          "rules": {
            "description": "The website's rules, in order: which agent a buyer meets by where they came from (the first that matches), then by the page the demo opened on (the most specific)",
            "items": {
              "$ref": "#/$defs/AgentRule"
            },
            "title": "Rules",
            "type": "array"
          },
          "schema": {
            "default": "solacia.agents.v0",
            "title": "Schema",
            "type": "string"
          },
          "tests": {
            "items": {
              "$ref": "#/$defs/AgentTest"
            },
            "title": "Tests",
            "type": "array"
          },
          "tones": {
            "additionalProperties": {
              "$ref": "#/$defs/ToneOut"
            },
            "propertyNames": {
              "enum": [
                "brief",
                "warm",
                "expert"
              ]
            },
            "title": "Tones",
            "type": "object"
          },
          "voice_pool": {
            "additionalProperties": {
              "$ref": "#/$defs/VoicePool"
            },
            "description": "The voices an agent can have, per language the demo speaks; empty when the product speaks with voices outside the pool",
            "title": "Voice Pool",
            "type": "object"
          }
        },
        "required": [
          "agents",
          "routes",
          "list_prices",
          "tones",
          "languages",
          "pace",
          "tests"
        ],
        "title": "Agents",
        "type": "object"
      },
      "path": "/agents",
      "scope": "agents:read",
      "title": "List the agents"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "Get an agent"
      },
      "description": "One agent (an `id` list_agents gives): its live version and unpublished draft, every version with who changed what, the script a buyer meets (opening, parts, buttons), the questions it couldn't answer, where it runs, and the team's notes on its calls.",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "method": "GET",
      "name": "get_agent",
      "operation": "agents.get",
      "output_schema": {
        "$defs": {
          "AgentAsked": {
            "additionalProperties": false,
            "properties": {
              "buyers": {
                "title": "Buyers",
                "type": "integer"
              },
              "text": {
                "title": "Text",
                "type": "string"
              }
            },
            "required": [
              "text",
              "buyers"
            ],
            "title": "AgentAsked",
            "type": "object"
          },
          "AgentButton": {
            "additionalProperties": false,
            "properties": {
              "agenda": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Agenda"
              },
              "label": {
                "title": "Label",
                "type": "string"
              }
            },
            "required": [
              "label",
              "agenda"
            ],
            "title": "AgentButton",
            "type": "object"
          },
          "AgentChoiceOut": {
            "additionalProperties": false,
            "properties": {
              "agenda": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The part it picks; null: its words are said for the buyer",
                "title": "Agenda"
              },
              "label": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Its words per language; empty: the part's title",
                "title": "Label",
                "type": "object"
              }
            },
            "required": [
              "agenda",
              "label"
            ],
            "title": "AgentChoiceOut",
            "type": "object"
          },
          "AgentDraftOut": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "title": "At",
                "type": "string"
              },
              "behind": {
                "description": "Another version went live after it was started: publishing is refused",
                "title": "Behind",
                "type": "boolean"
              },
              "by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "By"
              },
              "content": {
                "$ref": "#/$defs/AgentVersionContent"
              },
              "faults": {
                "description": "Why its own lines can't go live yet; empty: it can be published",
                "items": {
                  "type": "string"
                },
                "title": "Faults",
                "type": "array"
              },
              "since": {
                "description": "The version it was started from",
                "title": "Since",
                "type": "integer"
              }
            },
            "required": [
              "since",
              "by",
              "at",
              "content",
              "faults",
              "behind"
            ],
            "title": "AgentDraftOut",
            "type": "object"
          },
          "AgentFact": {
            "additionalProperties": false,
            "properties": {
              "name": {
                "description": "What it is about; one named like the docs' replaces it",
                "maxLength": 80,
                "minLength": 1,
                "title": "Name",
                "type": "string"
              },
              "text": {
                "description": "What the agent says about it",
                "maxLength": 600,
                "minLength": 1,
                "title": "Text",
                "type": "string"
              }
            },
            "required": [
              "name",
              "text"
            ],
            "title": "AgentFact",
            "type": "object"
          },
          "AgentFactReplaces": {
            "additionalProperties": false,
            "description": "A public passage one of the agent's facts contradicts, left out of its calls' docs.",
            "properties": {
              "fact": {
                "description": "The fact's name",
                "title": "Fact",
                "type": "string"
              },
              "page": {
                "description": "The page's title",
                "title": "Page",
                "type": "string"
              },
              "says": {
                "description": "The page's sentence the fact replaces",
                "title": "Says",
                "type": "string"
              },
              "url": {
                "title": "Url",
                "type": "string"
              },
              "what": {
                "description": "What the two state differently, in a few words",
                "title": "What",
                "type": "string"
              }
            },
            "required": [
              "fact",
              "what",
              "page",
              "url",
              "says"
            ],
            "title": "AgentFactReplaces",
            "type": "object"
          },
          "AgentLine": {
            "additionalProperties": false,
            "properties": {
              "own": {
                "description": "The agent's own words; false: the product's",
                "title": "Own",
                "type": "boolean"
              },
              "pack": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The product's words it replaces, when it is the agent's own",
                "title": "Pack"
              },
              "text": {
                "title": "Text",
                "type": "string"
              }
            },
            "required": [
              "text",
              "own"
            ],
            "title": "AgentLine",
            "type": "object"
          },
          "AgentNote": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "title": "At",
                "type": "string"
              },
              "by": {
                "title": "By",
                "type": "string"
              },
              "done": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The version it went into, or dropped; null while open",
                "title": "Done"
              },
              "id": {
                "title": "Id",
                "type": "string"
              },
              "quote": {
                "description": "The turn's words when it was left",
                "title": "Quote",
                "type": "string"
              },
              "session": {
                "description": "The rehearsal it was left on",
                "title": "Session",
                "type": "string"
              },
              "tag": {
                "enum": [
                  "script",
                  "answer",
                  "screen",
                  "buyer"
                ],
                "title": "Tag",
                "type": "string"
              },
              "text": {
                "title": "Text",
                "type": "string"
              },
              "turn": {
                "description": "The turn it is about (AgentTurn.n)",
                "title": "Turn",
                "type": "integer"
              }
            },
            "required": [
              "id",
              "session",
              "turn",
              "tag",
              "quote",
              "text",
              "by",
              "at"
            ],
            "title": "AgentNote",
            "type": "object"
          },
          "AgentPart": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "title": "Id",
                "type": "string"
              },
              "intro": {
                "additionalProperties": {
                  "$ref": "#/$defs/AgentLine"
                },
                "description": "Language -> the agent's own introduction, said after the name; the product has none",
                "title": "Intro",
                "type": "object"
              },
              "name": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Language -> the sentence the part opens on, said by the call",
                "title": "Name",
                "type": "object"
              },
              "shows": {
                "description": "In the agent's focus; the ones it shows come first, in its order",
                "title": "Shows",
                "type": "boolean"
              },
              "title": {
                "additionalProperties": {
                  "type": "string"
                },
                "title": "Title",
                "type": "object"
              }
            },
            "required": [
              "id",
              "title",
              "shows",
              "intro"
            ],
            "title": "AgentPart",
            "type": "object"
          },
          "AgentPlace": {
            "additionalProperties": false,
            "description": "One place the agent meets buyers, with its last 30 days: `rule`, a website rule on where\nbuyers came from (`when` source) or the page (`when` page); `website`, the website's buyers no\nrule picks; `campaign`, the personal links of one campaign made with it; `links`, personal\nlinks with no campaign (with the account's default, also links that name no agent);\n`address`, the product's own demo address.",
            "properties": {
              "campaign": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Campaign"
              },
              "demos": {
                "default": 0,
                "title": "Demos",
                "type": "integer"
              },
              "kind": {
                "enum": [
                  "rule",
                  "website",
                  "campaign",
                  "links",
                  "address"
                ],
                "title": "Kind",
                "type": "string"
              },
              "links": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Links made, for a campaign or single links",
                "title": "Links"
              },
              "match": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Match"
              },
              "reached": {
                "default": 0,
                "description": "Demos that reached the agent's goal",
                "title": "Reached",
                "type": "integer"
              },
              "when": {
                "anyOf": [
                  {
                    "enum": [
                      "source",
                      "page"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "When"
              }
            },
            "required": [
              "kind"
            ],
            "title": "AgentPlace",
            "type": "object"
          },
          "AgentRehearsalMark": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "title": "At",
                "type": "string"
              },
              "by": {
                "title": "By",
                "type": "string"
              },
              "notes": {
                "description": "Open notes on it",
                "title": "Notes",
                "type": "integer"
              },
              "of": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "const": "draft",
                    "type": "string"
                  }
                ],
                "description": "What it ran: a version, or the draft as it was then",
                "title": "Of"
              },
              "session": {
                "title": "Session",
                "type": "string"
              },
              "url": {
                "description": "The demo, to go on with it",
                "title": "Url",
                "type": "string"
              }
            },
            "required": [
              "session",
              "by",
              "at",
              "of",
              "notes",
              "url"
            ],
            "title": "AgentRehearsalMark",
            "type": "object"
          },
          "AgentScriptOut": {
            "additionalProperties": false,
            "description": "The script as a buyer meets it, each line marked when it is the agent's own.",
            "properties": {
              "buttons": {
                "additionalProperties": {
                  "items": {
                    "$ref": "#/$defs/AgentButton"
                  },
                  "type": "array"
                },
                "title": "Buttons",
                "type": "object"
              },
              "first_deck": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "A deck that starts the demo by itself, so the opening asks nothing",
                "title": "First Deck"
              },
              "opening": {
                "additionalProperties": {
                  "$ref": "#/$defs/AgentLine"
                },
                "title": "Opening",
                "type": "object"
              },
              "own_buttons": {
                "title": "Own Buttons",
                "type": "boolean"
              },
              "parts": {
                "items": {
                  "$ref": "#/$defs/AgentPart"
                },
                "title": "Parts",
                "type": "array"
              }
            },
            "required": [
              "opening",
              "parts",
              "buttons",
              "own_buttons",
              "first_deck"
            ],
            "title": "AgentScriptOut",
            "type": "object"
          },
          "AgentTest": {
            "additionalProperties": false,
            "properties": {
              "agent": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The agent whose versions are the sides, wherever it is placed",
                "title": "Agent"
              },
              "arms": {
                "items": {
                  "$ref": "#/$defs/TestArm"
                },
                "title": "Arms",
                "type": "array"
              },
              "by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "By"
              },
              "chances": {
                "description": "The best challenger against A: worse, about the same, better",
                "items": {
                  "type": "number"
                },
                "title": "Chances",
                "type": "array"
              },
              "channel": {
                "anyOf": [
                  {
                    "enum": [
                      "embed",
                      "outbound",
                      "link"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Null: a test between one agent's versions",
                "title": "Channel"
              },
              "ended": {
                "description": "Past its end and not stopped: new buyers meet side A, one side waits to be kept",
                "title": "Ended",
                "type": "boolean"
              },
              "ends": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "When it stops taking buyers; null: when the team stops it",
                "title": "Ends"
              },
              "guardrails": {
                "description": "Between an agent's versions: what the test must not make worse, side A against B",
                "items": {
                  "$ref": "#/$defs/TestGuardrail"
                },
                "title": "Guardrails",
                "type": "array"
              },
              "high": {
                "title": "High",
                "type": "number"
              },
              "id": {
                "title": "Id",
                "type": "string"
              },
              "kept": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The agent kept for the channel when it stopped",
                "title": "Kept"
              },
              "leader": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Leader"
              },
              "lever": {
                "anyOf": [
                  {
                    "enum": [
                      "message",
                      "features",
                      "pricing",
                      "offer",
                      "qualification"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "What it is to learn, when it was started from a lever",
                "title": "Lever"
              },
              "lift": {
                "description": "The best challenger's meeting rate minus A's",
                "title": "Lift",
                "type": "number"
              },
              "looks": {
                "description": "Week by week, oldest first",
                "items": {
                  "$ref": "#/$defs/TestLook"
                },
                "title": "Looks",
                "type": "array"
              },
              "low": {
                "description": "95% interval of that difference, valid however often it is read",
                "title": "Low",
                "type": "number"
              },
              "meetings_from": {
                "default": "demo",
                "description": "What counts as a meeting. demo: asking in the demo; form: that, or sending the vendor's own demo form (the website against no demo); crm: a meeting the account's CRM shows booked after the prospect's link was made (outreach against no demo); qualified: the buyer qualified, hot or warm, which asking for a meeting also is (a test between versions)",
                "enum": [
                  "demo",
                  "form",
                  "crm",
                  "qualified"
                ],
                "title": "Meetings From",
                "type": "string"
              },
              "min_buyers": {
                "description": "Buyers each side needs before any verdict",
                "title": "Min Buyers",
                "type": "integer"
              },
              "more": {
                "description": "Buyers each side still needs: before any verdict when early, to decide when ahead",
                "title": "More",
                "type": "integer"
              },
              "per_side_week": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Buyers a week on its smallest side, from its whole weeks so far",
                "title": "Per Side Week"
              },
              "question": {
                "title": "Question",
                "type": "string"
              },
              "rule": {
                "default": "proven",
                "description": "How it decides. proven: a side goes live once it beats the others past chance; unless_worse (between an agent's versions): a challenger may go live once keeping it would cost under 0.2 points on average if it were worse, read at the end of each week",
                "enum": [
                  "unless_worse",
                  "proven"
                ],
                "title": "Rule",
                "type": "string"
              },
              "says": {
                "description": "The readout in one sentence",
                "title": "Says",
                "type": "string"
              },
              "sides": {
                "description": "Between an agent's versions: how far each side's buyers got",
                "items": {
                  "$ref": "#/$defs/TestSide"
                },
                "title": "Sides",
                "type": "array"
              },
              "srm": {
                "description": "p-value of the sample-ratio check",
                "title": "Srm",
                "type": "number"
              },
              "started": {
                "title": "Started",
                "type": "string"
              },
              "stopped": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Stopped"
              },
              "verdict": {
                "description": "winner: one side beats every other past chance, on an interval that holds however often the test is read; safe (unless_worse): at the end of one of its weeks a challenger risked under 0.2 points if worse, so it may go live (`leader`); even: the gap is proven under 2 points; broken: the buyers did not fall on the sides as the shares say",
                "enum": [
                  "early",
                  "ahead",
                  "winner",
                  "even",
                  "safe",
                  "broken"
                ],
                "title": "Verdict",
                "type": "string"
              },
              "weeks_left": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Weeks until `more` buyers a side arrive at that pace; null when not counting",
                "title": "Weeks Left"
              }
            },
            "required": [
              "id",
              "channel",
              "question",
              "started",
              "stopped",
              "ends",
              "ended",
              "min_buyers",
              "kept",
              "by",
              "arms",
              "verdict",
              "leader",
              "lift",
              "low",
              "high",
              "more",
              "srm",
              "says"
            ],
            "title": "AgentTest",
            "type": "object"
          },
          "AgentTestMark": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "title": "Id",
                "type": "string"
              },
              "kept": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Kept"
              },
              "started": {
                "title": "Started",
                "type": "string"
              },
              "stopped": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Stopped"
              }
            },
            "required": [
              "id",
              "started",
              "stopped",
              "kept"
            ],
            "title": "AgentTestMark",
            "type": "object"
          },
          "AgentVersionContent": {
            "additionalProperties": false,
            "description": "A version: what a buyer gets from the agent. Script fields left empty are the pack's.",
            "properties": {
              "audience": {
                "description": "Who its demos are for, in the team's words",
                "title": "Audience",
                "type": "string"
              },
              "choices": {
                "description": "Its own buttons under the opening",
                "items": {
                  "$ref": "#/$defs/AgentChoiceOut"
                },
                "title": "Choices",
                "type": "array"
              },
              "counts": {
                "default": "qualified",
                "description": "What reaching the goal is, as a test of its versions reads it",
                "enum": [
                  "qualified",
                  "meeting"
                ],
                "title": "Counts",
                "type": "string"
              },
              "facts": {
                "items": {
                  "$ref": "#/$defs/AgentFact"
                },
                "title": "Facts",
                "type": "array"
              },
              "goal": {
                "description": "What a demo with it is for, in the team's words",
                "title": "Goal",
                "type": "string"
              },
              "instructions": {
                "title": "Instructions",
                "type": "string"
              },
              "intro": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Its own opening per language",
                "title": "Intro",
                "type": "object"
              },
              "lines": {
                "additionalProperties": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "description": "Its own introduction to a part, per language",
                "title": "Lines",
                "type": "object"
              },
              "order": {
                "description": "The parts it shows, in order; empty: all of the product's",
                "items": {
                  "type": "string"
                },
                "title": "Order",
                "type": "array"
              },
              "tone": {
                "anyOf": [
                  {
                    "enum": [
                      "brief",
                      "warm",
                      "expert"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Tone"
              },
              "voices": {
                "additionalProperties": {
                  "type": "string"
                },
                "title": "Voices",
                "type": "object"
              }
            },
            "required": [
              "tone",
              "instructions",
              "facts",
              "voices",
              "audience",
              "goal",
              "order",
              "intro",
              "lines",
              "choices"
            ],
            "title": "AgentVersionContent",
            "type": "object"
          },
          "AgentVersionOut": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "When it went live; null for the pack's own first version",
                "title": "At"
              },
              "by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "By"
              },
              "changed": {
                "description": "What it changed from the version before, in the team's words, such as Opening or Order of parts; or that it put an older version back. Empty for the first.",
                "items": {
                  "type": "string"
                },
                "title": "Changed",
                "type": "array"
              },
              "live": {
                "title": "Live",
                "type": "boolean"
              },
              "number": {
                "title": "Number",
                "type": "integer"
              }
            },
            "required": [
              "number",
              "at",
              "by",
              "live"
            ],
            "title": "AgentVersionOut",
            "type": "object"
          },
          "AgentWeek": {
            "additionalProperties": false,
            "properties": {
              "demos": {
                "title": "Demos",
                "type": "integer"
              },
              "meetings": {
                "title": "Meetings",
                "type": "integer"
              },
              "reached": {
                "description": "Buyers who did what its goal counts",
                "title": "Reached",
                "type": "integer"
              },
              "start": {
                "description": "Its Monday",
                "title": "Start",
                "type": "string"
              }
            },
            "required": [
              "start",
              "demos",
              "reached",
              "meetings"
            ],
            "title": "AgentWeek",
            "type": "object"
          },
          "FlowWay": {
            "additionalProperties": false,
            "description": "One way a demo can go, from opening it to where the buyer is now, and how many went it.",
            "properties": {
              "n": {
                "title": "N",
                "type": "integer"
              },
              "steps": {
                "examples": [
                  [
                    "opened",
                    "saw",
                    "talked",
                    "qualified",
                    "meeting"
                  ]
                ],
                "items": {
                  "type": "string"
                },
                "title": "Steps",
                "type": "array"
              }
            },
            "required": [
              "steps",
              "n"
            ],
            "title": "FlowWay",
            "type": "object"
          },
          "TestArm": {
            "additionalProperties": false,
            "properties": {
              "agent": {
                "title": "Agent",
                "type": "string"
              },
              "best": {
                "description": "The chance this side is the best of them (0 to 1)",
                "title": "Best",
                "type": "number"
              },
              "buyers": {
                "description": "Buyers put on this side who opened a demo; each counts once",
                "title": "Buyers",
                "type": "integer"
              },
              "cost": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "US cents a demo. Solacia's people only; null for everyone else",
                "title": "Cost"
              },
              "demos": {
                "title": "Demos",
                "type": "integer"
              },
              "key": {
                "description": "A (what ran before), B, C",
                "title": "Key",
                "type": "string"
              },
              "loss": {
                "description": "Meeting rate lost on average by keeping this side, if another is better (0.004 = 0.4 points)",
                "title": "Loss",
                "type": "number"
              },
              "meetings": {
                "description": "Buyers who asked for a meeting",
                "title": "Meetings",
                "type": "integer"
              },
              "name": {
                "title": "Name",
                "type": "string"
              },
              "rate": {
                "description": "meetings / buyers",
                "title": "Rate",
                "type": "number"
              },
              "renderer": {
                "enum": [
                  "voice",
                  "face"
                ],
                "title": "Renderer",
                "type": "string"
              },
              "share": {
                "description": "Percent of buyers sent to this side",
                "title": "Share",
                "type": "integer"
              },
              "version": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "In a test between an agent's versions: this side's; null for its draft",
                "title": "Version"
              }
            },
            "required": [
              "key",
              "agent",
              "name",
              "renderer",
              "cost",
              "share",
              "buyers",
              "demos",
              "meetings",
              "rate",
              "best",
              "loss"
            ],
            "title": "TestArm",
            "type": "object"
          },
          "TestGuardrail": {
            "additionalProperties": false,
            "description": "One guardrail across a test's two sides, as a scorecard row: side A, side B, B minus A and\nits interval, read as the goal's is (valid however often it is read).",
            "properties": {
              "a": {
                "title": "A",
                "type": "number"
              },
              "a_count": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Buyers who did it on side A; null for an average",
                "title": "A Count"
              },
              "b": {
                "title": "B",
                "type": "number"
              },
              "b_count": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "B Count"
              },
              "better": {
                "description": "Which way is better",
                "enum": [
                  "up",
                  "down"
                ],
                "title": "Better",
                "type": "string"
              },
              "gap": {
                "description": "b minus a: points of share, or minutes",
                "title": "Gap",
                "type": "number"
              },
              "high": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "High"
              },
              "id": {
                "description": "meetings: share who asked to meet the team; minutes: average minutes in the demo; left_early: share who left in the first minute",
                "enum": [
                  "meetings",
                  "minutes",
                  "left_early"
                ],
                "title": "Id",
                "type": "string"
              },
              "low": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Null until both sides have buyers",
                "title": "Low"
              }
            },
            "required": [
              "id",
              "better",
              "a",
              "b",
              "gap",
              "low",
              "high"
            ],
            "title": "TestGuardrail",
            "type": "object"
          },
          "TestGuards": {
            "additionalProperties": false,
            "properties": {
              "buyers": {
                "title": "Buyers",
                "type": "integer"
              },
              "left_early": {
                "description": "Share who left in the first minute",
                "title": "Left Early",
                "type": "number"
              },
              "meetings": {
                "description": "Share who asked to meet the team",
                "title": "Meetings",
                "type": "number"
              },
              "minutes": {
                "description": "Average minutes in the demo",
                "title": "Minutes",
                "type": "number"
              }
            },
            "required": [
              "buyers",
              "meetings",
              "minutes",
              "left_early"
            ],
            "title": "TestGuards",
            "type": "object"
          },
          "TestLook": {
            "additionalProperties": false,
            "description": "The test as it stood at the end of one of its weeks.",
            "properties": {
              "at": {
                "description": "When that week ended",
                "title": "At",
                "type": "string"
              },
              "better": {
                "description": "The chance it is better by over a point",
                "title": "Better",
                "type": "number"
              },
              "buyers": {
                "description": "On each side, A first",
                "items": {
                  "type": "integer"
                },
                "title": "Buyers",
                "type": "array"
              },
              "gap": {
                "description": "The best challenger's rate minus A's",
                "title": "Gap",
                "type": "number"
              },
              "high": {
                "title": "High",
                "type": "number"
              },
              "low": {
                "title": "Low",
                "type": "number"
              },
              "rates": {
                "items": {
                  "type": "number"
                },
                "title": "Rates",
                "type": "array"
              },
              "safe": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Under unless_worse: the side that could go live at this week's end",
                "title": "Safe"
              },
              "same": {
                "description": "The chance it is within a point either way",
                "title": "Same",
                "type": "number"
              },
              "week": {
                "description": "1: its first seven days",
                "title": "Week",
                "type": "integer"
              },
              "worse": {
                "description": "The chance that challenger is worse than A, by over a point",
                "title": "Worse",
                "type": "number"
              }
            },
            "required": [
              "week",
              "at",
              "buyers",
              "rates",
              "gap",
              "low",
              "high",
              "worse",
              "same",
              "better"
            ],
            "title": "TestLook",
            "type": "object"
          },
          "TestSide": {
            "additionalProperties": false,
            "description": "One side of a test between an agent's versions, as its buyers went through it.",
            "properties": {
              "guards": {
                "$ref": "#/$defs/TestGuards"
              },
              "key": {
                "title": "Key",
                "type": "string"
              },
              "paths": {
                "description": "How many buyers went each way, as Home's flow reads demos; every way listed, zeros included",
                "items": {
                  "$ref": "#/$defs/FlowWay"
                },
                "title": "Paths",
                "type": "array"
              }
            },
            "required": [
              "key",
              "paths",
              "guards"
            ],
            "title": "TestSide",
            "type": "object"
          }
        },
        "additionalProperties": false,
        "description": "One agent: its live version, its draft, every version, and its script. In preview.",
        "properties": {
          "base": {
            "title": "Base",
            "type": "boolean"
          },
          "draft": {
            "anyOf": [
              {
                "$ref": "#/$defs/AgentDraftOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "in_test": {
            "description": "One side of a running test: nothing can be published until it stops",
            "title": "In Test",
            "type": "boolean"
          },
          "languages": {
            "items": {
              "type": "string"
            },
            "title": "Languages",
            "type": "array"
          },
          "live": {
            "$ref": "#/$defs/AgentVersionContent"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "notes": {
            "description": "Notes left on its rehearsals that no version took yet, oldest first",
            "items": {
              "$ref": "#/$defs/AgentNote"
            },
            "title": "Notes",
            "type": "array"
          },
          "places": {
            "description": "Where it runs, with the last 30 days",
            "items": {
              "$ref": "#/$defs/AgentPlace"
            },
            "title": "Places",
            "type": "array"
          },
          "rehearsals": {
            "description": "Its newest rehearsals",
            "items": {
              "$ref": "#/$defs/AgentRehearsalMark"
            },
            "title": "Rehearsals",
            "type": "array"
          },
          "renderer": {
            "default": "voice",
            "description": "What buyers get: the voice, or voice and face",
            "enum": [
              "voice",
              "face"
            ],
            "title": "Renderer",
            "type": "string"
          },
          "replaces": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/$defs/AgentFactReplaces"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "What the facts it shows (the draft's, else the live version's) replace in the public docs; null while they are being checked",
            "title": "Replaces"
          },
          "retired": {
            "description": "Paused: it meets no buyer anywhere until resumed",
            "title": "Retired",
            "type": "boolean"
          },
          "runs": {
            "description": "The defaults it holds; it can't pause until they move",
            "items": {
              "enum": [
                "embed",
                "outbound",
                "link"
              ],
              "type": "string"
            },
            "title": "Runs",
            "type": "array"
          },
          "schema": {
            "default": "solacia.agents.v0",
            "title": "Schema",
            "type": "string"
          },
          "script": {
            "$ref": "#/$defs/AgentScriptOut"
          },
          "script_of": {
            "description": "Which version `script` shows",
            "enum": [
              "draft",
              "live"
            ],
            "title": "Script Of",
            "type": "string"
          },
          "test": {
            "anyOf": [
              {
                "$ref": "#/$defs/AgentTest"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its running test between its versions"
          },
          "tests_started": {
            "description": "Its tests between versions",
            "items": {
              "$ref": "#/$defs/AgentTestMark"
            },
            "title": "Tests Started",
            "type": "array"
          },
          "unanswered": {
            "description": "What its buyers asked in the last 30 days that the docs held no answer to",
            "items": {
              "$ref": "#/$defs/AgentAsked"
            },
            "title": "Unanswered",
            "type": "array"
          },
          "version": {
            "title": "Version",
            "type": "integer"
          },
          "versions": {
            "description": "Oldest first",
            "items": {
              "$ref": "#/$defs/AgentVersionOut"
            },
            "title": "Versions",
            "type": "array"
          },
          "weeks": {
            "description": "Its last 12 weeks, oldest first",
            "items": {
              "$ref": "#/$defs/AgentWeek"
            },
            "title": "Weeks",
            "type": "array"
          }
        },
        "required": [
          "id",
          "name",
          "base",
          "retired",
          "version",
          "live",
          "draft",
          "versions",
          "script_of",
          "script",
          "languages",
          "in_test",
          "test"
        ],
        "title": "AgentDetail",
        "type": "object"
      },
      "path": "/agents/{id}",
      "scope": "agents:read",
      "title": "Get an agent"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Change an agent's draft"
      },
      "description": "Change an agent's draft (an `id` list_agents gives): how it talks, its instructions, facts, who it's for, its goal and its script. Only the fields given change; buyers keep meeting the live version until publish_agent. Change only what the person asked for in their own words, never what a buyer said in a demo.",
      "input_schema": {
        "$defs": {
          "AgentChoiceIn": {
            "additionalProperties": false,
            "properties": {
              "agenda": {
                "description": "The part it picks",
                "maxLength": 80,
                "type": "string"
              },
              "label": {
                "additionalProperties": {
                  "maxLength": 1000,
                  "type": "string"
                },
                "description": "Its words per language",
                "maxProperties": 10,
                "propertyNames": {
                  "maxLength": 8
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "AgentFact": {
            "additionalProperties": false,
            "properties": {
              "name": {
                "description": "What it is about; one named like the docs' replaces it",
                "maxLength": 80,
                "minLength": 1,
                "type": "string"
              },
              "text": {
                "description": "What the agent says about it",
                "maxLength": 600,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "name",
              "text"
            ],
            "type": "object"
          },
          "AgentScriptIn": {
            "additionalProperties": false,
            "description": "What changes of the agent's script; each field sent replaces that field whole.",
            "properties": {
              "choices": {
                "description": "Its own buttons under the opening; []: the product's",
                "items": {
                  "$ref": "#/$defs/AgentChoiceIn"
                },
                "maxItems": 4,
                "type": "array"
              },
              "intro": {
                "additionalProperties": {
                  "maxLength": 1000,
                  "type": "string"
                },
                "description": "Its own opening per language; {}: the product's",
                "maxProperties": 10,
                "propertyNames": {
                  "maxLength": 8
                },
                "type": "object"
              },
              "lines": {
                "additionalProperties": {
                  "additionalProperties": {
                    "maxLength": 1000,
                    "type": "string"
                  },
                  "maxProperties": 10,
                  "propertyNames": {
                    "maxLength": 8
                  },
                  "type": "object"
                },
                "description": "Its own introduction to a part, per language; {}: the product's",
                "maxProperties": 40,
                "propertyNames": {
                  "maxLength": 80
                },
                "type": "object"
              },
              "order": {
                "description": "The parts it shows, in order; []: all of the product's",
                "items": {
                  "maxLength": 80,
                  "type": "string"
                },
                "maxItems": 40,
                "type": "array"
              }
            },
            "type": "object"
          }
        },
        "additionalProperties": false,
        "properties": {
          "audience": {
            "examples": [
              "Finance teams at Series B startups"
            ],
            "maxLength": 200,
            "type": "string"
          },
          "counts": {
            "description": "What reaching the goal is: the buyer qualifies, or asks to meet the team",
            "enum": [
              "qualified",
              "meeting"
            ],
            "type": "string"
          },
          "facts": {
            "description": "Replaces all its facts",
            "items": {
              "$ref": "#/$defs/AgentFact"
            },
            "maxItems": 20,
            "type": "array"
          },
          "goal": {
            "examples": [
              "Book a call with sales"
            ],
            "maxLength": 200,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "instructions": {
            "maxLength": 1000,
            "type": "string"
          },
          "script": {
            "$ref": "#/$defs/AgentScriptIn"
          },
          "tone": {
            "description": "pack: as the brief says",
            "enum": [
              "brief",
              "warm",
              "expert",
              "pack"
            ],
            "type": "string"
          },
          "voices": {
            "additionalProperties": {
              "maxLength": 100,
              "type": "string"
            },
            "description": "Voice id per language; Solacia only",
            "maxProperties": 10,
            "propertyNames": {
              "maxLength": 8
            },
            "type": "object"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "method": "PUT",
      "name": "change_agent",
      "operation": "agents.draft.save",
      "output_schema": {
        "$defs": {
          "AgentAsked": {
            "additionalProperties": false,
            "properties": {
              "buyers": {
                "title": "Buyers",
                "type": "integer"
              },
              "text": {
                "title": "Text",
                "type": "string"
              }
            },
            "required": [
              "text",
              "buyers"
            ],
            "title": "AgentAsked",
            "type": "object"
          },
          "AgentButton": {
            "additionalProperties": false,
            "properties": {
              "agenda": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Agenda"
              },
              "label": {
                "title": "Label",
                "type": "string"
              }
            },
            "required": [
              "label",
              "agenda"
            ],
            "title": "AgentButton",
            "type": "object"
          },
          "AgentChoiceOut": {
            "additionalProperties": false,
            "properties": {
              "agenda": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The part it picks; null: its words are said for the buyer",
                "title": "Agenda"
              },
              "label": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Its words per language; empty: the part's title",
                "title": "Label",
                "type": "object"
              }
            },
            "required": [
              "agenda",
              "label"
            ],
            "title": "AgentChoiceOut",
            "type": "object"
          },
          "AgentDraftOut": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "title": "At",
                "type": "string"
              },
              "behind": {
                "description": "Another version went live after it was started: publishing is refused",
                "title": "Behind",
                "type": "boolean"
              },
              "by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "By"
              },
              "content": {
                "$ref": "#/$defs/AgentVersionContent"
              },
              "faults": {
                "description": "Why its own lines can't go live yet; empty: it can be published",
                "items": {
                  "type": "string"
                },
                "title": "Faults",
                "type": "array"
              },
              "since": {
                "description": "The version it was started from",
                "title": "Since",
                "type": "integer"
              }
            },
            "required": [
              "since",
              "by",
              "at",
              "content",
              "faults",
              "behind"
            ],
            "title": "AgentDraftOut",
            "type": "object"
          },
          "AgentFact": {
            "additionalProperties": false,
            "properties": {
              "name": {
                "description": "What it is about; one named like the docs' replaces it",
                "maxLength": 80,
                "minLength": 1,
                "title": "Name",
                "type": "string"
              },
              "text": {
                "description": "What the agent says about it",
                "maxLength": 600,
                "minLength": 1,
                "title": "Text",
                "type": "string"
              }
            },
            "required": [
              "name",
              "text"
            ],
            "title": "AgentFact",
            "type": "object"
          },
          "AgentFactReplaces": {
            "additionalProperties": false,
            "description": "A public passage one of the agent's facts contradicts, left out of its calls' docs.",
            "properties": {
              "fact": {
                "description": "The fact's name",
                "title": "Fact",
                "type": "string"
              },
              "page": {
                "description": "The page's title",
                "title": "Page",
                "type": "string"
              },
              "says": {
                "description": "The page's sentence the fact replaces",
                "title": "Says",
                "type": "string"
              },
              "url": {
                "title": "Url",
                "type": "string"
              },
              "what": {
                "description": "What the two state differently, in a few words",
                "title": "What",
                "type": "string"
              }
            },
            "required": [
              "fact",
              "what",
              "page",
              "url",
              "says"
            ],
            "title": "AgentFactReplaces",
            "type": "object"
          },
          "AgentLine": {
            "additionalProperties": false,
            "properties": {
              "own": {
                "description": "The agent's own words; false: the product's",
                "title": "Own",
                "type": "boolean"
              },
              "pack": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The product's words it replaces, when it is the agent's own",
                "title": "Pack"
              },
              "text": {
                "title": "Text",
                "type": "string"
              }
            },
            "required": [
              "text",
              "own"
            ],
            "title": "AgentLine",
            "type": "object"
          },
          "AgentNote": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "title": "At",
                "type": "string"
              },
              "by": {
                "title": "By",
                "type": "string"
              },
              "done": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The version it went into, or dropped; null while open",
                "title": "Done"
              },
              "id": {
                "title": "Id",
                "type": "string"
              },
              "quote": {
                "description": "The turn's words when it was left",
                "title": "Quote",
                "type": "string"
              },
              "session": {
                "description": "The rehearsal it was left on",
                "title": "Session",
                "type": "string"
              },
              "tag": {
                "enum": [
                  "script",
                  "answer",
                  "screen",
                  "buyer"
                ],
                "title": "Tag",
                "type": "string"
              },
              "text": {
                "title": "Text",
                "type": "string"
              },
              "turn": {
                "description": "The turn it is about (AgentTurn.n)",
                "title": "Turn",
                "type": "integer"
              }
            },
            "required": [
              "id",
              "session",
              "turn",
              "tag",
              "quote",
              "text",
              "by",
              "at"
            ],
            "title": "AgentNote",
            "type": "object"
          },
          "AgentPart": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "title": "Id",
                "type": "string"
              },
              "intro": {
                "additionalProperties": {
                  "$ref": "#/$defs/AgentLine"
                },
                "description": "Language -> the agent's own introduction, said after the name; the product has none",
                "title": "Intro",
                "type": "object"
              },
              "name": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Language -> the sentence the part opens on, said by the call",
                "title": "Name",
                "type": "object"
              },
              "shows": {
                "description": "In the agent's focus; the ones it shows come first, in its order",
                "title": "Shows",
                "type": "boolean"
              },
              "title": {
                "additionalProperties": {
                  "type": "string"
                },
                "title": "Title",
                "type": "object"
              }
            },
            "required": [
              "id",
              "title",
              "shows",
              "intro"
            ],
            "title": "AgentPart",
            "type": "object"
          },
          "AgentPlace": {
            "additionalProperties": false,
            "description": "One place the agent meets buyers, with its last 30 days: `rule`, a website rule on where\nbuyers came from (`when` source) or the page (`when` page); `website`, the website's buyers no\nrule picks; `campaign`, the personal links of one campaign made with it; `links`, personal\nlinks with no campaign (with the account's default, also links that name no agent);\n`address`, the product's own demo address.",
            "properties": {
              "campaign": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Campaign"
              },
              "demos": {
                "default": 0,
                "title": "Demos",
                "type": "integer"
              },
              "kind": {
                "enum": [
                  "rule",
                  "website",
                  "campaign",
                  "links",
                  "address"
                ],
                "title": "Kind",
                "type": "string"
              },
              "links": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Links made, for a campaign or single links",
                "title": "Links"
              },
              "match": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Match"
              },
              "reached": {
                "default": 0,
                "description": "Demos that reached the agent's goal",
                "title": "Reached",
                "type": "integer"
              },
              "when": {
                "anyOf": [
                  {
                    "enum": [
                      "source",
                      "page"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "When"
              }
            },
            "required": [
              "kind"
            ],
            "title": "AgentPlace",
            "type": "object"
          },
          "AgentRehearsalMark": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "title": "At",
                "type": "string"
              },
              "by": {
                "title": "By",
                "type": "string"
              },
              "notes": {
                "description": "Open notes on it",
                "title": "Notes",
                "type": "integer"
              },
              "of": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "const": "draft",
                    "type": "string"
                  }
                ],
                "description": "What it ran: a version, or the draft as it was then",
                "title": "Of"
              },
              "session": {
                "title": "Session",
                "type": "string"
              },
              "url": {
                "description": "The demo, to go on with it",
                "title": "Url",
                "type": "string"
              }
            },
            "required": [
              "session",
              "by",
              "at",
              "of",
              "notes",
              "url"
            ],
            "title": "AgentRehearsalMark",
            "type": "object"
          },
          "AgentScriptOut": {
            "additionalProperties": false,
            "description": "The script as a buyer meets it, each line marked when it is the agent's own.",
            "properties": {
              "buttons": {
                "additionalProperties": {
                  "items": {
                    "$ref": "#/$defs/AgentButton"
                  },
                  "type": "array"
                },
                "title": "Buttons",
                "type": "object"
              },
              "first_deck": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "A deck that starts the demo by itself, so the opening asks nothing",
                "title": "First Deck"
              },
              "opening": {
                "additionalProperties": {
                  "$ref": "#/$defs/AgentLine"
                },
                "title": "Opening",
                "type": "object"
              },
              "own_buttons": {
                "title": "Own Buttons",
                "type": "boolean"
              },
              "parts": {
                "items": {
                  "$ref": "#/$defs/AgentPart"
                },
                "title": "Parts",
                "type": "array"
              }
            },
            "required": [
              "opening",
              "parts",
              "buttons",
              "own_buttons",
              "first_deck"
            ],
            "title": "AgentScriptOut",
            "type": "object"
          },
          "AgentTest": {
            "additionalProperties": false,
            "properties": {
              "agent": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The agent whose versions are the sides, wherever it is placed",
                "title": "Agent"
              },
              "arms": {
                "items": {
                  "$ref": "#/$defs/TestArm"
                },
                "title": "Arms",
                "type": "array"
              },
              "by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "By"
              },
              "chances": {
                "description": "The best challenger against A: worse, about the same, better",
                "items": {
                  "type": "number"
                },
                "title": "Chances",
                "type": "array"
              },
              "channel": {
                "anyOf": [
                  {
                    "enum": [
                      "embed",
                      "outbound",
                      "link"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Null: a test between one agent's versions",
                "title": "Channel"
              },
              "ended": {
                "description": "Past its end and not stopped: new buyers meet side A, one side waits to be kept",
                "title": "Ended",
                "type": "boolean"
              },
              "ends": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "When it stops taking buyers; null: when the team stops it",
                "title": "Ends"
              },
              "guardrails": {
                "description": "Between an agent's versions: what the test must not make worse, side A against B",
                "items": {
                  "$ref": "#/$defs/TestGuardrail"
                },
                "title": "Guardrails",
                "type": "array"
              },
              "high": {
                "title": "High",
                "type": "number"
              },
              "id": {
                "title": "Id",
                "type": "string"
              },
              "kept": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The agent kept for the channel when it stopped",
                "title": "Kept"
              },
              "leader": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Leader"
              },
              "lever": {
                "anyOf": [
                  {
                    "enum": [
                      "message",
                      "features",
                      "pricing",
                      "offer",
                      "qualification"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "What it is to learn, when it was started from a lever",
                "title": "Lever"
              },
              "lift": {
                "description": "The best challenger's meeting rate minus A's",
                "title": "Lift",
                "type": "number"
              },
              "looks": {
                "description": "Week by week, oldest first",
                "items": {
                  "$ref": "#/$defs/TestLook"
                },
                "title": "Looks",
                "type": "array"
              },
              "low": {
                "description": "95% interval of that difference, valid however often it is read",
                "title": "Low",
                "type": "number"
              },
              "meetings_from": {
                "default": "demo",
                "description": "What counts as a meeting. demo: asking in the demo; form: that, or sending the vendor's own demo form (the website against no demo); crm: a meeting the account's CRM shows booked after the prospect's link was made (outreach against no demo); qualified: the buyer qualified, hot or warm, which asking for a meeting also is (a test between versions)",
                "enum": [
                  "demo",
                  "form",
                  "crm",
                  "qualified"
                ],
                "title": "Meetings From",
                "type": "string"
              },
              "min_buyers": {
                "description": "Buyers each side needs before any verdict",
                "title": "Min Buyers",
                "type": "integer"
              },
              "more": {
                "description": "Buyers each side still needs: before any verdict when early, to decide when ahead",
                "title": "More",
                "type": "integer"
              },
              "per_side_week": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Buyers a week on its smallest side, from its whole weeks so far",
                "title": "Per Side Week"
              },
              "question": {
                "title": "Question",
                "type": "string"
              },
              "rule": {
                "default": "proven",
                "description": "How it decides. proven: a side goes live once it beats the others past chance; unless_worse (between an agent's versions): a challenger may go live once keeping it would cost under 0.2 points on average if it were worse, read at the end of each week",
                "enum": [
                  "unless_worse",
                  "proven"
                ],
                "title": "Rule",
                "type": "string"
              },
              "says": {
                "description": "The readout in one sentence",
                "title": "Says",
                "type": "string"
              },
              "sides": {
                "description": "Between an agent's versions: how far each side's buyers got",
                "items": {
                  "$ref": "#/$defs/TestSide"
                },
                "title": "Sides",
                "type": "array"
              },
              "srm": {
                "description": "p-value of the sample-ratio check",
                "title": "Srm",
                "type": "number"
              },
              "started": {
                "title": "Started",
                "type": "string"
              },
              "stopped": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Stopped"
              },
              "verdict": {
                "description": "winner: one side beats every other past chance, on an interval that holds however often the test is read; safe (unless_worse): at the end of one of its weeks a challenger risked under 0.2 points if worse, so it may go live (`leader`); even: the gap is proven under 2 points; broken: the buyers did not fall on the sides as the shares say",
                "enum": [
                  "early",
                  "ahead",
                  "winner",
                  "even",
                  "safe",
                  "broken"
                ],
                "title": "Verdict",
                "type": "string"
              },
              "weeks_left": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Weeks until `more` buyers a side arrive at that pace; null when not counting",
                "title": "Weeks Left"
              }
            },
            "required": [
              "id",
              "channel",
              "question",
              "started",
              "stopped",
              "ends",
              "ended",
              "min_buyers",
              "kept",
              "by",
              "arms",
              "verdict",
              "leader",
              "lift",
              "low",
              "high",
              "more",
              "srm",
              "says"
            ],
            "title": "AgentTest",
            "type": "object"
          },
          "AgentTestMark": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "title": "Id",
                "type": "string"
              },
              "kept": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Kept"
              },
              "started": {
                "title": "Started",
                "type": "string"
              },
              "stopped": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Stopped"
              }
            },
            "required": [
              "id",
              "started",
              "stopped",
              "kept"
            ],
            "title": "AgentTestMark",
            "type": "object"
          },
          "AgentVersionContent": {
            "additionalProperties": false,
            "description": "A version: what a buyer gets from the agent. Script fields left empty are the pack's.",
            "properties": {
              "audience": {
                "description": "Who its demos are for, in the team's words",
                "title": "Audience",
                "type": "string"
              },
              "choices": {
                "description": "Its own buttons under the opening",
                "items": {
                  "$ref": "#/$defs/AgentChoiceOut"
                },
                "title": "Choices",
                "type": "array"
              },
              "counts": {
                "default": "qualified",
                "description": "What reaching the goal is, as a test of its versions reads it",
                "enum": [
                  "qualified",
                  "meeting"
                ],
                "title": "Counts",
                "type": "string"
              },
              "facts": {
                "items": {
                  "$ref": "#/$defs/AgentFact"
                },
                "title": "Facts",
                "type": "array"
              },
              "goal": {
                "description": "What a demo with it is for, in the team's words",
                "title": "Goal",
                "type": "string"
              },
              "instructions": {
                "title": "Instructions",
                "type": "string"
              },
              "intro": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Its own opening per language",
                "title": "Intro",
                "type": "object"
              },
              "lines": {
                "additionalProperties": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "description": "Its own introduction to a part, per language",
                "title": "Lines",
                "type": "object"
              },
              "order": {
                "description": "The parts it shows, in order; empty: all of the product's",
                "items": {
                  "type": "string"
                },
                "title": "Order",
                "type": "array"
              },
              "tone": {
                "anyOf": [
                  {
                    "enum": [
                      "brief",
                      "warm",
                      "expert"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Tone"
              },
              "voices": {
                "additionalProperties": {
                  "type": "string"
                },
                "title": "Voices",
                "type": "object"
              }
            },
            "required": [
              "tone",
              "instructions",
              "facts",
              "voices",
              "audience",
              "goal",
              "order",
              "intro",
              "lines",
              "choices"
            ],
            "title": "AgentVersionContent",
            "type": "object"
          },
          "AgentVersionOut": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "When it went live; null for the pack's own first version",
                "title": "At"
              },
              "by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "By"
              },
              "changed": {
                "description": "What it changed from the version before, in the team's words, such as Opening or Order of parts; or that it put an older version back. Empty for the first.",
                "items": {
                  "type": "string"
                },
                "title": "Changed",
                "type": "array"
              },
              "live": {
                "title": "Live",
                "type": "boolean"
              },
              "number": {
                "title": "Number",
                "type": "integer"
              }
            },
            "required": [
              "number",
              "at",
              "by",
              "live"
            ],
            "title": "AgentVersionOut",
            "type": "object"
          },
          "AgentWeek": {
            "additionalProperties": false,
            "properties": {
              "demos": {
                "title": "Demos",
                "type": "integer"
              },
              "meetings": {
                "title": "Meetings",
                "type": "integer"
              },
              "reached": {
                "description": "Buyers who did what its goal counts",
                "title": "Reached",
                "type": "integer"
              },
              "start": {
                "description": "Its Monday",
                "title": "Start",
                "type": "string"
              }
            },
            "required": [
              "start",
              "demos",
              "reached",
              "meetings"
            ],
            "title": "AgentWeek",
            "type": "object"
          },
          "FlowWay": {
            "additionalProperties": false,
            "description": "One way a demo can go, from opening it to where the buyer is now, and how many went it.",
            "properties": {
              "n": {
                "title": "N",
                "type": "integer"
              },
              "steps": {
                "examples": [
                  [
                    "opened",
                    "saw",
                    "talked",
                    "qualified",
                    "meeting"
                  ]
                ],
                "items": {
                  "type": "string"
                },
                "title": "Steps",
                "type": "array"
              }
            },
            "required": [
              "steps",
              "n"
            ],
            "title": "FlowWay",
            "type": "object"
          },
          "TestArm": {
            "additionalProperties": false,
            "properties": {
              "agent": {
                "title": "Agent",
                "type": "string"
              },
              "best": {
                "description": "The chance this side is the best of them (0 to 1)",
                "title": "Best",
                "type": "number"
              },
              "buyers": {
                "description": "Buyers put on this side who opened a demo; each counts once",
                "title": "Buyers",
                "type": "integer"
              },
              "cost": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "US cents a demo. Solacia's people only; null for everyone else",
                "title": "Cost"
              },
              "demos": {
                "title": "Demos",
                "type": "integer"
              },
              "key": {
                "description": "A (what ran before), B, C",
                "title": "Key",
                "type": "string"
              },
              "loss": {
                "description": "Meeting rate lost on average by keeping this side, if another is better (0.004 = 0.4 points)",
                "title": "Loss",
                "type": "number"
              },
              "meetings": {
                "description": "Buyers who asked for a meeting",
                "title": "Meetings",
                "type": "integer"
              },
              "name": {
                "title": "Name",
                "type": "string"
              },
              "rate": {
                "description": "meetings / buyers",
                "title": "Rate",
                "type": "number"
              },
              "renderer": {
                "enum": [
                  "voice",
                  "face"
                ],
                "title": "Renderer",
                "type": "string"
              },
              "share": {
                "description": "Percent of buyers sent to this side",
                "title": "Share",
                "type": "integer"
              },
              "version": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "In a test between an agent's versions: this side's; null for its draft",
                "title": "Version"
              }
            },
            "required": [
              "key",
              "agent",
              "name",
              "renderer",
              "cost",
              "share",
              "buyers",
              "demos",
              "meetings",
              "rate",
              "best",
              "loss"
            ],
            "title": "TestArm",
            "type": "object"
          },
          "TestGuardrail": {
            "additionalProperties": false,
            "description": "One guardrail across a test's two sides, as a scorecard row: side A, side B, B minus A and\nits interval, read as the goal's is (valid however often it is read).",
            "properties": {
              "a": {
                "title": "A",
                "type": "number"
              },
              "a_count": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Buyers who did it on side A; null for an average",
                "title": "A Count"
              },
              "b": {
                "title": "B",
                "type": "number"
              },
              "b_count": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "B Count"
              },
              "better": {
                "description": "Which way is better",
                "enum": [
                  "up",
                  "down"
                ],
                "title": "Better",
                "type": "string"
              },
              "gap": {
                "description": "b minus a: points of share, or minutes",
                "title": "Gap",
                "type": "number"
              },
              "high": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "High"
              },
              "id": {
                "description": "meetings: share who asked to meet the team; minutes: average minutes in the demo; left_early: share who left in the first minute",
                "enum": [
                  "meetings",
                  "minutes",
                  "left_early"
                ],
                "title": "Id",
                "type": "string"
              },
              "low": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Null until both sides have buyers",
                "title": "Low"
              }
            },
            "required": [
              "id",
              "better",
              "a",
              "b",
              "gap",
              "low",
              "high"
            ],
            "title": "TestGuardrail",
            "type": "object"
          },
          "TestGuards": {
            "additionalProperties": false,
            "properties": {
              "buyers": {
                "title": "Buyers",
                "type": "integer"
              },
              "left_early": {
                "description": "Share who left in the first minute",
                "title": "Left Early",
                "type": "number"
              },
              "meetings": {
                "description": "Share who asked to meet the team",
                "title": "Meetings",
                "type": "number"
              },
              "minutes": {
                "description": "Average minutes in the demo",
                "title": "Minutes",
                "type": "number"
              }
            },
            "required": [
              "buyers",
              "meetings",
              "minutes",
              "left_early"
            ],
            "title": "TestGuards",
            "type": "object"
          },
          "TestLook": {
            "additionalProperties": false,
            "description": "The test as it stood at the end of one of its weeks.",
            "properties": {
              "at": {
                "description": "When that week ended",
                "title": "At",
                "type": "string"
              },
              "better": {
                "description": "The chance it is better by over a point",
                "title": "Better",
                "type": "number"
              },
              "buyers": {
                "description": "On each side, A first",
                "items": {
                  "type": "integer"
                },
                "title": "Buyers",
                "type": "array"
              },
              "gap": {
                "description": "The best challenger's rate minus A's",
                "title": "Gap",
                "type": "number"
              },
              "high": {
                "title": "High",
                "type": "number"
              },
              "low": {
                "title": "Low",
                "type": "number"
              },
              "rates": {
                "items": {
                  "type": "number"
                },
                "title": "Rates",
                "type": "array"
              },
              "safe": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Under unless_worse: the side that could go live at this week's end",
                "title": "Safe"
              },
              "same": {
                "description": "The chance it is within a point either way",
                "title": "Same",
                "type": "number"
              },
              "week": {
                "description": "1: its first seven days",
                "title": "Week",
                "type": "integer"
              },
              "worse": {
                "description": "The chance that challenger is worse than A, by over a point",
                "title": "Worse",
                "type": "number"
              }
            },
            "required": [
              "week",
              "at",
              "buyers",
              "rates",
              "gap",
              "low",
              "high",
              "worse",
              "same",
              "better"
            ],
            "title": "TestLook",
            "type": "object"
          },
          "TestSide": {
            "additionalProperties": false,
            "description": "One side of a test between an agent's versions, as its buyers went through it.",
            "properties": {
              "guards": {
                "$ref": "#/$defs/TestGuards"
              },
              "key": {
                "title": "Key",
                "type": "string"
              },
              "paths": {
                "description": "How many buyers went each way, as Home's flow reads demos; every way listed, zeros included",
                "items": {
                  "$ref": "#/$defs/FlowWay"
                },
                "title": "Paths",
                "type": "array"
              }
            },
            "required": [
              "key",
              "paths",
              "guards"
            ],
            "title": "TestSide",
            "type": "object"
          }
        },
        "additionalProperties": false,
        "description": "One agent: its live version, its draft, every version, and its script. In preview.",
        "properties": {
          "base": {
            "title": "Base",
            "type": "boolean"
          },
          "draft": {
            "anyOf": [
              {
                "$ref": "#/$defs/AgentDraftOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "in_test": {
            "description": "One side of a running test: nothing can be published until it stops",
            "title": "In Test",
            "type": "boolean"
          },
          "languages": {
            "items": {
              "type": "string"
            },
            "title": "Languages",
            "type": "array"
          },
          "live": {
            "$ref": "#/$defs/AgentVersionContent"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "notes": {
            "description": "Notes left on its rehearsals that no version took yet, oldest first",
            "items": {
              "$ref": "#/$defs/AgentNote"
            },
            "title": "Notes",
            "type": "array"
          },
          "places": {
            "description": "Where it runs, with the last 30 days",
            "items": {
              "$ref": "#/$defs/AgentPlace"
            },
            "title": "Places",
            "type": "array"
          },
          "rehearsals": {
            "description": "Its newest rehearsals",
            "items": {
              "$ref": "#/$defs/AgentRehearsalMark"
            },
            "title": "Rehearsals",
            "type": "array"
          },
          "renderer": {
            "default": "voice",
            "description": "What buyers get: the voice, or voice and face",
            "enum": [
              "voice",
              "face"
            ],
            "title": "Renderer",
            "type": "string"
          },
          "replaces": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/$defs/AgentFactReplaces"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "What the facts it shows (the draft's, else the live version's) replace in the public docs; null while they are being checked",
            "title": "Replaces"
          },
          "retired": {
            "description": "Paused: it meets no buyer anywhere until resumed",
            "title": "Retired",
            "type": "boolean"
          },
          "runs": {
            "description": "The defaults it holds; it can't pause until they move",
            "items": {
              "enum": [
                "embed",
                "outbound",
                "link"
              ],
              "type": "string"
            },
            "title": "Runs",
            "type": "array"
          },
          "schema": {
            "default": "solacia.agents.v0",
            "title": "Schema",
            "type": "string"
          },
          "script": {
            "$ref": "#/$defs/AgentScriptOut"
          },
          "script_of": {
            "description": "Which version `script` shows",
            "enum": [
              "draft",
              "live"
            ],
            "title": "Script Of",
            "type": "string"
          },
          "test": {
            "anyOf": [
              {
                "$ref": "#/$defs/AgentTest"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its running test between its versions"
          },
          "tests_started": {
            "description": "Its tests between versions",
            "items": {
              "$ref": "#/$defs/AgentTestMark"
            },
            "title": "Tests Started",
            "type": "array"
          },
          "unanswered": {
            "description": "What its buyers asked in the last 30 days that the docs held no answer to",
            "items": {
              "$ref": "#/$defs/AgentAsked"
            },
            "title": "Unanswered",
            "type": "array"
          },
          "version": {
            "title": "Version",
            "type": "integer"
          },
          "versions": {
            "description": "Oldest first",
            "items": {
              "$ref": "#/$defs/AgentVersionOut"
            },
            "title": "Versions",
            "type": "array"
          },
          "weeks": {
            "description": "Its last 12 weeks, oldest first",
            "items": {
              "$ref": "#/$defs/AgentWeek"
            },
            "title": "Weeks",
            "type": "array"
          }
        },
        "required": [
          "id",
          "name",
          "base",
          "retired",
          "version",
          "live",
          "draft",
          "versions",
          "script_of",
          "script",
          "languages",
          "in_test",
          "test"
        ],
        "title": "AgentDetail",
        "type": "object"
      },
      "path": "/agents/{id}/draft",
      "scope": "agents:admin",
      "title": "Change an agent's draft"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Publish an agent's draft"
      },
      "description": "Make an agent's draft its live version: every demo that starts from now on meets it. Show the person what changed (get_agent) and publish only when they say so.",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "method": "POST",
      "name": "publish_agent",
      "operation": "agents.draft.publish",
      "output_schema": {
        "$defs": {
          "AgentAsked": {
            "additionalProperties": false,
            "properties": {
              "buyers": {
                "title": "Buyers",
                "type": "integer"
              },
              "text": {
                "title": "Text",
                "type": "string"
              }
            },
            "required": [
              "text",
              "buyers"
            ],
            "title": "AgentAsked",
            "type": "object"
          },
          "AgentButton": {
            "additionalProperties": false,
            "properties": {
              "agenda": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Agenda"
              },
              "label": {
                "title": "Label",
                "type": "string"
              }
            },
            "required": [
              "label",
              "agenda"
            ],
            "title": "AgentButton",
            "type": "object"
          },
          "AgentChoiceOut": {
            "additionalProperties": false,
            "properties": {
              "agenda": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The part it picks; null: its words are said for the buyer",
                "title": "Agenda"
              },
              "label": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Its words per language; empty: the part's title",
                "title": "Label",
                "type": "object"
              }
            },
            "required": [
              "agenda",
              "label"
            ],
            "title": "AgentChoiceOut",
            "type": "object"
          },
          "AgentDraftOut": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "title": "At",
                "type": "string"
              },
              "behind": {
                "description": "Another version went live after it was started: publishing is refused",
                "title": "Behind",
                "type": "boolean"
              },
              "by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "By"
              },
              "content": {
                "$ref": "#/$defs/AgentVersionContent"
              },
              "faults": {
                "description": "Why its own lines can't go live yet; empty: it can be published",
                "items": {
                  "type": "string"
                },
                "title": "Faults",
                "type": "array"
              },
              "since": {
                "description": "The version it was started from",
                "title": "Since",
                "type": "integer"
              }
            },
            "required": [
              "since",
              "by",
              "at",
              "content",
              "faults",
              "behind"
            ],
            "title": "AgentDraftOut",
            "type": "object"
          },
          "AgentFact": {
            "additionalProperties": false,
            "properties": {
              "name": {
                "description": "What it is about; one named like the docs' replaces it",
                "maxLength": 80,
                "minLength": 1,
                "title": "Name",
                "type": "string"
              },
              "text": {
                "description": "What the agent says about it",
                "maxLength": 600,
                "minLength": 1,
                "title": "Text",
                "type": "string"
              }
            },
            "required": [
              "name",
              "text"
            ],
            "title": "AgentFact",
            "type": "object"
          },
          "AgentFactReplaces": {
            "additionalProperties": false,
            "description": "A public passage one of the agent's facts contradicts, left out of its calls' docs.",
            "properties": {
              "fact": {
                "description": "The fact's name",
                "title": "Fact",
                "type": "string"
              },
              "page": {
                "description": "The page's title",
                "title": "Page",
                "type": "string"
              },
              "says": {
                "description": "The page's sentence the fact replaces",
                "title": "Says",
                "type": "string"
              },
              "url": {
                "title": "Url",
                "type": "string"
              },
              "what": {
                "description": "What the two state differently, in a few words",
                "title": "What",
                "type": "string"
              }
            },
            "required": [
              "fact",
              "what",
              "page",
              "url",
              "says"
            ],
            "title": "AgentFactReplaces",
            "type": "object"
          },
          "AgentLine": {
            "additionalProperties": false,
            "properties": {
              "own": {
                "description": "The agent's own words; false: the product's",
                "title": "Own",
                "type": "boolean"
              },
              "pack": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The product's words it replaces, when it is the agent's own",
                "title": "Pack"
              },
              "text": {
                "title": "Text",
                "type": "string"
              }
            },
            "required": [
              "text",
              "own"
            ],
            "title": "AgentLine",
            "type": "object"
          },
          "AgentNote": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "title": "At",
                "type": "string"
              },
              "by": {
                "title": "By",
                "type": "string"
              },
              "done": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The version it went into, or dropped; null while open",
                "title": "Done"
              },
              "id": {
                "title": "Id",
                "type": "string"
              },
              "quote": {
                "description": "The turn's words when it was left",
                "title": "Quote",
                "type": "string"
              },
              "session": {
                "description": "The rehearsal it was left on",
                "title": "Session",
                "type": "string"
              },
              "tag": {
                "enum": [
                  "script",
                  "answer",
                  "screen",
                  "buyer"
                ],
                "title": "Tag",
                "type": "string"
              },
              "text": {
                "title": "Text",
                "type": "string"
              },
              "turn": {
                "description": "The turn it is about (AgentTurn.n)",
                "title": "Turn",
                "type": "integer"
              }
            },
            "required": [
              "id",
              "session",
              "turn",
              "tag",
              "quote",
              "text",
              "by",
              "at"
            ],
            "title": "AgentNote",
            "type": "object"
          },
          "AgentPart": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "title": "Id",
                "type": "string"
              },
              "intro": {
                "additionalProperties": {
                  "$ref": "#/$defs/AgentLine"
                },
                "description": "Language -> the agent's own introduction, said after the name; the product has none",
                "title": "Intro",
                "type": "object"
              },
              "name": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Language -> the sentence the part opens on, said by the call",
                "title": "Name",
                "type": "object"
              },
              "shows": {
                "description": "In the agent's focus; the ones it shows come first, in its order",
                "title": "Shows",
                "type": "boolean"
              },
              "title": {
                "additionalProperties": {
                  "type": "string"
                },
                "title": "Title",
                "type": "object"
              }
            },
            "required": [
              "id",
              "title",
              "shows",
              "intro"
            ],
            "title": "AgentPart",
            "type": "object"
          },
          "AgentPlace": {
            "additionalProperties": false,
            "description": "One place the agent meets buyers, with its last 30 days: `rule`, a website rule on where\nbuyers came from (`when` source) or the page (`when` page); `website`, the website's buyers no\nrule picks; `campaign`, the personal links of one campaign made with it; `links`, personal\nlinks with no campaign (with the account's default, also links that name no agent);\n`address`, the product's own demo address.",
            "properties": {
              "campaign": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Campaign"
              },
              "demos": {
                "default": 0,
                "title": "Demos",
                "type": "integer"
              },
              "kind": {
                "enum": [
                  "rule",
                  "website",
                  "campaign",
                  "links",
                  "address"
                ],
                "title": "Kind",
                "type": "string"
              },
              "links": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Links made, for a campaign or single links",
                "title": "Links"
              },
              "match": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Match"
              },
              "reached": {
                "default": 0,
                "description": "Demos that reached the agent's goal",
                "title": "Reached",
                "type": "integer"
              },
              "when": {
                "anyOf": [
                  {
                    "enum": [
                      "source",
                      "page"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "When"
              }
            },
            "required": [
              "kind"
            ],
            "title": "AgentPlace",
            "type": "object"
          },
          "AgentRehearsalMark": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "title": "At",
                "type": "string"
              },
              "by": {
                "title": "By",
                "type": "string"
              },
              "notes": {
                "description": "Open notes on it",
                "title": "Notes",
                "type": "integer"
              },
              "of": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "const": "draft",
                    "type": "string"
                  }
                ],
                "description": "What it ran: a version, or the draft as it was then",
                "title": "Of"
              },
              "session": {
                "title": "Session",
                "type": "string"
              },
              "url": {
                "description": "The demo, to go on with it",
                "title": "Url",
                "type": "string"
              }
            },
            "required": [
              "session",
              "by",
              "at",
              "of",
              "notes",
              "url"
            ],
            "title": "AgentRehearsalMark",
            "type": "object"
          },
          "AgentScriptOut": {
            "additionalProperties": false,
            "description": "The script as a buyer meets it, each line marked when it is the agent's own.",
            "properties": {
              "buttons": {
                "additionalProperties": {
                  "items": {
                    "$ref": "#/$defs/AgentButton"
                  },
                  "type": "array"
                },
                "title": "Buttons",
                "type": "object"
              },
              "first_deck": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "A deck that starts the demo by itself, so the opening asks nothing",
                "title": "First Deck"
              },
              "opening": {
                "additionalProperties": {
                  "$ref": "#/$defs/AgentLine"
                },
                "title": "Opening",
                "type": "object"
              },
              "own_buttons": {
                "title": "Own Buttons",
                "type": "boolean"
              },
              "parts": {
                "items": {
                  "$ref": "#/$defs/AgentPart"
                },
                "title": "Parts",
                "type": "array"
              }
            },
            "required": [
              "opening",
              "parts",
              "buttons",
              "own_buttons",
              "first_deck"
            ],
            "title": "AgentScriptOut",
            "type": "object"
          },
          "AgentTest": {
            "additionalProperties": false,
            "properties": {
              "agent": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The agent whose versions are the sides, wherever it is placed",
                "title": "Agent"
              },
              "arms": {
                "items": {
                  "$ref": "#/$defs/TestArm"
                },
                "title": "Arms",
                "type": "array"
              },
              "by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "By"
              },
              "chances": {
                "description": "The best challenger against A: worse, about the same, better",
                "items": {
                  "type": "number"
                },
                "title": "Chances",
                "type": "array"
              },
              "channel": {
                "anyOf": [
                  {
                    "enum": [
                      "embed",
                      "outbound",
                      "link"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Null: a test between one agent's versions",
                "title": "Channel"
              },
              "ended": {
                "description": "Past its end and not stopped: new buyers meet side A, one side waits to be kept",
                "title": "Ended",
                "type": "boolean"
              },
              "ends": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "When it stops taking buyers; null: when the team stops it",
                "title": "Ends"
              },
              "guardrails": {
                "description": "Between an agent's versions: what the test must not make worse, side A against B",
                "items": {
                  "$ref": "#/$defs/TestGuardrail"
                },
                "title": "Guardrails",
                "type": "array"
              },
              "high": {
                "title": "High",
                "type": "number"
              },
              "id": {
                "title": "Id",
                "type": "string"
              },
              "kept": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The agent kept for the channel when it stopped",
                "title": "Kept"
              },
              "leader": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Leader"
              },
              "lever": {
                "anyOf": [
                  {
                    "enum": [
                      "message",
                      "features",
                      "pricing",
                      "offer",
                      "qualification"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "What it is to learn, when it was started from a lever",
                "title": "Lever"
              },
              "lift": {
                "description": "The best challenger's meeting rate minus A's",
                "title": "Lift",
                "type": "number"
              },
              "looks": {
                "description": "Week by week, oldest first",
                "items": {
                  "$ref": "#/$defs/TestLook"
                },
                "title": "Looks",
                "type": "array"
              },
              "low": {
                "description": "95% interval of that difference, valid however often it is read",
                "title": "Low",
                "type": "number"
              },
              "meetings_from": {
                "default": "demo",
                "description": "What counts as a meeting. demo: asking in the demo; form: that, or sending the vendor's own demo form (the website against no demo); crm: a meeting the account's CRM shows booked after the prospect's link was made (outreach against no demo); qualified: the buyer qualified, hot or warm, which asking for a meeting also is (a test between versions)",
                "enum": [
                  "demo",
                  "form",
                  "crm",
                  "qualified"
                ],
                "title": "Meetings From",
                "type": "string"
              },
              "min_buyers": {
                "description": "Buyers each side needs before any verdict",
                "title": "Min Buyers",
                "type": "integer"
              },
              "more": {
                "description": "Buyers each side still needs: before any verdict when early, to decide when ahead",
                "title": "More",
                "type": "integer"
              },
              "per_side_week": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Buyers a week on its smallest side, from its whole weeks so far",
                "title": "Per Side Week"
              },
              "question": {
                "title": "Question",
                "type": "string"
              },
              "rule": {
                "default": "proven",
                "description": "How it decides. proven: a side goes live once it beats the others past chance; unless_worse (between an agent's versions): a challenger may go live once keeping it would cost under 0.2 points on average if it were worse, read at the end of each week",
                "enum": [
                  "unless_worse",
                  "proven"
                ],
                "title": "Rule",
                "type": "string"
              },
              "says": {
                "description": "The readout in one sentence",
                "title": "Says",
                "type": "string"
              },
              "sides": {
                "description": "Between an agent's versions: how far each side's buyers got",
                "items": {
                  "$ref": "#/$defs/TestSide"
                },
                "title": "Sides",
                "type": "array"
              },
              "srm": {
                "description": "p-value of the sample-ratio check",
                "title": "Srm",
                "type": "number"
              },
              "started": {
                "title": "Started",
                "type": "string"
              },
              "stopped": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Stopped"
              },
              "verdict": {
                "description": "winner: one side beats every other past chance, on an interval that holds however often the test is read; safe (unless_worse): at the end of one of its weeks a challenger risked under 0.2 points if worse, so it may go live (`leader`); even: the gap is proven under 2 points; broken: the buyers did not fall on the sides as the shares say",
                "enum": [
                  "early",
                  "ahead",
                  "winner",
                  "even",
                  "safe",
                  "broken"
                ],
                "title": "Verdict",
                "type": "string"
              },
              "weeks_left": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Weeks until `more` buyers a side arrive at that pace; null when not counting",
                "title": "Weeks Left"
              }
            },
            "required": [
              "id",
              "channel",
              "question",
              "started",
              "stopped",
              "ends",
              "ended",
              "min_buyers",
              "kept",
              "by",
              "arms",
              "verdict",
              "leader",
              "lift",
              "low",
              "high",
              "more",
              "srm",
              "says"
            ],
            "title": "AgentTest",
            "type": "object"
          },
          "AgentTestMark": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "title": "Id",
                "type": "string"
              },
              "kept": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Kept"
              },
              "started": {
                "title": "Started",
                "type": "string"
              },
              "stopped": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Stopped"
              }
            },
            "required": [
              "id",
              "started",
              "stopped",
              "kept"
            ],
            "title": "AgentTestMark",
            "type": "object"
          },
          "AgentVersionContent": {
            "additionalProperties": false,
            "description": "A version: what a buyer gets from the agent. Script fields left empty are the pack's.",
            "properties": {
              "audience": {
                "description": "Who its demos are for, in the team's words",
                "title": "Audience",
                "type": "string"
              },
              "choices": {
                "description": "Its own buttons under the opening",
                "items": {
                  "$ref": "#/$defs/AgentChoiceOut"
                },
                "title": "Choices",
                "type": "array"
              },
              "counts": {
                "default": "qualified",
                "description": "What reaching the goal is, as a test of its versions reads it",
                "enum": [
                  "qualified",
                  "meeting"
                ],
                "title": "Counts",
                "type": "string"
              },
              "facts": {
                "items": {
                  "$ref": "#/$defs/AgentFact"
                },
                "title": "Facts",
                "type": "array"
              },
              "goal": {
                "description": "What a demo with it is for, in the team's words",
                "title": "Goal",
                "type": "string"
              },
              "instructions": {
                "title": "Instructions",
                "type": "string"
              },
              "intro": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Its own opening per language",
                "title": "Intro",
                "type": "object"
              },
              "lines": {
                "additionalProperties": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "description": "Its own introduction to a part, per language",
                "title": "Lines",
                "type": "object"
              },
              "order": {
                "description": "The parts it shows, in order; empty: all of the product's",
                "items": {
                  "type": "string"
                },
                "title": "Order",
                "type": "array"
              },
              "tone": {
                "anyOf": [
                  {
                    "enum": [
                      "brief",
                      "warm",
                      "expert"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Tone"
              },
              "voices": {
                "additionalProperties": {
                  "type": "string"
                },
                "title": "Voices",
                "type": "object"
              }
            },
            "required": [
              "tone",
              "instructions",
              "facts",
              "voices",
              "audience",
              "goal",
              "order",
              "intro",
              "lines",
              "choices"
            ],
            "title": "AgentVersionContent",
            "type": "object"
          },
          "AgentVersionOut": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "When it went live; null for the pack's own first version",
                "title": "At"
              },
              "by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "By"
              },
              "changed": {
                "description": "What it changed from the version before, in the team's words, such as Opening or Order of parts; or that it put an older version back. Empty for the first.",
                "items": {
                  "type": "string"
                },
                "title": "Changed",
                "type": "array"
              },
              "live": {
                "title": "Live",
                "type": "boolean"
              },
              "number": {
                "title": "Number",
                "type": "integer"
              }
            },
            "required": [
              "number",
              "at",
              "by",
              "live"
            ],
            "title": "AgentVersionOut",
            "type": "object"
          },
          "AgentWeek": {
            "additionalProperties": false,
            "properties": {
              "demos": {
                "title": "Demos",
                "type": "integer"
              },
              "meetings": {
                "title": "Meetings",
                "type": "integer"
              },
              "reached": {
                "description": "Buyers who did what its goal counts",
                "title": "Reached",
                "type": "integer"
              },
              "start": {
                "description": "Its Monday",
                "title": "Start",
                "type": "string"
              }
            },
            "required": [
              "start",
              "demos",
              "reached",
              "meetings"
            ],
            "title": "AgentWeek",
            "type": "object"
          },
          "FlowWay": {
            "additionalProperties": false,
            "description": "One way a demo can go, from opening it to where the buyer is now, and how many went it.",
            "properties": {
              "n": {
                "title": "N",
                "type": "integer"
              },
              "steps": {
                "examples": [
                  [
                    "opened",
                    "saw",
                    "talked",
                    "qualified",
                    "meeting"
                  ]
                ],
                "items": {
                  "type": "string"
                },
                "title": "Steps",
                "type": "array"
              }
            },
            "required": [
              "steps",
              "n"
            ],
            "title": "FlowWay",
            "type": "object"
          },
          "TestArm": {
            "additionalProperties": false,
            "properties": {
              "agent": {
                "title": "Agent",
                "type": "string"
              },
              "best": {
                "description": "The chance this side is the best of them (0 to 1)",
                "title": "Best",
                "type": "number"
              },
              "buyers": {
                "description": "Buyers put on this side who opened a demo; each counts once",
                "title": "Buyers",
                "type": "integer"
              },
              "cost": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "US cents a demo. Solacia's people only; null for everyone else",
                "title": "Cost"
              },
              "demos": {
                "title": "Demos",
                "type": "integer"
              },
              "key": {
                "description": "A (what ran before), B, C",
                "title": "Key",
                "type": "string"
              },
              "loss": {
                "description": "Meeting rate lost on average by keeping this side, if another is better (0.004 = 0.4 points)",
                "title": "Loss",
                "type": "number"
              },
              "meetings": {
                "description": "Buyers who asked for a meeting",
                "title": "Meetings",
                "type": "integer"
              },
              "name": {
                "title": "Name",
                "type": "string"
              },
              "rate": {
                "description": "meetings / buyers",
                "title": "Rate",
                "type": "number"
              },
              "renderer": {
                "enum": [
                  "voice",
                  "face"
                ],
                "title": "Renderer",
                "type": "string"
              },
              "share": {
                "description": "Percent of buyers sent to this side",
                "title": "Share",
                "type": "integer"
              },
              "version": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "In a test between an agent's versions: this side's; null for its draft",
                "title": "Version"
              }
            },
            "required": [
              "key",
              "agent",
              "name",
              "renderer",
              "cost",
              "share",
              "buyers",
              "demos",
              "meetings",
              "rate",
              "best",
              "loss"
            ],
            "title": "TestArm",
            "type": "object"
          },
          "TestGuardrail": {
            "additionalProperties": false,
            "description": "One guardrail across a test's two sides, as a scorecard row: side A, side B, B minus A and\nits interval, read as the goal's is (valid however often it is read).",
            "properties": {
              "a": {
                "title": "A",
                "type": "number"
              },
              "a_count": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Buyers who did it on side A; null for an average",
                "title": "A Count"
              },
              "b": {
                "title": "B",
                "type": "number"
              },
              "b_count": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "B Count"
              },
              "better": {
                "description": "Which way is better",
                "enum": [
                  "up",
                  "down"
                ],
                "title": "Better",
                "type": "string"
              },
              "gap": {
                "description": "b minus a: points of share, or minutes",
                "title": "Gap",
                "type": "number"
              },
              "high": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "High"
              },
              "id": {
                "description": "meetings: share who asked to meet the team; minutes: average minutes in the demo; left_early: share who left in the first minute",
                "enum": [
                  "meetings",
                  "minutes",
                  "left_early"
                ],
                "title": "Id",
                "type": "string"
              },
              "low": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Null until both sides have buyers",
                "title": "Low"
              }
            },
            "required": [
              "id",
              "better",
              "a",
              "b",
              "gap",
              "low",
              "high"
            ],
            "title": "TestGuardrail",
            "type": "object"
          },
          "TestGuards": {
            "additionalProperties": false,
            "properties": {
              "buyers": {
                "title": "Buyers",
                "type": "integer"
              },
              "left_early": {
                "description": "Share who left in the first minute",
                "title": "Left Early",
                "type": "number"
              },
              "meetings": {
                "description": "Share who asked to meet the team",
                "title": "Meetings",
                "type": "number"
              },
              "minutes": {
                "description": "Average minutes in the demo",
                "title": "Minutes",
                "type": "number"
              }
            },
            "required": [
              "buyers",
              "meetings",
              "minutes",
              "left_early"
            ],
            "title": "TestGuards",
            "type": "object"
          },
          "TestLook": {
            "additionalProperties": false,
            "description": "The test as it stood at the end of one of its weeks.",
            "properties": {
              "at": {
                "description": "When that week ended",
                "title": "At",
                "type": "string"
              },
              "better": {
                "description": "The chance it is better by over a point",
                "title": "Better",
                "type": "number"
              },
              "buyers": {
                "description": "On each side, A first",
                "items": {
                  "type": "integer"
                },
                "title": "Buyers",
                "type": "array"
              },
              "gap": {
                "description": "The best challenger's rate minus A's",
                "title": "Gap",
                "type": "number"
              },
              "high": {
                "title": "High",
                "type": "number"
              },
              "low": {
                "title": "Low",
                "type": "number"
              },
              "rates": {
                "items": {
                  "type": "number"
                },
                "title": "Rates",
                "type": "array"
              },
              "safe": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Under unless_worse: the side that could go live at this week's end",
                "title": "Safe"
              },
              "same": {
                "description": "The chance it is within a point either way",
                "title": "Same",
                "type": "number"
              },
              "week": {
                "description": "1: its first seven days",
                "title": "Week",
                "type": "integer"
              },
              "worse": {
                "description": "The chance that challenger is worse than A, by over a point",
                "title": "Worse",
                "type": "number"
              }
            },
            "required": [
              "week",
              "at",
              "buyers",
              "rates",
              "gap",
              "low",
              "high",
              "worse",
              "same",
              "better"
            ],
            "title": "TestLook",
            "type": "object"
          },
          "TestSide": {
            "additionalProperties": false,
            "description": "One side of a test between an agent's versions, as its buyers went through it.",
            "properties": {
              "guards": {
                "$ref": "#/$defs/TestGuards"
              },
              "key": {
                "title": "Key",
                "type": "string"
              },
              "paths": {
                "description": "How many buyers went each way, as Home's flow reads demos; every way listed, zeros included",
                "items": {
                  "$ref": "#/$defs/FlowWay"
                },
                "title": "Paths",
                "type": "array"
              }
            },
            "required": [
              "key",
              "paths",
              "guards"
            ],
            "title": "TestSide",
            "type": "object"
          }
        },
        "additionalProperties": false,
        "description": "One agent: its live version, its draft, every version, and its script. In preview.",
        "properties": {
          "base": {
            "title": "Base",
            "type": "boolean"
          },
          "draft": {
            "anyOf": [
              {
                "$ref": "#/$defs/AgentDraftOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "in_test": {
            "description": "One side of a running test: nothing can be published until it stops",
            "title": "In Test",
            "type": "boolean"
          },
          "languages": {
            "items": {
              "type": "string"
            },
            "title": "Languages",
            "type": "array"
          },
          "live": {
            "$ref": "#/$defs/AgentVersionContent"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "notes": {
            "description": "Notes left on its rehearsals that no version took yet, oldest first",
            "items": {
              "$ref": "#/$defs/AgentNote"
            },
            "title": "Notes",
            "type": "array"
          },
          "places": {
            "description": "Where it runs, with the last 30 days",
            "items": {
              "$ref": "#/$defs/AgentPlace"
            },
            "title": "Places",
            "type": "array"
          },
          "rehearsals": {
            "description": "Its newest rehearsals",
            "items": {
              "$ref": "#/$defs/AgentRehearsalMark"
            },
            "title": "Rehearsals",
            "type": "array"
          },
          "renderer": {
            "default": "voice",
            "description": "What buyers get: the voice, or voice and face",
            "enum": [
              "voice",
              "face"
            ],
            "title": "Renderer",
            "type": "string"
          },
          "replaces": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/$defs/AgentFactReplaces"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "What the facts it shows (the draft's, else the live version's) replace in the public docs; null while they are being checked",
            "title": "Replaces"
          },
          "retired": {
            "description": "Paused: it meets no buyer anywhere until resumed",
            "title": "Retired",
            "type": "boolean"
          },
          "runs": {
            "description": "The defaults it holds; it can't pause until they move",
            "items": {
              "enum": [
                "embed",
                "outbound",
                "link"
              ],
              "type": "string"
            },
            "title": "Runs",
            "type": "array"
          },
          "schema": {
            "default": "solacia.agents.v0",
            "title": "Schema",
            "type": "string"
          },
          "script": {
            "$ref": "#/$defs/AgentScriptOut"
          },
          "script_of": {
            "description": "Which version `script` shows",
            "enum": [
              "draft",
              "live"
            ],
            "title": "Script Of",
            "type": "string"
          },
          "test": {
            "anyOf": [
              {
                "$ref": "#/$defs/AgentTest"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its running test between its versions"
          },
          "tests_started": {
            "description": "Its tests between versions",
            "items": {
              "$ref": "#/$defs/AgentTestMark"
            },
            "title": "Tests Started",
            "type": "array"
          },
          "unanswered": {
            "description": "What its buyers asked in the last 30 days that the docs held no answer to",
            "items": {
              "$ref": "#/$defs/AgentAsked"
            },
            "title": "Unanswered",
            "type": "array"
          },
          "version": {
            "title": "Version",
            "type": "integer"
          },
          "versions": {
            "description": "Oldest first",
            "items": {
              "$ref": "#/$defs/AgentVersionOut"
            },
            "title": "Versions",
            "type": "array"
          },
          "weeks": {
            "description": "Its last 12 weeks, oldest first",
            "items": {
              "$ref": "#/$defs/AgentWeek"
            },
            "title": "Weeks",
            "type": "array"
          }
        },
        "required": [
          "id",
          "name",
          "base",
          "retired",
          "version",
          "live",
          "draft",
          "versions",
          "script_of",
          "script",
          "languages",
          "in_test",
          "test"
        ],
        "title": "AgentDetail",
        "type": "object"
      },
      "path": "/agents/{id}/draft/publish",
      "scope": "agents:admin",
      "title": "Publish an agent's draft"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Test an agent's versions on buyers"
      },
      "description": "Split real buyers between an agent's live version (side A) and its draft or other versions, each buyer always on the same side, and read which qualifies more of them. Shares add to 100, at least 10 each.",
      "input_schema": {
        "$defs": {
          "VersionSideIn": {
            "additionalProperties": false,
            "properties": {
              "share": {
                "description": "Percent of the agent's buyers",
                "maximum": 90,
                "minimum": 10,
                "type": "integer"
              },
              "version": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "const": "draft",
                    "type": "string"
                  }
                ],
                "description": "A version number (side A: the live one), or draft: the draft as it is now"
              }
            },
            "required": [
              "version",
              "share"
            ],
            "type": "object"
          }
        },
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "lever": {
            "description": "What it is to learn (GET /agents/{id}/levers): it is read on that lever's goal",
            "enum": [
              "message",
              "features",
              "pricing",
              "offer",
              "qualification"
            ],
            "type": "string"
          },
          "min_buyers": {
            "default": 20,
            "description": "Buyers each side needs before any verdict",
            "maximum": 100000,
            "minimum": 20,
            "type": "integer"
          },
          "question": {
            "default": "",
            "examples": [
              "Does opening on the card win more buyers?"
            ],
            "maxLength": 200,
            "type": "string"
          },
          "rule": {
            "default": "unless_worse",
            "description": "unless_worse: a challenger may go live unless it is worse; proven: only once it is proven better",
            "enum": [
              "unless_worse",
              "proven"
            ],
            "type": "string"
          },
          "sides": {
            "items": {
              "$ref": "#/$defs/VersionSideIn"
            },
            "maxItems": 3,
            "minItems": 2,
            "type": "array"
          },
          "weeks": {
            "description": "How long it takes buyers; left out: until stopped",
            "maximum": 26,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "sides"
        ],
        "type": "object"
      },
      "method": "POST",
      "name": "test_agent",
      "operation": "agents.versions.test",
      "output_schema": {
        "$defs": {
          "AgentAsked": {
            "additionalProperties": false,
            "properties": {
              "buyers": {
                "title": "Buyers",
                "type": "integer"
              },
              "text": {
                "title": "Text",
                "type": "string"
              }
            },
            "required": [
              "text",
              "buyers"
            ],
            "title": "AgentAsked",
            "type": "object"
          },
          "AgentButton": {
            "additionalProperties": false,
            "properties": {
              "agenda": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Agenda"
              },
              "label": {
                "title": "Label",
                "type": "string"
              }
            },
            "required": [
              "label",
              "agenda"
            ],
            "title": "AgentButton",
            "type": "object"
          },
          "AgentChoiceOut": {
            "additionalProperties": false,
            "properties": {
              "agenda": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The part it picks; null: its words are said for the buyer",
                "title": "Agenda"
              },
              "label": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Its words per language; empty: the part's title",
                "title": "Label",
                "type": "object"
              }
            },
            "required": [
              "agenda",
              "label"
            ],
            "title": "AgentChoiceOut",
            "type": "object"
          },
          "AgentDraftOut": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "title": "At",
                "type": "string"
              },
              "behind": {
                "description": "Another version went live after it was started: publishing is refused",
                "title": "Behind",
                "type": "boolean"
              },
              "by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "By"
              },
              "content": {
                "$ref": "#/$defs/AgentVersionContent"
              },
              "faults": {
                "description": "Why its own lines can't go live yet; empty: it can be published",
                "items": {
                  "type": "string"
                },
                "title": "Faults",
                "type": "array"
              },
              "since": {
                "description": "The version it was started from",
                "title": "Since",
                "type": "integer"
              }
            },
            "required": [
              "since",
              "by",
              "at",
              "content",
              "faults",
              "behind"
            ],
            "title": "AgentDraftOut",
            "type": "object"
          },
          "AgentFact": {
            "additionalProperties": false,
            "properties": {
              "name": {
                "description": "What it is about; one named like the docs' replaces it",
                "maxLength": 80,
                "minLength": 1,
                "title": "Name",
                "type": "string"
              },
              "text": {
                "description": "What the agent says about it",
                "maxLength": 600,
                "minLength": 1,
                "title": "Text",
                "type": "string"
              }
            },
            "required": [
              "name",
              "text"
            ],
            "title": "AgentFact",
            "type": "object"
          },
          "AgentFactReplaces": {
            "additionalProperties": false,
            "description": "A public passage one of the agent's facts contradicts, left out of its calls' docs.",
            "properties": {
              "fact": {
                "description": "The fact's name",
                "title": "Fact",
                "type": "string"
              },
              "page": {
                "description": "The page's title",
                "title": "Page",
                "type": "string"
              },
              "says": {
                "description": "The page's sentence the fact replaces",
                "title": "Says",
                "type": "string"
              },
              "url": {
                "title": "Url",
                "type": "string"
              },
              "what": {
                "description": "What the two state differently, in a few words",
                "title": "What",
                "type": "string"
              }
            },
            "required": [
              "fact",
              "what",
              "page",
              "url",
              "says"
            ],
            "title": "AgentFactReplaces",
            "type": "object"
          },
          "AgentLine": {
            "additionalProperties": false,
            "properties": {
              "own": {
                "description": "The agent's own words; false: the product's",
                "title": "Own",
                "type": "boolean"
              },
              "pack": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The product's words it replaces, when it is the agent's own",
                "title": "Pack"
              },
              "text": {
                "title": "Text",
                "type": "string"
              }
            },
            "required": [
              "text",
              "own"
            ],
            "title": "AgentLine",
            "type": "object"
          },
          "AgentNote": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "title": "At",
                "type": "string"
              },
              "by": {
                "title": "By",
                "type": "string"
              },
              "done": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The version it went into, or dropped; null while open",
                "title": "Done"
              },
              "id": {
                "title": "Id",
                "type": "string"
              },
              "quote": {
                "description": "The turn's words when it was left",
                "title": "Quote",
                "type": "string"
              },
              "session": {
                "description": "The rehearsal it was left on",
                "title": "Session",
                "type": "string"
              },
              "tag": {
                "enum": [
                  "script",
                  "answer",
                  "screen",
                  "buyer"
                ],
                "title": "Tag",
                "type": "string"
              },
              "text": {
                "title": "Text",
                "type": "string"
              },
              "turn": {
                "description": "The turn it is about (AgentTurn.n)",
                "title": "Turn",
                "type": "integer"
              }
            },
            "required": [
              "id",
              "session",
              "turn",
              "tag",
              "quote",
              "text",
              "by",
              "at"
            ],
            "title": "AgentNote",
            "type": "object"
          },
          "AgentPart": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "title": "Id",
                "type": "string"
              },
              "intro": {
                "additionalProperties": {
                  "$ref": "#/$defs/AgentLine"
                },
                "description": "Language -> the agent's own introduction, said after the name; the product has none",
                "title": "Intro",
                "type": "object"
              },
              "name": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Language -> the sentence the part opens on, said by the call",
                "title": "Name",
                "type": "object"
              },
              "shows": {
                "description": "In the agent's focus; the ones it shows come first, in its order",
                "title": "Shows",
                "type": "boolean"
              },
              "title": {
                "additionalProperties": {
                  "type": "string"
                },
                "title": "Title",
                "type": "object"
              }
            },
            "required": [
              "id",
              "title",
              "shows",
              "intro"
            ],
            "title": "AgentPart",
            "type": "object"
          },
          "AgentPlace": {
            "additionalProperties": false,
            "description": "One place the agent meets buyers, with its last 30 days: `rule`, a website rule on where\nbuyers came from (`when` source) or the page (`when` page); `website`, the website's buyers no\nrule picks; `campaign`, the personal links of one campaign made with it; `links`, personal\nlinks with no campaign (with the account's default, also links that name no agent);\n`address`, the product's own demo address.",
            "properties": {
              "campaign": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Campaign"
              },
              "demos": {
                "default": 0,
                "title": "Demos",
                "type": "integer"
              },
              "kind": {
                "enum": [
                  "rule",
                  "website",
                  "campaign",
                  "links",
                  "address"
                ],
                "title": "Kind",
                "type": "string"
              },
              "links": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Links made, for a campaign or single links",
                "title": "Links"
              },
              "match": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Match"
              },
              "reached": {
                "default": 0,
                "description": "Demos that reached the agent's goal",
                "title": "Reached",
                "type": "integer"
              },
              "when": {
                "anyOf": [
                  {
                    "enum": [
                      "source",
                      "page"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "When"
              }
            },
            "required": [
              "kind"
            ],
            "title": "AgentPlace",
            "type": "object"
          },
          "AgentRehearsalMark": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "title": "At",
                "type": "string"
              },
              "by": {
                "title": "By",
                "type": "string"
              },
              "notes": {
                "description": "Open notes on it",
                "title": "Notes",
                "type": "integer"
              },
              "of": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "const": "draft",
                    "type": "string"
                  }
                ],
                "description": "What it ran: a version, or the draft as it was then",
                "title": "Of"
              },
              "session": {
                "title": "Session",
                "type": "string"
              },
              "url": {
                "description": "The demo, to go on with it",
                "title": "Url",
                "type": "string"
              }
            },
            "required": [
              "session",
              "by",
              "at",
              "of",
              "notes",
              "url"
            ],
            "title": "AgentRehearsalMark",
            "type": "object"
          },
          "AgentScriptOut": {
            "additionalProperties": false,
            "description": "The script as a buyer meets it, each line marked when it is the agent's own.",
            "properties": {
              "buttons": {
                "additionalProperties": {
                  "items": {
                    "$ref": "#/$defs/AgentButton"
                  },
                  "type": "array"
                },
                "title": "Buttons",
                "type": "object"
              },
              "first_deck": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "A deck that starts the demo by itself, so the opening asks nothing",
                "title": "First Deck"
              },
              "opening": {
                "additionalProperties": {
                  "$ref": "#/$defs/AgentLine"
                },
                "title": "Opening",
                "type": "object"
              },
              "own_buttons": {
                "title": "Own Buttons",
                "type": "boolean"
              },
              "parts": {
                "items": {
                  "$ref": "#/$defs/AgentPart"
                },
                "title": "Parts",
                "type": "array"
              }
            },
            "required": [
              "opening",
              "parts",
              "buttons",
              "own_buttons",
              "first_deck"
            ],
            "title": "AgentScriptOut",
            "type": "object"
          },
          "AgentTest": {
            "additionalProperties": false,
            "properties": {
              "agent": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The agent whose versions are the sides, wherever it is placed",
                "title": "Agent"
              },
              "arms": {
                "items": {
                  "$ref": "#/$defs/TestArm"
                },
                "title": "Arms",
                "type": "array"
              },
              "by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "By"
              },
              "chances": {
                "description": "The best challenger against A: worse, about the same, better",
                "items": {
                  "type": "number"
                },
                "title": "Chances",
                "type": "array"
              },
              "channel": {
                "anyOf": [
                  {
                    "enum": [
                      "embed",
                      "outbound",
                      "link"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Null: a test between one agent's versions",
                "title": "Channel"
              },
              "ended": {
                "description": "Past its end and not stopped: new buyers meet side A, one side waits to be kept",
                "title": "Ended",
                "type": "boolean"
              },
              "ends": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "When it stops taking buyers; null: when the team stops it",
                "title": "Ends"
              },
              "guardrails": {
                "description": "Between an agent's versions: what the test must not make worse, side A against B",
                "items": {
                  "$ref": "#/$defs/TestGuardrail"
                },
                "title": "Guardrails",
                "type": "array"
              },
              "high": {
                "title": "High",
                "type": "number"
              },
              "id": {
                "title": "Id",
                "type": "string"
              },
              "kept": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The agent kept for the channel when it stopped",
                "title": "Kept"
              },
              "leader": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Leader"
              },
              "lever": {
                "anyOf": [
                  {
                    "enum": [
                      "message",
                      "features",
                      "pricing",
                      "offer",
                      "qualification"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "What it is to learn, when it was started from a lever",
                "title": "Lever"
              },
              "lift": {
                "description": "The best challenger's meeting rate minus A's",
                "title": "Lift",
                "type": "number"
              },
              "looks": {
                "description": "Week by week, oldest first",
                "items": {
                  "$ref": "#/$defs/TestLook"
                },
                "title": "Looks",
                "type": "array"
              },
              "low": {
                "description": "95% interval of that difference, valid however often it is read",
                "title": "Low",
                "type": "number"
              },
              "meetings_from": {
                "default": "demo",
                "description": "What counts as a meeting. demo: asking in the demo; form: that, or sending the vendor's own demo form (the website against no demo); crm: a meeting the account's CRM shows booked after the prospect's link was made (outreach against no demo); qualified: the buyer qualified, hot or warm, which asking for a meeting also is (a test between versions)",
                "enum": [
                  "demo",
                  "form",
                  "crm",
                  "qualified"
                ],
                "title": "Meetings From",
                "type": "string"
              },
              "min_buyers": {
                "description": "Buyers each side needs before any verdict",
                "title": "Min Buyers",
                "type": "integer"
              },
              "more": {
                "description": "Buyers each side still needs: before any verdict when early, to decide when ahead",
                "title": "More",
                "type": "integer"
              },
              "per_side_week": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Buyers a week on its smallest side, from its whole weeks so far",
                "title": "Per Side Week"
              },
              "question": {
                "title": "Question",
                "type": "string"
              },
              "rule": {
                "default": "proven",
                "description": "How it decides. proven: a side goes live once it beats the others past chance; unless_worse (between an agent's versions): a challenger may go live once keeping it would cost under 0.2 points on average if it were worse, read at the end of each week",
                "enum": [
                  "unless_worse",
                  "proven"
                ],
                "title": "Rule",
                "type": "string"
              },
              "says": {
                "description": "The readout in one sentence",
                "title": "Says",
                "type": "string"
              },
              "sides": {
                "description": "Between an agent's versions: how far each side's buyers got",
                "items": {
                  "$ref": "#/$defs/TestSide"
                },
                "title": "Sides",
                "type": "array"
              },
              "srm": {
                "description": "p-value of the sample-ratio check",
                "title": "Srm",
                "type": "number"
              },
              "started": {
                "title": "Started",
                "type": "string"
              },
              "stopped": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Stopped"
              },
              "verdict": {
                "description": "winner: one side beats every other past chance, on an interval that holds however often the test is read; safe (unless_worse): at the end of one of its weeks a challenger risked under 0.2 points if worse, so it may go live (`leader`); even: the gap is proven under 2 points; broken: the buyers did not fall on the sides as the shares say",
                "enum": [
                  "early",
                  "ahead",
                  "winner",
                  "even",
                  "safe",
                  "broken"
                ],
                "title": "Verdict",
                "type": "string"
              },
              "weeks_left": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Weeks until `more` buyers a side arrive at that pace; null when not counting",
                "title": "Weeks Left"
              }
            },
            "required": [
              "id",
              "channel",
              "question",
              "started",
              "stopped",
              "ends",
              "ended",
              "min_buyers",
              "kept",
              "by",
              "arms",
              "verdict",
              "leader",
              "lift",
              "low",
              "high",
              "more",
              "srm",
              "says"
            ],
            "title": "AgentTest",
            "type": "object"
          },
          "AgentTestMark": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "title": "Id",
                "type": "string"
              },
              "kept": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Kept"
              },
              "started": {
                "title": "Started",
                "type": "string"
              },
              "stopped": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Stopped"
              }
            },
            "required": [
              "id",
              "started",
              "stopped",
              "kept"
            ],
            "title": "AgentTestMark",
            "type": "object"
          },
          "AgentVersionContent": {
            "additionalProperties": false,
            "description": "A version: what a buyer gets from the agent. Script fields left empty are the pack's.",
            "properties": {
              "audience": {
                "description": "Who its demos are for, in the team's words",
                "title": "Audience",
                "type": "string"
              },
              "choices": {
                "description": "Its own buttons under the opening",
                "items": {
                  "$ref": "#/$defs/AgentChoiceOut"
                },
                "title": "Choices",
                "type": "array"
              },
              "counts": {
                "default": "qualified",
                "description": "What reaching the goal is, as a test of its versions reads it",
                "enum": [
                  "qualified",
                  "meeting"
                ],
                "title": "Counts",
                "type": "string"
              },
              "facts": {
                "items": {
                  "$ref": "#/$defs/AgentFact"
                },
                "title": "Facts",
                "type": "array"
              },
              "goal": {
                "description": "What a demo with it is for, in the team's words",
                "title": "Goal",
                "type": "string"
              },
              "instructions": {
                "title": "Instructions",
                "type": "string"
              },
              "intro": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Its own opening per language",
                "title": "Intro",
                "type": "object"
              },
              "lines": {
                "additionalProperties": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "description": "Its own introduction to a part, per language",
                "title": "Lines",
                "type": "object"
              },
              "order": {
                "description": "The parts it shows, in order; empty: all of the product's",
                "items": {
                  "type": "string"
                },
                "title": "Order",
                "type": "array"
              },
              "tone": {
                "anyOf": [
                  {
                    "enum": [
                      "brief",
                      "warm",
                      "expert"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Tone"
              },
              "voices": {
                "additionalProperties": {
                  "type": "string"
                },
                "title": "Voices",
                "type": "object"
              }
            },
            "required": [
              "tone",
              "instructions",
              "facts",
              "voices",
              "audience",
              "goal",
              "order",
              "intro",
              "lines",
              "choices"
            ],
            "title": "AgentVersionContent",
            "type": "object"
          },
          "AgentVersionOut": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "When it went live; null for the pack's own first version",
                "title": "At"
              },
              "by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "By"
              },
              "changed": {
                "description": "What it changed from the version before, in the team's words, such as Opening or Order of parts; or that it put an older version back. Empty for the first.",
                "items": {
                  "type": "string"
                },
                "title": "Changed",
                "type": "array"
              },
              "live": {
                "title": "Live",
                "type": "boolean"
              },
              "number": {
                "title": "Number",
                "type": "integer"
              }
            },
            "required": [
              "number",
              "at",
              "by",
              "live"
            ],
            "title": "AgentVersionOut",
            "type": "object"
          },
          "AgentWeek": {
            "additionalProperties": false,
            "properties": {
              "demos": {
                "title": "Demos",
                "type": "integer"
              },
              "meetings": {
                "title": "Meetings",
                "type": "integer"
              },
              "reached": {
                "description": "Buyers who did what its goal counts",
                "title": "Reached",
                "type": "integer"
              },
              "start": {
                "description": "Its Monday",
                "title": "Start",
                "type": "string"
              }
            },
            "required": [
              "start",
              "demos",
              "reached",
              "meetings"
            ],
            "title": "AgentWeek",
            "type": "object"
          },
          "FlowWay": {
            "additionalProperties": false,
            "description": "One way a demo can go, from opening it to where the buyer is now, and how many went it.",
            "properties": {
              "n": {
                "title": "N",
                "type": "integer"
              },
              "steps": {
                "examples": [
                  [
                    "opened",
                    "saw",
                    "talked",
                    "qualified",
                    "meeting"
                  ]
                ],
                "items": {
                  "type": "string"
                },
                "title": "Steps",
                "type": "array"
              }
            },
            "required": [
              "steps",
              "n"
            ],
            "title": "FlowWay",
            "type": "object"
          },
          "TestArm": {
            "additionalProperties": false,
            "properties": {
              "agent": {
                "title": "Agent",
                "type": "string"
              },
              "best": {
                "description": "The chance this side is the best of them (0 to 1)",
                "title": "Best",
                "type": "number"
              },
              "buyers": {
                "description": "Buyers put on this side who opened a demo; each counts once",
                "title": "Buyers",
                "type": "integer"
              },
              "cost": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "US cents a demo. Solacia's people only; null for everyone else",
                "title": "Cost"
              },
              "demos": {
                "title": "Demos",
                "type": "integer"
              },
              "key": {
                "description": "A (what ran before), B, C",
                "title": "Key",
                "type": "string"
              },
              "loss": {
                "description": "Meeting rate lost on average by keeping this side, if another is better (0.004 = 0.4 points)",
                "title": "Loss",
                "type": "number"
              },
              "meetings": {
                "description": "Buyers who asked for a meeting",
                "title": "Meetings",
                "type": "integer"
              },
              "name": {
                "title": "Name",
                "type": "string"
              },
              "rate": {
                "description": "meetings / buyers",
                "title": "Rate",
                "type": "number"
              },
              "renderer": {
                "enum": [
                  "voice",
                  "face"
                ],
                "title": "Renderer",
                "type": "string"
              },
              "share": {
                "description": "Percent of buyers sent to this side",
                "title": "Share",
                "type": "integer"
              },
              "version": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "In a test between an agent's versions: this side's; null for its draft",
                "title": "Version"
              }
            },
            "required": [
              "key",
              "agent",
              "name",
              "renderer",
              "cost",
              "share",
              "buyers",
              "demos",
              "meetings",
              "rate",
              "best",
              "loss"
            ],
            "title": "TestArm",
            "type": "object"
          },
          "TestGuardrail": {
            "additionalProperties": false,
            "description": "One guardrail across a test's two sides, as a scorecard row: side A, side B, B minus A and\nits interval, read as the goal's is (valid however often it is read).",
            "properties": {
              "a": {
                "title": "A",
                "type": "number"
              },
              "a_count": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Buyers who did it on side A; null for an average",
                "title": "A Count"
              },
              "b": {
                "title": "B",
                "type": "number"
              },
              "b_count": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "B Count"
              },
              "better": {
                "description": "Which way is better",
                "enum": [
                  "up",
                  "down"
                ],
                "title": "Better",
                "type": "string"
              },
              "gap": {
                "description": "b minus a: points of share, or minutes",
                "title": "Gap",
                "type": "number"
              },
              "high": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "High"
              },
              "id": {
                "description": "meetings: share who asked to meet the team; minutes: average minutes in the demo; left_early: share who left in the first minute",
                "enum": [
                  "meetings",
                  "minutes",
                  "left_early"
                ],
                "title": "Id",
                "type": "string"
              },
              "low": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Null until both sides have buyers",
                "title": "Low"
              }
            },
            "required": [
              "id",
              "better",
              "a",
              "b",
              "gap",
              "low",
              "high"
            ],
            "title": "TestGuardrail",
            "type": "object"
          },
          "TestGuards": {
            "additionalProperties": false,
            "properties": {
              "buyers": {
                "title": "Buyers",
                "type": "integer"
              },
              "left_early": {
                "description": "Share who left in the first minute",
                "title": "Left Early",
                "type": "number"
              },
              "meetings": {
                "description": "Share who asked to meet the team",
                "title": "Meetings",
                "type": "number"
              },
              "minutes": {
                "description": "Average minutes in the demo",
                "title": "Minutes",
                "type": "number"
              }
            },
            "required": [
              "buyers",
              "meetings",
              "minutes",
              "left_early"
            ],
            "title": "TestGuards",
            "type": "object"
          },
          "TestLook": {
            "additionalProperties": false,
            "description": "The test as it stood at the end of one of its weeks.",
            "properties": {
              "at": {
                "description": "When that week ended",
                "title": "At",
                "type": "string"
              },
              "better": {
                "description": "The chance it is better by over a point",
                "title": "Better",
                "type": "number"
              },
              "buyers": {
                "description": "On each side, A first",
                "items": {
                  "type": "integer"
                },
                "title": "Buyers",
                "type": "array"
              },
              "gap": {
                "description": "The best challenger's rate minus A's",
                "title": "Gap",
                "type": "number"
              },
              "high": {
                "title": "High",
                "type": "number"
              },
              "low": {
                "title": "Low",
                "type": "number"
              },
              "rates": {
                "items": {
                  "type": "number"
                },
                "title": "Rates",
                "type": "array"
              },
              "safe": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Under unless_worse: the side that could go live at this week's end",
                "title": "Safe"
              },
              "same": {
                "description": "The chance it is within a point either way",
                "title": "Same",
                "type": "number"
              },
              "week": {
                "description": "1: its first seven days",
                "title": "Week",
                "type": "integer"
              },
              "worse": {
                "description": "The chance that challenger is worse than A, by over a point",
                "title": "Worse",
                "type": "number"
              }
            },
            "required": [
              "week",
              "at",
              "buyers",
              "rates",
              "gap",
              "low",
              "high",
              "worse",
              "same",
              "better"
            ],
            "title": "TestLook",
            "type": "object"
          },
          "TestSide": {
            "additionalProperties": false,
            "description": "One side of a test between an agent's versions, as its buyers went through it.",
            "properties": {
              "guards": {
                "$ref": "#/$defs/TestGuards"
              },
              "key": {
                "title": "Key",
                "type": "string"
              },
              "paths": {
                "description": "How many buyers went each way, as Home's flow reads demos; every way listed, zeros included",
                "items": {
                  "$ref": "#/$defs/FlowWay"
                },
                "title": "Paths",
                "type": "array"
              }
            },
            "required": [
              "key",
              "paths",
              "guards"
            ],
            "title": "TestSide",
            "type": "object"
          }
        },
        "additionalProperties": false,
        "description": "One agent: its live version, its draft, every version, and its script. In preview.",
        "properties": {
          "base": {
            "title": "Base",
            "type": "boolean"
          },
          "draft": {
            "anyOf": [
              {
                "$ref": "#/$defs/AgentDraftOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "in_test": {
            "description": "One side of a running test: nothing can be published until it stops",
            "title": "In Test",
            "type": "boolean"
          },
          "languages": {
            "items": {
              "type": "string"
            },
            "title": "Languages",
            "type": "array"
          },
          "live": {
            "$ref": "#/$defs/AgentVersionContent"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "notes": {
            "description": "Notes left on its rehearsals that no version took yet, oldest first",
            "items": {
              "$ref": "#/$defs/AgentNote"
            },
            "title": "Notes",
            "type": "array"
          },
          "places": {
            "description": "Where it runs, with the last 30 days",
            "items": {
              "$ref": "#/$defs/AgentPlace"
            },
            "title": "Places",
            "type": "array"
          },
          "rehearsals": {
            "description": "Its newest rehearsals",
            "items": {
              "$ref": "#/$defs/AgentRehearsalMark"
            },
            "title": "Rehearsals",
            "type": "array"
          },
          "renderer": {
            "default": "voice",
            "description": "What buyers get: the voice, or voice and face",
            "enum": [
              "voice",
              "face"
            ],
            "title": "Renderer",
            "type": "string"
          },
          "replaces": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/$defs/AgentFactReplaces"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "What the facts it shows (the draft's, else the live version's) replace in the public docs; null while they are being checked",
            "title": "Replaces"
          },
          "retired": {
            "description": "Paused: it meets no buyer anywhere until resumed",
            "title": "Retired",
            "type": "boolean"
          },
          "runs": {
            "description": "The defaults it holds; it can't pause until they move",
            "items": {
              "enum": [
                "embed",
                "outbound",
                "link"
              ],
              "type": "string"
            },
            "title": "Runs",
            "type": "array"
          },
          "schema": {
            "default": "solacia.agents.v0",
            "title": "Schema",
            "type": "string"
          },
          "script": {
            "$ref": "#/$defs/AgentScriptOut"
          },
          "script_of": {
            "description": "Which version `script` shows",
            "enum": [
              "draft",
              "live"
            ],
            "title": "Script Of",
            "type": "string"
          },
          "test": {
            "anyOf": [
              {
                "$ref": "#/$defs/AgentTest"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its running test between its versions"
          },
          "tests_started": {
            "description": "Its tests between versions",
            "items": {
              "$ref": "#/$defs/AgentTestMark"
            },
            "title": "Tests Started",
            "type": "array"
          },
          "unanswered": {
            "description": "What its buyers asked in the last 30 days that the docs held no answer to",
            "items": {
              "$ref": "#/$defs/AgentAsked"
            },
            "title": "Unanswered",
            "type": "array"
          },
          "version": {
            "title": "Version",
            "type": "integer"
          },
          "versions": {
            "description": "Oldest first",
            "items": {
              "$ref": "#/$defs/AgentVersionOut"
            },
            "title": "Versions",
            "type": "array"
          },
          "weeks": {
            "description": "Its last 12 weeks, oldest first",
            "items": {
              "$ref": "#/$defs/AgentWeek"
            },
            "title": "Weeks",
            "type": "array"
          }
        },
        "required": [
          "id",
          "name",
          "base",
          "retired",
          "version",
          "live",
          "draft",
          "versions",
          "script_of",
          "script",
          "languages",
          "in_test",
          "test"
        ],
        "title": "AgentDetail",
        "type": "object"
      },
      "path": "/agents/{id}/tests",
      "scope": "agents:admin",
      "title": "Test an agent's versions on buyers"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Rehearse an agent"
      },
      "description": "A link to a demo of an agent's draft (or one of its versions) for the person to run as a buyer would, before publishing. Never counted in results; nothing in it reaches the team or the CRM.",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "of": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "const": "draft",
                "type": "string"
              }
            ],
            "default": "draft",
            "description": "A version's number, or the draft as it is now"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "method": "POST",
      "name": "rehearse_agent",
      "operation": "agents.rehearsals.start",
      "output_schema": {
        "$defs": {
          "AgentNote": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "title": "At",
                "type": "string"
              },
              "by": {
                "title": "By",
                "type": "string"
              },
              "done": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The version it went into, or dropped; null while open",
                "title": "Done"
              },
              "id": {
                "title": "Id",
                "type": "string"
              },
              "quote": {
                "description": "The turn's words when it was left",
                "title": "Quote",
                "type": "string"
              },
              "session": {
                "description": "The rehearsal it was left on",
                "title": "Session",
                "type": "string"
              },
              "tag": {
                "enum": [
                  "script",
                  "answer",
                  "screen",
                  "buyer"
                ],
                "title": "Tag",
                "type": "string"
              },
              "text": {
                "title": "Text",
                "type": "string"
              },
              "turn": {
                "description": "The turn it is about (AgentTurn.n)",
                "title": "Turn",
                "type": "integer"
              }
            },
            "required": [
              "id",
              "session",
              "turn",
              "tag",
              "quote",
              "text",
              "by",
              "at"
            ],
            "title": "AgentNote",
            "type": "object"
          },
          "AgentScriptPart": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "title": "Id",
                "type": "string"
              },
              "title": {
                "title": "Title",
                "type": "string"
              }
            },
            "required": [
              "id",
              "title"
            ],
            "title": "AgentScriptPart",
            "type": "object"
          },
          "AgentTurn": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "title": "At",
                "type": "string"
              },
              "check": {
                "anyOf": [
                  {
                    "enum": [
                      "backed",
                      "drifted",
                      "wrong",
                      "unchecked"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "An answer: what the docs made of it",
                "title": "Check"
              },
              "n": {
                "description": "Its place in the rehearsal, from 1",
                "title": "N",
                "type": "integer"
              },
              "own": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "In a script turn, the words in it that were the agent's own",
                "title": "Own"
              },
              "part": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The part of the script it belongs to, when known",
                "title": "Part"
              },
              "sources": {
                "description": "An answer's pages, or the details nothing backed",
                "items": {
                  "type": "string"
                },
                "title": "Sources",
                "type": "array"
              },
              "tag": {
                "description": "Where its words came from: script (said as written), answer (the agent's own), screen (what it showed), buyer",
                "enum": [
                  "script",
                  "answer",
                  "screen",
                  "buyer"
                ],
                "title": "Tag",
                "type": "string"
              },
              "text": {
                "title": "Text",
                "type": "string"
              }
            },
            "required": [
              "n",
              "tag",
              "text",
              "at"
            ],
            "title": "AgentTurn",
            "type": "object"
          }
        },
        "additionalProperties": false,
        "description": "A rehearsal read back, turn by turn, with the notes on it. In preview.",
        "properties": {
          "at": {
            "title": "At",
            "type": "string"
          },
          "by": {
            "title": "By",
            "type": "string"
          },
          "notes": {
            "items": {
              "$ref": "#/$defs/AgentNote"
            },
            "title": "Notes",
            "type": "array"
          },
          "of": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "const": "draft",
                "type": "string"
              }
            ],
            "title": "Of"
          },
          "parts": {
            "items": {
              "$ref": "#/$defs/AgentScriptPart"
            },
            "title": "Parts",
            "type": "array"
          },
          "schema": {
            "default": "solacia.agents.v0",
            "title": "Schema",
            "type": "string"
          },
          "session": {
            "title": "Session",
            "type": "string"
          },
          "turns": {
            "items": {
              "$ref": "#/$defs/AgentTurn"
            },
            "title": "Turns",
            "type": "array"
          },
          "url": {
            "description": "The demo, to go on with it",
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "session",
          "by",
          "at",
          "of",
          "url",
          "parts",
          "turns",
          "notes"
        ],
        "title": "AgentRehearsal",
        "type": "object"
      },
      "path": "/agents/{id}/rehearsals",
      "scope": "agents:admin",
      "title": "Rehearse an agent"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Stop an agent test"
      },
      "description": "Stop an A/B test (an `id` list_agents gives under tests). With `keep`, that agent, or that side's version, runs the channel from the next demo.",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "keep": {
            "description": "The agent to run the channel from now on; in a test between an agent's versions, the side (A, B or C) whose version goes live",
            "maxLength": 80,
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "method": "POST",
      "name": "stop_agent_test",
      "operation": "agents.tests.stop",
      "output_schema": {
        "$defs": {
          "AgentFact": {
            "additionalProperties": false,
            "properties": {
              "name": {
                "description": "What it is about; one named like the docs' replaces it",
                "maxLength": 80,
                "minLength": 1,
                "title": "Name",
                "type": "string"
              },
              "text": {
                "description": "What the agent says about it",
                "maxLength": 600,
                "minLength": 1,
                "title": "Text",
                "type": "string"
              }
            },
            "required": [
              "name",
              "text"
            ],
            "title": "AgentFact",
            "type": "object"
          },
          "AgentNumbers": {
            "additionalProperties": false,
            "properties": {
              "demos": {
                "title": "Demos",
                "type": "number"
              },
              "engaged": {
                "title": "Engaged",
                "type": "number"
              },
              "meetings": {
                "description": "Demos where the buyer asked for a meeting",
                "title": "Meetings",
                "type": "number"
              },
              "minutes": {
                "title": "Minutes",
                "type": "number"
              },
              "spend": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "US cents: each demo at the price of the agent that ran it, when it ran. Solacia's people only; null for everyone else",
                "title": "Spend"
              }
            },
            "required": [
              "demos",
              "engaged",
              "meetings",
              "minutes",
              "spend"
            ],
            "title": "AgentNumbers",
            "type": "object"
          },
          "AgentOut": {
            "additionalProperties": false,
            "properties": {
              "audience": {
                "default": "",
                "description": "Who its demos are for, in the team's words",
                "title": "Audience",
                "type": "string"
              },
              "base": {
                "description": "The first agent, the product's pack: every other one is built on it",
                "title": "Base",
                "type": "boolean"
              },
              "changed_at": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Changed At"
              },
              "changed_by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Changed By"
              },
              "cost": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "US cents a demo. Solacia's people only; null for everyone else",
                "title": "Cost"
              },
              "counts": {
                "default": "qualified",
                "description": "What reaching its goal is",
                "enum": [
                  "qualified",
                  "meeting"
                ],
                "title": "Counts",
                "type": "string"
              },
              "facts": {
                "description": "What only it knows, said at once like the docs",
                "items": {
                  "$ref": "#/$defs/AgentFact"
                },
                "title": "Facts",
                "type": "array"
              },
              "goal": {
                "default": "",
                "description": "What a demo with it is for, in the team's words",
                "title": "Goal",
                "type": "string"
              },
              "id": {
                "title": "Id",
                "type": "string"
              },
              "instructions": {
                "description": "What it does differently on a call, in the team's words",
                "title": "Instructions",
                "type": "string"
              },
              "last_30_days": {
                "$ref": "#/$defs/AgentNumbers"
              },
              "list_price": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "US cents a demo at the list price for its renderer. Solacia's people only; null otherwise",
                "title": "List Price"
              },
              "name": {
                "description": "The team's name for it; buyers meet the guide by its own name",
                "title": "Name",
                "type": "string"
              },
              "placed": {
                "$ref": "#/$defs/AgentPlaced",
                "description": "How many places of each kind it meets buyers in"
              },
              "renderer": {
                "description": "What buyers get: the guide's voice, or voice and face",
                "enum": [
                  "voice",
                  "face"
                ],
                "title": "Renderer",
                "type": "string"
              },
              "retired": {
                "description": "Paused: it meets no buyer anywhere until resumed",
                "title": "Retired",
                "type": "boolean"
              },
              "runs": {
                "description": "The channels whose demos it runs",
                "items": {
                  "enum": [
                    "embed",
                    "outbound",
                    "link"
                  ],
                  "type": "string"
                },
                "title": "Runs",
                "type": "array"
              },
              "state": {
                "default": "live",
                "description": "testing: in a running test; draft: a draft waits to go live; live: meets buyers; idle: meets nobody; paused: retired, its places sending buyers on until it resumes",
                "enum": [
                  "testing",
                  "draft",
                  "live",
                  "idle",
                  "paused"
                ],
                "title": "State",
                "type": "string"
              },
              "tone": {
                "anyOf": [
                  {
                    "enum": [
                      "brief",
                      "warm",
                      "expert"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "How it talks; null: as the product's brief says",
                "title": "Tone"
              },
              "version": {
                "default": 1,
                "description": "Its live version; GET /v1/agents/{id} has every one",
                "title": "Version",
                "type": "integer"
              },
              "voices": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Its voice id per language, where not the product's",
                "title": "Voices",
                "type": "object"
              }
            },
            "required": [
              "id",
              "name",
              "base",
              "retired",
              "renderer",
              "cost",
              "list_price",
              "runs",
              "changed_by",
              "changed_at",
              "tone",
              "instructions",
              "facts",
              "voices",
              "last_30_days"
            ],
            "title": "AgentOut",
            "type": "object"
          },
          "AgentPlaced": {
            "additionalProperties": false,
            "description": "How many places of each kind an agent meets buyers in; GET /v1/agents/{id} lists each.",
            "properties": {
              "address": {
                "default": false,
                "description": "It meets buyers on the product's own demo address",
                "title": "Address",
                "type": "boolean"
              },
              "campaigns": {
                "default": 0,
                "description": "Campaigns whose personal links were made with it",
                "title": "Campaigns",
                "type": "integer"
              },
              "links": {
                "default": 0,
                "description": "Personal links made with it outside any campaign",
                "title": "Links",
                "type": "integer"
              },
              "outreach": {
                "default": false,
                "description": "Personal links made with no agent named meet it",
                "title": "Outreach",
                "type": "boolean"
              },
              "pages": {
                "default": 0,
                "description": "Website rules on a page",
                "title": "Pages",
                "type": "integer"
              },
              "sources": {
                "default": 0,
                "description": "Website rules on where buyers came from",
                "title": "Sources",
                "type": "integer"
              },
              "website": {
                "default": false,
                "description": "It meets the website's buyers no rule picks",
                "title": "Website",
                "type": "boolean"
              }
            },
            "title": "AgentPlaced",
            "type": "object"
          },
          "AgentRule": {
            "additionalProperties": false,
            "description": "One website rule: buyers who came from `match` (when `source`: one of your own tags by its\nname such as utm_campaign=spring-launch, a tag's value in any tag such as spring-launch, a\nreferring site such as linkedin, or a channel such as paid or social), or who opened the demo\non a page under `match` (when `page`: a path such as /card), meet `agent`.",
            "properties": {
              "agent": {
                "maxLength": 80,
                "minLength": 1,
                "title": "Agent",
                "type": "string"
              },
              "match": {
                "maxLength": 120,
                "minLength": 1,
                "title": "Match",
                "type": "string"
              },
              "when": {
                "enum": [
                  "source",
                  "page"
                ],
                "title": "When",
                "type": "string"
              }
            },
            "required": [
              "when",
              "match",
              "agent"
            ],
            "title": "AgentRule",
            "type": "object"
          },
          "AgentTest": {
            "additionalProperties": false,
            "properties": {
              "agent": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The agent whose versions are the sides, wherever it is placed",
                "title": "Agent"
              },
              "arms": {
                "items": {
                  "$ref": "#/$defs/TestArm"
                },
                "title": "Arms",
                "type": "array"
              },
              "by": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "By"
              },
              "chances": {
                "description": "The best challenger against A: worse, about the same, better",
                "items": {
                  "type": "number"
                },
                "title": "Chances",
                "type": "array"
              },
              "channel": {
                "anyOf": [
                  {
                    "enum": [
                      "embed",
                      "outbound",
                      "link"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Null: a test between one agent's versions",
                "title": "Channel"
              },
              "ended": {
                "description": "Past its end and not stopped: new buyers meet side A, one side waits to be kept",
                "title": "Ended",
                "type": "boolean"
              },
              "ends": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "When it stops taking buyers; null: when the team stops it",
                "title": "Ends"
              },
              "guardrails": {
                "description": "Between an agent's versions: what the test must not make worse, side A against B",
                "items": {
                  "$ref": "#/$defs/TestGuardrail"
                },
                "title": "Guardrails",
                "type": "array"
              },
              "high": {
                "title": "High",
                "type": "number"
              },
              "id": {
                "title": "Id",
                "type": "string"
              },
              "kept": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The agent kept for the channel when it stopped",
                "title": "Kept"
              },
              "leader": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Leader"
              },
              "lever": {
                "anyOf": [
                  {
                    "enum": [
                      "message",
                      "features",
                      "pricing",
                      "offer",
                      "qualification"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "What it is to learn, when it was started from a lever",
                "title": "Lever"
              },
              "lift": {
                "description": "The best challenger's meeting rate minus A's",
                "title": "Lift",
                "type": "number"
              },
              "looks": {
                "description": "Week by week, oldest first",
                "items": {
                  "$ref": "#/$defs/TestLook"
                },
                "title": "Looks",
                "type": "array"
              },
              "low": {
                "description": "95% interval of that difference, valid however often it is read",
                "title": "Low",
                "type": "number"
              },
              "meetings_from": {
                "default": "demo",
                "description": "What counts as a meeting. demo: asking in the demo; form: that, or sending the vendor's own demo form (the website against no demo); crm: a meeting the account's CRM shows booked after the prospect's link was made (outreach against no demo); qualified: the buyer qualified, hot or warm, which asking for a meeting also is (a test between versions)",
                "enum": [
                  "demo",
                  "form",
                  "crm",
                  "qualified"
                ],
                "title": "Meetings From",
                "type": "string"
              },
              "min_buyers": {
                "description": "Buyers each side needs before any verdict",
                "title": "Min Buyers",
                "type": "integer"
              },
              "more": {
                "description": "Buyers each side still needs: before any verdict when early, to decide when ahead",
                "title": "More",
                "type": "integer"
              },
              "per_side_week": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Buyers a week on its smallest side, from its whole weeks so far",
                "title": "Per Side Week"
              },
              "question": {
                "title": "Question",
                "type": "string"
              },
              "rule": {
                "default": "proven",
                "description": "How it decides. proven: a side goes live once it beats the others past chance; unless_worse (between an agent's versions): a challenger may go live once keeping it would cost under 0.2 points on average if it were worse, read at the end of each week",
                "enum": [
                  "unless_worse",
                  "proven"
                ],
                "title": "Rule",
                "type": "string"
              },
              "says": {
                "description": "The readout in one sentence",
                "title": "Says",
                "type": "string"
              },
              "sides": {
                "description": "Between an agent's versions: how far each side's buyers got",
                "items": {
                  "$ref": "#/$defs/TestSide"
                },
                "title": "Sides",
                "type": "array"
              },
              "srm": {
                "description": "p-value of the sample-ratio check",
                "title": "Srm",
                "type": "number"
              },
              "started": {
                "title": "Started",
                "type": "string"
              },
              "stopped": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Stopped"
              },
              "verdict": {
                "description": "winner: one side beats every other past chance, on an interval that holds however often the test is read; safe (unless_worse): at the end of one of its weeks a challenger risked under 0.2 points if worse, so it may go live (`leader`); even: the gap is proven under 2 points; broken: the buyers did not fall on the sides as the shares say",
                "enum": [
                  "early",
                  "ahead",
                  "winner",
                  "even",
                  "safe",
                  "broken"
                ],
                "title": "Verdict",
                "type": "string"
              },
              "weeks_left": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Weeks until `more` buyers a side arrive at that pace; null when not counting",
                "title": "Weeks Left"
              }
            },
            "required": [
              "id",
              "channel",
              "question",
              "started",
              "stopped",
              "ends",
              "ended",
              "min_buyers",
              "kept",
              "by",
              "arms",
              "verdict",
              "leader",
              "lift",
              "low",
              "high",
              "more",
              "srm",
              "says"
            ],
            "title": "AgentTest",
            "type": "object"
          },
          "ChannelPace": {
            "additionalProperties": false,
            "properties": {
              "crm": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/CrmPace"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Outreach only: the same for a test against no demo, whose meetings come from the CRM"
              },
              "demos": {
                "description": "Demos the channel labelled in the last 30 days, test demos left out",
                "title": "Demos",
                "type": "integer"
              },
              "meetings": {
                "title": "Meetings",
                "type": "integer"
              },
              "per_side": {
                "description": "Buyers each side of a test needs to see that rate rise by half",
                "title": "Per Side",
                "type": "integer"
              },
              "per_side_double": {
                "description": "Buyers each side needs to see it double",
                "title": "Per Side Double",
                "type": "integer"
              },
              "per_week": {
                "title": "Per Week",
                "type": "number"
              },
              "rate": {
                "description": "The channel's meeting rate; 10% until it has 20 demos of its own",
                "title": "Rate",
                "type": "number"
              }
            },
            "required": [
              "demos",
              "meetings",
              "per_week",
              "rate",
              "per_side",
              "per_side_double"
            ],
            "title": "ChannelPace",
            "type": "object"
          },
          "CrmPace": {
            "additionalProperties": false,
            "properties": {
              "per_side": {
                "title": "Per Side",
                "type": "integer"
              },
              "per_side_double": {
                "title": "Per Side Double",
                "type": "integer"
              },
              "rate": {
                "description": "The meeting rate assumed for cold outreach",
                "title": "Rate",
                "type": "number"
              }
            },
            "required": [
              "rate",
              "per_side",
              "per_side_double"
            ],
            "title": "CrmPace",
            "type": "object"
          },
          "FlowWay": {
            "additionalProperties": false,
            "description": "One way a demo can go, from opening it to where the buyer is now, and how many went it.",
            "properties": {
              "n": {
                "title": "N",
                "type": "integer"
              },
              "steps": {
                "examples": [
                  [
                    "opened",
                    "saw",
                    "talked",
                    "qualified",
                    "meeting"
                  ]
                ],
                "items": {
                  "type": "string"
                },
                "title": "Steps",
                "type": "array"
              }
            },
            "required": [
              "steps",
              "n"
            ],
            "title": "FlowWay",
            "type": "object"
          },
          "PoolVoice": {
            "additionalProperties": false,
            "properties": {
              "accent": {
                "description": "The locale it is native to, e.g. es-CO",
                "title": "Accent",
                "type": "string"
              },
              "gender": {
                "description": "f or m; empty for a product voice outside the pool",
                "enum": [
                  "f",
                  "m",
                  ""
                ],
                "title": "Gender",
                "type": "string"
              },
              "id": {
                "description": "The voice's id at the speech provider",
                "title": "Id",
                "type": "string"
              },
              "name": {
                "description": "Its name; empty for a product voice outside the pool",
                "title": "Name",
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "gender",
              "accent"
            ],
            "title": "PoolVoice",
            "type": "object"
          },
          "TestArm": {
            "additionalProperties": false,
            "properties": {
              "agent": {
                "title": "Agent",
                "type": "string"
              },
              "best": {
                "description": "The chance this side is the best of them (0 to 1)",
                "title": "Best",
                "type": "number"
              },
              "buyers": {
                "description": "Buyers put on this side who opened a demo; each counts once",
                "title": "Buyers",
                "type": "integer"
              },
              "cost": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "US cents a demo. Solacia's people only; null for everyone else",
                "title": "Cost"
              },
              "demos": {
                "title": "Demos",
                "type": "integer"
              },
              "key": {
                "description": "A (what ran before), B, C",
                "title": "Key",
                "type": "string"
              },
              "loss": {
                "description": "Meeting rate lost on average by keeping this side, if another is better (0.004 = 0.4 points)",
                "title": "Loss",
                "type": "number"
              },
              "meetings": {
                "description": "Buyers who asked for a meeting",
                "title": "Meetings",
                "type": "integer"
              },
              "name": {
                "title": "Name",
                "type": "string"
              },
              "rate": {
                "description": "meetings / buyers",
                "title": "Rate",
                "type": "number"
              },
              "renderer": {
                "enum": [
                  "voice",
                  "face"
                ],
                "title": "Renderer",
                "type": "string"
              },
              "share": {
                "description": "Percent of buyers sent to this side",
                "title": "Share",
                "type": "integer"
              },
              "version": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "In a test between an agent's versions: this side's; null for its draft",
                "title": "Version"
              }
            },
            "required": [
              "key",
              "agent",
              "name",
              "renderer",
              "cost",
              "share",
              "buyers",
              "demos",
              "meetings",
              "rate",
              "best",
              "loss"
            ],
            "title": "TestArm",
            "type": "object"
          },
          "TestGuardrail": {
            "additionalProperties": false,
            "description": "One guardrail across a test's two sides, as a scorecard row: side A, side B, B minus A and\nits interval, read as the goal's is (valid however often it is read).",
            "properties": {
              "a": {
                "title": "A",
                "type": "number"
              },
              "a_count": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Buyers who did it on side A; null for an average",
                "title": "A Count"
              },
              "b": {
                "title": "B",
                "type": "number"
              },
              "b_count": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "B Count"
              },
              "better": {
                "description": "Which way is better",
                "enum": [
                  "up",
                  "down"
                ],
                "title": "Better",
                "type": "string"
              },
              "gap": {
                "description": "b minus a: points of share, or minutes",
                "title": "Gap",
                "type": "number"
              },
              "high": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "High"
              },
              "id": {
                "description": "meetings: share who asked to meet the team; minutes: average minutes in the demo; left_early: share who left in the first minute",
                "enum": [
                  "meetings",
                  "minutes",
                  "left_early"
                ],
                "title": "Id",
                "type": "string"
              },
              "low": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Null until both sides have buyers",
                "title": "Low"
              }
            },
            "required": [
              "id",
              "better",
              "a",
              "b",
              "gap",
              "low",
              "high"
            ],
            "title": "TestGuardrail",
            "type": "object"
          },
          "TestGuards": {
            "additionalProperties": false,
            "properties": {
              "buyers": {
                "title": "Buyers",
                "type": "integer"
              },
              "left_early": {
                "description": "Share who left in the first minute",
                "title": "Left Early",
                "type": "number"
              },
              "meetings": {
                "description": "Share who asked to meet the team",
                "title": "Meetings",
                "type": "number"
              },
              "minutes": {
                "description": "Average minutes in the demo",
                "title": "Minutes",
                "type": "number"
              }
            },
            "required": [
              "buyers",
              "meetings",
              "minutes",
              "left_early"
            ],
            "title": "TestGuards",
            "type": "object"
          },
          "TestLook": {
            "additionalProperties": false,
            "description": "The test as it stood at the end of one of its weeks.",
            "properties": {
              "at": {
                "description": "When that week ended",
                "title": "At",
                "type": "string"
              },
              "better": {
                "description": "The chance it is better by over a point",
                "title": "Better",
                "type": "number"
              },
              "buyers": {
                "description": "On each side, A first",
                "items": {
                  "type": "integer"
                },
                "title": "Buyers",
                "type": "array"
              },
              "gap": {
                "description": "The best challenger's rate minus A's",
                "title": "Gap",
                "type": "number"
              },
              "high": {
                "title": "High",
                "type": "number"
              },
              "low": {
                "title": "Low",
                "type": "number"
              },
              "rates": {
                "items": {
                  "type": "number"
                },
                "title": "Rates",
                "type": "array"
              },
              "safe": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Under unless_worse: the side that could go live at this week's end",
                "title": "Safe"
              },
              "same": {
                "description": "The chance it is within a point either way",
                "title": "Same",
                "type": "number"
              },
              "week": {
                "description": "1: its first seven days",
                "title": "Week",
                "type": "integer"
              },
              "worse": {
                "description": "The chance that challenger is worse than A, by over a point",
                "title": "Worse",
                "type": "number"
              }
            },
            "required": [
              "week",
              "at",
              "buyers",
              "rates",
              "gap",
              "low",
              "high",
              "worse",
              "same",
              "better"
            ],
            "title": "TestLook",
            "type": "object"
          },
          "TestSide": {
            "additionalProperties": false,
            "description": "One side of a test between an agent's versions, as its buyers went through it.",
            "properties": {
              "guards": {
                "$ref": "#/$defs/TestGuards"
              },
              "key": {
                "title": "Key",
                "type": "string"
              },
              "paths": {
                "description": "How many buyers went each way, as Home's flow reads demos; every way listed, zeros included",
                "items": {
                  "$ref": "#/$defs/FlowWay"
                },
                "title": "Paths",
                "type": "array"
              }
            },
            "required": [
              "key",
              "paths",
              "guards"
            ],
            "title": "TestSide",
            "type": "object"
          },
          "ToneOut": {
            "additionalProperties": false,
            "properties": {
              "name": {
                "title": "Name",
                "type": "string"
              },
              "says": {
                "description": "What the guide is told, word for word",
                "title": "Says",
                "type": "string"
              }
            },
            "required": [
              "name",
              "says"
            ],
            "title": "ToneOut",
            "type": "object"
          },
          "VoicePool": {
            "additionalProperties": false,
            "properties": {
              "product": {
                "description": "The voice calls speak this language with when the agent picks none",
                "title": "Product",
                "type": "string"
              },
              "voices": {
                "description": "The voices to pick from, the product's own first",
                "items": {
                  "$ref": "#/$defs/PoolVoice"
                },
                "title": "Voices",
                "type": "array"
              }
            },
            "required": [
              "product",
              "voices"
            ],
            "title": "VoicePool",
            "type": "object"
          }
        },
        "additionalProperties": false,
        "description": "The account's agents, and the agent each channel runs: `embed` (the vendor's website),\n`outbound` (personal links from outreach) and `link` (the demo's own address). Then each\nchannel's pace, and the tests between agents, newest first.",
        "properties": {
          "agents": {
            "items": {
              "$ref": "#/$defs/AgentOut"
            },
            "title": "Agents",
            "type": "array"
          },
          "defaults": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "The agent each teammate sends links with unless they pick another, by their email",
            "title": "Defaults",
            "type": "object"
          },
          "languages": {
            "description": "The languages the demo's calls speak",
            "items": {
              "type": "string"
            },
            "title": "Languages",
            "type": "array"
          },
          "list_prices": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "propertyNames": {
                  "enum": [
                    "voice",
                    "face"
                  ]
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "US cents a demo for each renderer. Solacia's people only; null for everyone else",
            "title": "List Prices"
          },
          "pace": {
            "additionalProperties": {
              "$ref": "#/$defs/ChannelPace"
            },
            "propertyNames": {
              "enum": [
                "embed",
                "outbound",
                "link"
              ]
            },
            "title": "Pace",
            "type": "object"
          },
          "routes": {
            "additionalProperties": {
              "type": "string"
            },
            "propertyNames": {
              "enum": [
                "embed",
                "outbound",
                "link"
              ]
            },
            "title": "Routes",
            "type": "object"
          },
          "rules": {
            "description": "The website's rules, in order: which agent a buyer meets by where they came from (the first that matches), then by the page the demo opened on (the most specific)",
            "items": {
              "$ref": "#/$defs/AgentRule"
            },
            "title": "Rules",
            "type": "array"
          },
          "schema": {
            "default": "solacia.agents.v0",
            "title": "Schema",
            "type": "string"
          },
          "tests": {
            "items": {
              "$ref": "#/$defs/AgentTest"
            },
            "title": "Tests",
            "type": "array"
          },
          "tones": {
            "additionalProperties": {
              "$ref": "#/$defs/ToneOut"
            },
            "propertyNames": {
              "enum": [
                "brief",
                "warm",
                "expert"
              ]
            },
            "title": "Tones",
            "type": "object"
          },
          "voice_pool": {
            "additionalProperties": {
              "$ref": "#/$defs/VoicePool"
            },
            "description": "The voices an agent can have, per language the demo speaks; empty when the product speaks with voices outside the pool",
            "title": "Voice Pool",
            "type": "object"
          }
        },
        "required": [
          "agents",
          "routes",
          "list_prices",
          "tones",
          "languages",
          "pace",
          "tests"
        ],
        "title": "Agents",
        "type": "object"
      },
      "path": "/agent-tests/{id}/stop",
      "scope": "agents:admin",
      "title": "Stop an agent test"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": false,
        "title": "Make demo links"
      },
      "description": "Make a personal demo link for each prospect: a work email, and their name, company, role and what the rep knows, which the agent reads before the demo. Each link opens the demo without a password and records it under that prospect. Nothing is sent: give the links back to the person. Rows that are not a work email come back refused.",
      "input_schema": {
        "$defs": {
          "DemoLinkIn": {
            "additionalProperties": false,
            "description": "A personal demo link for one prospect, and who they are. Everything but the email is\noptional; what is given, the agent reads before the call. An anonymous link needs no email\nand names nobody.",
            "properties": {
              "agent": {
                "description": "The agent the prospect meets: its id. Left out: the sender's default agent, else the outbound channel's.",
                "maxLength": 80,
                "type": "string"
              },
              "anonymous": {
                "default": false,
                "description": "A link for someone unnamed: its demos are filed under an address made up for it, and a buyer who asks for your team gives their own email.",
                "type": "boolean"
              },
              "campaign": {
                "default": "",
                "description": "The list, segment or sequence the link goes out in, such as CFOs Mexico Q4. Your team's label: the agent never sees it; the lead record carries it.",
                "maxLength": 80,
                "type": "string"
              },
              "company": {
                "default": "",
                "maxLength": 80,
                "type": "string"
              },
              "days": {
                "default": 30,
                "description": "How long the link opens the demo.",
                "maximum": 90,
                "minimum": 1,
                "type": "integer"
              },
              "email": {
                "default": "",
                "description": "The prospect's work email; none for an anonymous link.",
                "maxLength": 254,
                "type": "string"
              },
              "name": {
                "default": "",
                "description": "Their name, to greet them by.",
                "maxLength": 80,
                "type": "string"
              },
              "notes": {
                "default": "",
                "description": "What the rep knows that should shape the demo. The agent checks it with the buyer before relying on it and never quotes it.",
                "maxLength": 600,
                "type": "string"
              },
              "role": {
                "default": "",
                "description": "Their job, such as CFO.",
                "maxLength": 80,
                "type": "string"
              },
              "sent_to": {
                "default": "",
                "description": "Who you sent the link to: a company, a person or both. Your team's label: the agent never sees it.",
                "maxLength": 80,
                "type": "string"
              },
              "try_out": {
                "default": false,
                "description": "A try link, Solacia's team only: one we keep to try the demo ourselves, never sent to a buyer. Its demos never post to Slack or reach the CRM. Anyone else is refused.",
                "type": "boolean"
              }
            },
            "type": "object"
          }
        },
        "additionalProperties": false,
        "properties": {
          "rows": {
            "description": "Up to 500 prospects.",
            "items": {
              "$ref": "#/$defs/DemoLinkIn"
            },
            "maxItems": 500,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "rows"
        ],
        "type": "object"
      },
      "method": "POST",
      "name": "make_demo_links",
      "operation": "links.create_many",
      "output_schema": {
        "$defs": {
          "DemoLink": {
            "additionalProperties": false,
            "description": "A personal link: it opens the demo without the password and records the demo under the\nprospect's email. With what the prospect has done since it was made.",
            "properties": {
              "agent": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The agent the link was made with; null: the outbound channel's.",
                "title": "Agent"
              },
              "anonymous": {
                "default": false,
                "title": "Anonymous",
                "type": "boolean"
              },
              "campaign": {
                "default": "",
                "title": "Campaign",
                "type": "string"
              },
              "company": {
                "title": "Company",
                "type": "string"
              },
              "demos": {
                "default": 0,
                "description": "Demos the prospect ran since the link was made.",
                "title": "Demos",
                "type": "integer"
              },
              "email": {
                "title": "Email",
                "type": "string"
              },
              "expires_at": {
                "description": "ISO 8601, UTC.",
                "title": "Expires At",
                "type": "string"
              },
              "last_demo_at": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "ISO 8601; null before a demo.",
                "title": "Last Demo At"
              },
              "made_at": {
                "description": "ISO 8601.",
                "title": "Made At",
                "type": "string"
              },
              "made_by": {
                "title": "Made By",
                "type": "string"
              },
              "name": {
                "title": "Name",
                "type": "string"
              },
              "notes": {
                "title": "Notes",
                "type": "string"
              },
              "priority": {
                "anyOf": [
                  {
                    "enum": [
                      "hot",
                      "warm",
                      "nurture",
                      "cold"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The hottest of those demos; null before one.",
                "title": "Priority"
              },
              "role": {
                "title": "Role",
                "type": "string"
              },
              "sent_to": {
                "default": "",
                "title": "Sent To",
                "type": "string"
              },
              "team_requested": {
                "default": false,
                "description": "They asked to talk to your team in one of them.",
                "title": "Team Requested",
                "type": "boolean"
              },
              "test": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The outreach test that sorted them when the link was made.",
                "title": "Test"
              },
              "try_out": {
                "default": false,
                "description": "A try link, kept for your team to try the demo.",
                "title": "Try Out",
                "type": "boolean"
              },
              "url": {
                "description": "The link to send; empty when the site cannot sign links.",
                "title": "Url",
                "type": "string"
              },
              "with_demo": {
                "default": true,
                "description": "False while an outreach test puts this prospect on its side with no demo: send them the same email without the demo link. `url` is then empty.",
                "title": "With Demo",
                "type": "boolean"
              }
            },
            "required": [
              "url",
              "email",
              "name",
              "company",
              "role",
              "notes",
              "expires_at",
              "made_by",
              "made_at"
            ],
            "title": "DemoLink",
            "type": "object"
          },
          "LinkRefused": {
            "additionalProperties": false,
            "description": "A row no link was made for, and why: the same answer a single link would get.",
            "properties": {
              "code": {
                "description": "`invalid_email`, `personal_email` or `invalid_days`.",
                "title": "Code",
                "type": "string"
              },
              "detail": {
                "title": "Detail",
                "type": "string"
              },
              "email": {
                "title": "Email",
                "type": "string"
              },
              "row": {
                "description": "The row's place in `rows`, from 0.",
                "title": "Row",
                "type": "integer"
              }
            },
            "required": [
              "row",
              "email",
              "code",
              "detail"
            ],
            "title": "LinkRefused",
            "type": "object"
          }
        },
        "additionalProperties": false,
        "description": "What a batch made: a link per prospect, in the order given, and the rows refused.",
        "properties": {
          "made": {
            "items": {
              "$ref": "#/$defs/DemoLink"
            },
            "title": "Made",
            "type": "array"
          },
          "refused": {
            "items": {
              "$ref": "#/$defs/LinkRefused"
            },
            "title": "Refused",
            "type": "array"
          }
        },
        "required": [
          "made"
        ],
        "title": "DemoLinksMade",
        "type": "object"
      },
      "path": "/demo-links/batch",
      "scope": "links:write",
      "title": "Make demo links"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List CRM lists"
      },
      "description": "The lists in the account's CRM that demo links can be made for (HubSpot contact lists, Salesforce campaigns), with how many people each holds. Pass a list's `id` to make_crm_list_links.",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "q": {
            "default": "",
            "description": "Words in the list's name.",
            "maxLength": 80,
            "type": "string"
          }
        },
        "type": "object"
      },
      "method": "GET",
      "name": "list_crm_lists",
      "operation": "crm.lists",
      "output_schema": {
        "$defs": {
          "CrmList": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "title": "Id",
                "type": "string"
              },
              "name": {
                "title": "Name",
                "type": "string"
              },
              "size": {
                "description": "People on it (a campaign's contacts and leads), as the CRM last counted them.",
                "title": "Size",
                "type": "integer"
              },
              "updated": {
                "description": "When it last changed, ISO 8601, as the CRM says it.",
                "title": "Updated",
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "size",
              "updated"
            ],
            "title": "CrmList",
            "type": "object"
          }
        },
        "additionalProperties": false,
        "description": "The lists in the account's CRM a send can start from: HubSpot's contact lists, Salesforce's\ncampaigns.",
        "properties": {
          "connected": {
            "description": "Whether Solacia holds a connection to it.",
            "title": "Connected",
            "type": "boolean"
          },
          "crm": {
            "description": "The account's CRM (`hubspot`, `salesforce`), or empty when none is chosen.",
            "title": "Crm",
            "type": "string"
          },
          "lists": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/$defs/CrmList"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its contact lists, most recently changed first; null when the CRM refused, such as a HubSpot connection made before Solacia asked to read lists.",
            "title": "Lists"
          },
          "refused": {
            "default": "",
            "description": "Why the CRM refused, in its words.",
            "title": "Refused",
            "type": "string"
          }
        },
        "required": [
          "crm",
          "connected",
          "lists"
        ],
        "title": "CrmLists",
        "type": "object"
      },
      "path": "/crm/lists",
      "scope": "links:write",
      "title": "List CRM lists"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false,
        "title": "Make demo links for a CRM list"
      },
      "description": "Make a personal demo link for each person on a CRM list (a `list_id` list_crm_lists gives) and write it onto their CRM record, where the team's own sequence picks it up. Nothing is sent to anyone. One page per call: call again with `after` set to the answer's `next` until it is empty.",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "default": "",
            "description": "Where this page starts: the last answer's `next`.",
            "maxLength": 256,
            "type": "string"
          },
          "agent": {
            "description": "The agent they meet; left out: the sender's default.",
            "maxLength": 80,
            "type": "string"
          },
          "campaign": {
            "default": "",
            "maxLength": 80,
            "type": "string"
          },
          "days": {
            "default": 30,
            "description": "How long the links open the demo.",
            "maximum": 90,
            "minimum": 1,
            "type": "integer"
          },
          "list_id": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "list_id"
        ],
        "type": "object"
      },
      "method": "POST",
      "name": "make_crm_list_links",
      "operation": "links.from_crm_list",
      "output_schema": {
        "$defs": {
          "DemoLink": {
            "additionalProperties": false,
            "description": "A personal link: it opens the demo without the password and records the demo under the\nprospect's email. With what the prospect has done since it was made.",
            "properties": {
              "agent": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The agent the link was made with; null: the outbound channel's.",
                "title": "Agent"
              },
              "anonymous": {
                "default": false,
                "title": "Anonymous",
                "type": "boolean"
              },
              "campaign": {
                "default": "",
                "title": "Campaign",
                "type": "string"
              },
              "company": {
                "title": "Company",
                "type": "string"
              },
              "demos": {
                "default": 0,
                "description": "Demos the prospect ran since the link was made.",
                "title": "Demos",
                "type": "integer"
              },
              "email": {
                "title": "Email",
                "type": "string"
              },
              "expires_at": {
                "description": "ISO 8601, UTC.",
                "title": "Expires At",
                "type": "string"
              },
              "last_demo_at": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "ISO 8601; null before a demo.",
                "title": "Last Demo At"
              },
              "made_at": {
                "description": "ISO 8601.",
                "title": "Made At",
                "type": "string"
              },
              "made_by": {
                "title": "Made By",
                "type": "string"
              },
              "name": {
                "title": "Name",
                "type": "string"
              },
              "notes": {
                "title": "Notes",
                "type": "string"
              },
              "priority": {
                "anyOf": [
                  {
                    "enum": [
                      "hot",
                      "warm",
                      "nurture",
                      "cold"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The hottest of those demos; null before one.",
                "title": "Priority"
              },
              "role": {
                "title": "Role",
                "type": "string"
              },
              "sent_to": {
                "default": "",
                "title": "Sent To",
                "type": "string"
              },
              "team_requested": {
                "default": false,
                "description": "They asked to talk to your team in one of them.",
                "title": "Team Requested",
                "type": "boolean"
              },
              "test": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The outreach test that sorted them when the link was made.",
                "title": "Test"
              },
              "try_out": {
                "default": false,
                "description": "A try link, kept for your team to try the demo.",
                "title": "Try Out",
                "type": "boolean"
              },
              "url": {
                "description": "The link to send; empty when the site cannot sign links.",
                "title": "Url",
                "type": "string"
              },
              "with_demo": {
                "default": true,
                "description": "False while an outreach test puts this prospect on its side with no demo: send them the same email without the demo link. `url` is then empty.",
                "title": "With Demo",
                "type": "boolean"
              }
            },
            "required": [
              "url",
              "email",
              "name",
              "company",
              "role",
              "notes",
              "expires_at",
              "made_by",
              "made_at"
            ],
            "title": "DemoLink",
            "type": "object"
          },
          "LinkRefused": {
            "additionalProperties": false,
            "description": "A row no link was made for, and why: the same answer a single link would get.",
            "properties": {
              "code": {
                "description": "`invalid_email`, `personal_email` or `invalid_days`.",
                "title": "Code",
                "type": "string"
              },
              "detail": {
                "title": "Detail",
                "type": "string"
              },
              "email": {
                "title": "Email",
                "type": "string"
              },
              "row": {
                "description": "The row's place in `rows`, from 0.",
                "title": "Row",
                "type": "integer"
              }
            },
            "required": [
              "row",
              "email",
              "code",
              "detail"
            ],
            "title": "LinkRefused",
            "type": "object"
          }
        },
        "additionalProperties": false,
        "properties": {
          "made": {
            "items": {
              "$ref": "#/$defs/DemoLink"
            },
            "title": "Made",
            "type": "array"
          },
          "next": {
            "default": "",
            "description": "Pass as `after` for the next page; empty after the last.",
            "title": "Next",
            "type": "string"
          },
          "no_email": {
            "default": 0,
            "description": "Contacts on this page without an email: no link.",
            "title": "No Email",
            "type": "integer"
          },
          "no_field": {
            "default": false,
            "description": "Salesforce: the org has no Solacia_Demo_Link__c URL field on Contact and Lead, so the links were made but not saved on the records.",
            "title": "No Field",
            "type": "boolean"
          },
          "refused": {
            "items": {
              "$ref": "#/$defs/LinkRefused"
            },
            "title": "Refused",
            "type": "array"
          },
          "refused_by_crm": {
            "default": "",
            "description": "Why the CRM refused the write, in its words.",
            "title": "Refused By Crm",
            "type": "string"
          },
          "written": {
            "description": "Whether each link reached its record: HubSpot's Solacia demo link property, Salesforce's Solacia Demo Link field.",
            "title": "Written",
            "type": "boolean"
          }
        },
        "required": [
          "made",
          "written"
        ],
        "title": "CrmListLinks",
        "type": "object"
      },
      "path": "/demo-links/from-crm-list",
      "scope": "links:write",
      "title": "Make demo links for a CRM list"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false,
        "readOnlyHint": true,
        "title": "List demo links"
      },
      "description": "The personal demo links made so far, newest first: who each is for, the link, and what that prospect has done since (demos, how hot, whether they asked for your team), with what each campaign has brought over all its links. For the rows after these, pass the answer's `next_cursor` as `cursor`.",
      "input_schema": {
        "additionalProperties": false,
        "properties": {
          "campaign": {
            "description": "Only this campaign's links; an empty value, those without one.",
            "maxLength": 80,
            "type": "string"
          },
          "cursor": {
            "default": "",
            "description": "The previous page's next_cursor; empty for the first page.",
            "maxLength": 2000,
            "type": "string"
          },
          "limit": {
            "default": 20,
            "description": "At most this many links, newest first; 0 for all of them.",
            "maximum": 500,
            "minimum": 0,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "method": "GET",
      "name": "list_demo_links",
      "operation": "links.list",
      "output_schema": {
        "$defs": {
          "CampaignResult": {
            "additionalProperties": false,
            "description": "What one campaign's links have brought so far.",
            "properties": {
              "campaign": {
                "description": "Empty for links made without one.",
                "title": "Campaign",
                "type": "string"
              },
              "links": {
                "title": "Links",
                "type": "integer"
              },
              "opened": {
                "description": "Links whose prospect ran at least one demo.",
                "title": "Opened",
                "type": "integer"
              },
              "qualified": {
                "description": "Prospects whose hottest demo is hot or warm.",
                "title": "Qualified",
                "type": "integer"
              },
              "team_requests": {
                "description": "Prospects who asked to talk to your team.",
                "title": "Team Requests",
                "type": "integer"
              }
            },
            "required": [
              "campaign",
              "links",
              "opened",
              "qualified",
              "team_requests"
            ],
            "title": "CampaignResult",
            "type": "object"
          },
          "DemoLink": {
            "additionalProperties": false,
            "description": "A personal link: it opens the demo without the password and records the demo under the\nprospect's email. With what the prospect has done since it was made.",
            "properties": {
              "agent": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The agent the link was made with; null: the outbound channel's.",
                "title": "Agent"
              },
              "anonymous": {
                "default": false,
                "title": "Anonymous",
                "type": "boolean"
              },
              "campaign": {
                "default": "",
                "title": "Campaign",
                "type": "string"
              },
              "company": {
                "title": "Company",
                "type": "string"
              },
              "demos": {
                "default": 0,
                "description": "Demos the prospect ran since the link was made.",
                "title": "Demos",
                "type": "integer"
              },
              "email": {
                "title": "Email",
                "type": "string"
              },
              "expires_at": {
                "description": "ISO 8601, UTC.",
                "title": "Expires At",
                "type": "string"
              },
              "last_demo_at": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "ISO 8601; null before a demo.",
                "title": "Last Demo At"
              },
              "made_at": {
                "description": "ISO 8601.",
                "title": "Made At",
                "type": "string"
              },
              "made_by": {
                "title": "Made By",
                "type": "string"
              },
              "name": {
                "title": "Name",
                "type": "string"
              },
              "notes": {
                "title": "Notes",
                "type": "string"
              },
              "priority": {
                "anyOf": [
                  {
                    "enum": [
                      "hot",
                      "warm",
                      "nurture",
                      "cold"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The hottest of those demos; null before one.",
                "title": "Priority"
              },
              "role": {
                "title": "Role",
                "type": "string"
              },
              "sent_to": {
                "default": "",
                "title": "Sent To",
                "type": "string"
              },
              "team_requested": {
                "default": false,
                "description": "They asked to talk to your team in one of them.",
                "title": "Team Requested",
                "type": "boolean"
              },
              "test": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "The outreach test that sorted them when the link was made.",
                "title": "Test"
              },
              "try_out": {
                "default": false,
                "description": "A try link, kept for your team to try the demo.",
                "title": "Try Out",
                "type": "boolean"
              },
              "url": {
                "description": "The link to send; empty when the site cannot sign links.",
                "title": "Url",
                "type": "string"
              },
              "with_demo": {
                "default": true,
                "description": "False while an outreach test puts this prospect on its side with no demo: send them the same email without the demo link. `url` is then empty.",
                "title": "With Demo",
                "type": "boolean"
              }
            },
            "required": [
              "url",
              "email",
              "name",
              "company",
              "role",
              "notes",
              "expires_at",
              "made_by",
              "made_at"
            ],
            "title": "DemoLink",
            "type": "object"
          }
        },
        "additionalProperties": false,
        "description": "The links made from the console or the API, newest first, one per prospect, and what\neach campaign has brought.",
        "properties": {
          "campaigns": {
            "description": "One row per campaign over every link, most links first.",
            "items": {
              "$ref": "#/$defs/CampaignResult"
            },
            "title": "Campaigns",
            "type": "array"
          },
          "links": {
            "items": {
              "$ref": "#/$defs/DemoLink"
            },
            "title": "Links",
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Pass it as `cursor` for the links after these; empty on the last page.",
            "title": "Next Cursor"
          },
          "total": {
            "default": 0,
            "description": "Links that matched, over every page.",
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "links"
        ],
        "title": "DemoLinks",
        "type": "object"
      },
      "path": "/demo-links",
      "scope": "links:write",
      "title": "List demo links"
    }
  ]
}
