PyAI · Schema

AgentConfig

Writable agent fields. On update, present fields are set, `null` clears, absent fields are untouched.

Voice AITelephonyConversational AgentsSpeech-to-TextText-to-SpeechCompany

Properties

Name Type Description
name string Display name. Required on create.
persona_system_prompt stringnull Customer-authored agent instructions: 8,000 Unicode characters by default, or 32,000 with an active monthly commitment plan. Read prompt_limit_characters on the agent for your allowance. Platform conv
role stringnull Role archetype. Adds PyAI's role operating standard beneath your persona and derives the runtime mode (`receptionist`, `sales`, and `collections` enable their matching deterministic conversation guard
greeting stringnull Greeting message, opening line spoken at turn 0 when a call connects (before the caller speaks). Stored on the agent profile; played automatically when connecting with `session_label={agent_id}`. May
greeting_variants arraynull Approved opening-line variants. PyAI selects one for each newly resolved call profile; null or empty falls back to greeting. Recording consent is fixed and never rotated.
voice_id stringnull A stock `voice_id`, one of its permanent `aliases` from `GET /v1/voices`, or a cloned voice id. Omni reports the canonical served stock id in `configured.voice_id`.
voice_instruct stringnull Stored delivery direction for instruct-capable voice tiers. Current Omni routes support neutral delivery only: omit or set null for neutral speech. A saved custom value is rejected when configuring Om
brain_model stringnull Per-agent model selection. Omit for the platform default.
barge_sensitivity stringnull Deprecated compatibility field. Stored values are not applied to Omni runtime.
ack_mode stringnull Deprecated compatibility field. Stored values are not applied to Omni runtime.
idle_check_in stringnull How patient the agent is before checking in on a silent caller ("Sorry, are you still there?"). `auto` checks in after a few seconds of silence; `patient` waits far longer, for callers who routinely t
persona_perspective stringnull Which side of the call the persona is on. `agent` (default) means the persona is the business being called, so PyAI adds its conversation layer for handling a caller (capability honesty, handoffs, tur
platform_guidance stringnull Integration-owned setup guidance. Requires an explicitly enrolled server credential; ordinary customer keys receive 403. Separate from persona_system_prompt and its account allowance. Published before
inherit_org_knowledgebases boolean When no knowledge bases are explicitly bound, inherit the organization's default knowledge bases. Set false to restrict retrieval to explicit agent bindings; an empty binding list then means no retrie
recordings_enabled booleannull Enable stereo call recordings. Default false.
consent_line stringnull Recording disclosure spoken before recording starts when `recordings_enabled` is true. Required for compliance when recordings are on and must contain a meaningful spoken phrase (at least 10 character
language stringnull Requested language for this Agent's Omni sessions. `null` or absent means `en`. Availability is staged: public serving includes `en`, `fr`, `es`, `hi`, `it`, `pt`, `ja`, and `ko`; `de` and the legacy
metadata objectnull Up to 16 key/value annotations (keys ≤64 chars, values ≤512 chars).
vocabulary arraynull Optional custom vocabulary for this Agent's Omni speech recognition. A non-empty list is the opt-in. PyAI keeps at most five effective terms, with at most five words per term. It trims whitespace, ded
keyterms arraynull Deprecated stored compatibility field. It does not affect speech recognition. Use `vocabulary`.
goals arraynull Goal checklist for post-call outcome scoring (stored now; scoring ships with summaries).
extraction_schema objectnull JSON Schema of fields to capture from each completed call's transcript. When set with extraction_webhook_url, PyAI runs a post-call extraction pass and POSTs the structured JSON to your webhook (signe
extraction_webhook_url stringnull HTTPS URL that receives the signed post-call extraction result (event `omni.call.extracted`). Requires extraction_schema. The call's agent is resolved from the connect-URL session_label when it equals
tools arraynull Tool bindings for this agent profile (references tools from `GET /v1/tools`). Omni `configure.tools[]` may list hosted catalog names or client-loop schemas; server webhooks must be registered here. An
continuity booleannull Reuse a tiny caller card on the next call when PyAI can resolve the caller (phone number or a signed customer id). The card is advisory — the agent may recall a name or open thread, and must not refun
View JSON Schema on GitHub

JSON Schema

pyai-com-agent-config-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pyai-com/json-schema/pyai-com-agent-config-schema.json",
  "title": "AgentConfig",
  "description": "Writable agent fields. On update, present fields are set, `null` clears, absent fields are untouched.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pyai-com-openapi.json#/components/schemas/AgentConfig",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 200,
      "description": "Display name. Required on create."
    },
    "persona_system_prompt": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 32000,
      "description": "Customer-authored agent instructions: 8,000 Unicode characters by default, or 32,000 with an active monthly commitment plan. Read prompt_limit_characters on the agent for your allowance. Platform conversation and safety guidance is applied separately and does not count toward this allowance. This is a character limit, not a token count."
    },
    "role": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "receptionist",
        "support",
        "sales",
        "collections",
        "ea",
        "concierge",
        "custom",
        null
      ],
      "description": "Role archetype. Adds PyAI's role operating standard beneath your persona and derives the runtime mode (`receptionist`, `sales`, and `collections` enable their matching deterministic conversation guards; everything else runs the default mode). Your stored persona is unchanged and remains authoritative for identity and business policy. Null clears the role."
    },
    "greeting": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 1000,
      "description": "Greeting message, opening line spoken at turn 0 when a call connects (before the caller speaks). Stored on the agent profile; played automatically when connecting with `session_label={agent_id}`. May also be sent inline in the Omni `configure` frame."
    },
    "greeting_variants": {
      "type": [
        "array",
        "null"
      ],
      "maxItems": 15,
      "items": {
        "type": "string",
        "maxLength": 1000
      },
      "description": "Approved opening-line variants. PyAI selects one for each newly resolved call profile; null or empty falls back to greeting. Recording consent is fixed and never rotated."
    },
    "voice_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "A stock `voice_id`, one of its permanent `aliases` from `GET /v1/voices`, or a cloned voice id. Omni reports the canonical served stock id in `configured.voice_id`."
    },
    "voice_instruct": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 200,
      "description": "Stored delivery direction for instruct-capable voice tiers. Current Omni routes support neutral delivery only: omit or set null for neutral speech. A saved custom value is rejected when configuring Omni; an inline empty `configure.voice_instruct` resets it to neutral for that session."
    },
    "brain_model": {
      "type": [
        "string",
        "null"
      ],
      "description": "Per-agent model selection. Omit for the platform default."
    },
    "barge_sensitivity": {
      "type": [
        "string",
        "null"
      ],
      "deprecated": true,
      "description": "Deprecated compatibility field. Stored values are not applied to Omni runtime."
    },
    "ack_mode": {
      "type": [
        "string",
        "null"
      ],
      "deprecated": true,
      "description": "Deprecated compatibility field. Stored values are not applied to Omni runtime."
    },
    "idle_check_in": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "auto",
        "patient",
        "off",
        null
      ],
      "description": "How patient the agent is before checking in on a silent caller (\"Sorry, are you still there?\"). `auto` checks in after a few seconds of silence; `patient` waits far longer, for callers who routinely think, read, or look something up mid-call; `off` disables the check-in entirely, so the agent stays silent until the caller speaks. When unset, most roles render `auto`; support agents render `patient`. Independent of `ack_mode`. May also be sent inline in the Omni `configure` frame, which wins for that session."
    },
    "persona_perspective": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "agent",
        "caller",
        null
      ],
      "description": "Which side of the call the persona is on. `agent` (default) means the persona is the business being called, so PyAI adds its conversation layer for handling a caller (capability honesty, handoffs, turn discipline). `caller` means the persona is the individual on the call instead, as in QA and simulation callers, mystery shopping, or training partners; PyAI drops that operator-voice layer so it cannot contradict an inverted persona. May also be sent inline in the Omni `configure` frame, which wins for that session."
    },
    "platform_guidance": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 12000,
      "description": "Integration-owned setup guidance. Requires an explicitly enrolled server credential; ordinary customer keys receive 403. Separate from persona_system_prompt and its account allowance. Published before the customer instructions without truncation."
    },
    "inherit_org_knowledgebases": {
      "type": "boolean",
      "default": true,
      "description": "When no knowledge bases are explicitly bound, inherit the organization's default knowledge bases. Set false to restrict retrieval to explicit agent bindings; an empty binding list then means no retrieval."
    },
    "recordings_enabled": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Enable stereo call recordings. Default false."
    },
    "consent_line": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 10,
      "maxLength": 500,
      "description": "Recording disclosure spoken before recording starts when `recordings_enabled` is true. Required for compliance when recordings are on and must contain a meaningful spoken phrase (at least 10 characters and 5 letters). Playback order: consent_line, then greeting, then conversation."
    },
    "language": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "en",
        "fr",
        "es",
        "de",
        "hi",
        "zh",
        "it",
        "pt",
        "ja",
        "ko",
        null
      ],
      "x-staged-language-ids": [
        "ht",
        "zh-CN",
        "ar-MSA",
        "ar-Gulf"
      ],
      "description": "Requested language for this Agent's Omni sessions. `null` or absent means `en`. Availability is staged: public serving includes `en`, `fr`, `es`, `hi`, `it`, `pt`, `ja`, and `ko`; `de` and the legacy `zh` alias fall back to English unless explicitly enabled with qualified endpoints. Canonical staged route identifiers are exposed in `x-staged-language-ids` for internal integration only and are rejected by the public control plane until qualified. Inspect the session's `configured.language_active` and `language_fallback` fields before assuming the requested language is active. See the Language support reference."
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "string"
      },
      "description": "Up to 16 key/value annotations (keys ≤64 chars, values ≤512 chars)."
    },
    "vocabulary": {
      "type": [
        "array",
        "null"
      ],
      "maxItems": 5,
      "items": {
        "type": "string",
        "minLength": 4,
        "maxLength": 64
      },
      "description": "Optional custom vocabulary for this Agent's Omni speech recognition. A non-empty list is the opt-in. PyAI keeps at most five effective terms, with at most five words per term. It trims whitespace, deduplicates without regard to case while preserving the first spelling and order, and drops common-only phrases. Set `[]` or `null` to turn it off. The list is fixed when a session starts. Organization Hear vocabulary is never applied to Omni."
    },
    "keyterms": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "maxItems": 100,
      "deprecated": true,
      "description": "Deprecated stored compatibility field. It does not affect speech recognition. Use `vocabulary`."
    },
    "goals": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "maxItems": 20,
      "description": "Goal checklist for post-call outcome scoring (stored now; scoring ships with summaries)."
    },
    "extraction_schema": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true,
      "description": "JSON Schema of fields to capture from each completed call's transcript. When set with extraction_webhook_url, PyAI runs a post-call extraction pass and POSTs the structured JSON to your webhook (signed with X-PyAI-Signature). Null disables extraction."
    },
    "extraction_webhook_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "HTTPS URL that receives the signed post-call extraction result (event `omni.call.extracted`). Requires extraction_schema. The call's agent is resolved from the connect-URL session_label when it equals this agent's id."
    },
    "tools": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/AgentToolBinding"
      },
      "description": "Tool bindings for this agent profile (references tools from `GET /v1/tools`). Omni `configure.tools[]` may list hosted catalog names or client-loop schemas; server webhooks must be registered here. An inline configure `endpoint` is not supported."
    },
    "continuity": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Reuse a tiny caller card on the next call when PyAI can resolve the caller (phone number or a signed customer id). The card is advisory — the agent may recall a name or open thread, and must not refund, book, or transfer from it. Default false."
    }
  },
  "$defs": {
    "AgentToolBinding": {
      "type": "object",
      "required": [
        "tool_id"
      ],
      "properties": {
        "tool_id": {
          "type": "string"
        },
        "enabled": {
          "type": "boolean",
          "default": true
        },
        "config": {
          "type": "object",
          "additionalProperties": true,
          "description": "Customer SETTINGS for this tool on this agent, keyed by the tool's config_schema field keys (e.g. { from_number, provider_api_key }). Fields marked secret are encrypted at rest and returned masked ('********'); re-send the mask (or omit) to keep the stored value."
        },
        "name": {
          "type": "string",
          "description": "Present on agent reads when the tool resolves."
        },
        "description": {
          "type": "string"
        },
        "input_schema": {
          "type": "object",
          "additionalProperties": true,
          "description": "Per-call model argument schema. Present on agent reads when the tool resolves."
        },
        "execution": {
          "type": "string",
          "enum": [
            "hosted",
            "server",
            "engine",
            "client"
          ],
          "description": "Resolved execution mode. Present on agent reads when the tool resolves."
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/pyai-com-agent-config"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.