Skip to content

Agent spec

An agent's behaviour is one JSON document. Every call snapshots the spec it ran with, so a transcript always matches the configuration that produced it.

Fields

FieldDescription
companyrequired{ name, description, website?, knowledge? }Who the agent speaks for. `knowledge` is free text it may answer from — FAQ, prices, hours.
personarequired{ name, tone, style? }The name it introduces itself with, and its tone: warm | professional | energetic | calm.
voicerequired{ engine, voice_id?, language, languages?, s…engine: auto | voxbox | azure | gemini | elevenlabs | mistral | inworld (Mistral: EU, English only; Inworld: US and WORLD). `auto` picks the in-region voice for the language. speed: 0.85–1.2, 1 = normal — applied only where the voice engine supports it (GET /voices lists `engines[].speed`; none do yet). thinking_sound: off (default) | soft — a quiet typing sound while the agent looks something up. ambience: off (default) | office — a low office background sound behind the voice. noise_reduction: true (default) | false — filter the caller's background noise before the agent listens. turn_taking: standard (default) | natural — when interrupted the agent finishes its word instead of cutting off, keeps talking through a short “mm-hm” or “yeah”, and says “mm-hm” itself while the caller explains something long. mode: pipeline (default) | realtime — speech-to-speech for lower latency, same tools and confirmation rules; only where enabled (US and WORLD regions), otherwise the call runs on the pipeline.
goalsrequired{ id, description }[]What a successful call achieves; used for the outcome.
greetingstringWhat the agent says right after the AI disclosure, in the same turn — e.g. "How can I help?". The disclosure already introduces the agent ("Hi, this is Alex, an AI assistant for Acme."; outbound with a known contact: "Hi, is this Anna? This is Alex, an AI assistant calling from Acme."), so sentences that re-introduce it are skipped. Placeholders: {company}, {contact} (left out cleanly when the name is unknown).
hours{ timezone, open, after_hours }Inbound opening hours by weekday (0 = Sunday) in minutes, and what to do outside them: take_message | voicemail | transfer.
toolsrequired{ builtins[], mcp[] }Built-in tools and the MCP servers + tool names this agent may use.
calendar_iduuidThe native calendar the booking tools use.
transfer{ label, number, when }[]Humans it may transfer to, and when. The agent can only transfer to these entries (by label) — never to a number a caller names.
guardrailsrequired{ max_call_seconds, max_silence_seconds, rec…recording: off (default) | on (alias: always) | by_jurisdiction. on: every call is announced and recorded; the agent asks first where the law needs express consent (DE, AT, CH, FR, BE, PL). by_jurisdiction: asks first in every all-party-consent jurisdiction (incl. US all-party states; a US number with no known state counts as one). A caller objection stops the recording and deletes it. Needs recording to be available on the service; transcripts are always saved.
outbound{ voicemail, voicemail_message? }On an answering machine: drop a short message, or hang up.

Example — a receptionist template

AgentSpecjson
{
  "company": {
    "name": "Acme Dental",
    "description": "Family dental practice in Zurich"
  },
  "persona": {
    "name": "Alex",
    "tone": "warm"
  },
  "voice": {
    "engine": "auto",
    "language": "en",
    "thinking_sound": "off",
    "ambience": "off",
    "noise_reduction": true,
    "turn_taking": "standard"
  },
  "goals": [
    {
      "id": "resolve",
      "description": "Answer the caller’s question from the company knowledge."
    },
    {
      "id": "book",
      "description": "Book, move or cancel an appointment when asked."
    },
    {
      "id": "route",
      "description": "Transfer to a human for anything urgent or out of scope."
    }
  ],
  "greeting": "How can I help?",
  "hours": {
    "timezone": "Europe/Zurich",
    "open": {
      "1": [
        [
          480,
          1080
        ]
      ],
      "2": [
        [
          480,
          1080
        ]
      ],
      "3": [
        [
          480,
          1080
        ]
      ],
      "4": [
        [
          480,
          1080
        ]
      ],
      "5": [
        [
          480,
          1080
        ]
      ]
    },
    "after_hours": "take_message"
  },
  "tools": {
    "builtins": [
      "end_call",
      "take_message",
      "log_note",
      "set_outcome",
      "opt_out",
      "lookup_knowledge",
      "check_availability",
      "book_appointment",
      "reschedule_appointment",
      "cancel_appointment",
      "send_sms",
      "update_contact"
    ],
    "mcp": []
  },
  "guardrails": {
    "max_call_seconds": 900,
    "max_silence_seconds": 20,
    "recording": "off"
  }
}