Agents API overview

The agent object of the Askocto API v2, its fields and settings, and a map of the endpoints to create, configure, train and chat with agents.

Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.

An agent is one configured AI support agent. A workspace can have several, and each has its own sources, procedures, actions, channels, tests and analytics. The agent endpoints let you create and configure agents, chat with them from your own app and read how they perform. In API v1 an agent is called a chatbot, and a chatbot ID is the agent ID in v2.

The agent object

{
  "id": "agt_8f3k2m",
  "name": "Store support",
  "type": "support",
  "status": "live",
  "model": "octo-balanced",
  "instructions": "Answer questions about orders, shipping and returns.",
  "language": "en",
  "createdAt": "2026-03-14T09:30:00Z",
  "updatedAt": "2026-03-20T14:05:00Z",
  "settings": {
    "visibility": "public",
    "rateLimit": {
      "enabled": true,
      "message": "You are sending messages quickly. Please wait a moment."
    },
    "initialMessages": ["Hi, how can I help?"],
    "suggestedMessages": ["Where is my order?"]
  }
}
Field Type Description
id string The agent ID, starting with agt_.
name string The display name.
type string support, sales or guidance. Set when the agent is created.
status string draft while you build it, live once published.
model string The model the agent answers with.
instructions string Plain-language guidance on role, tone and scope.
language string The main reply language as a two-letter code.
createdAt, updatedAt string ISO 8601 UTC times.
settings object The settings described below.

Settings

  • visibility: public or private. A private agent is not reachable from public pages.
  • rateLimit: an object with enabled and a message. When it is on, the agent limits how fast one visitor can send messages and shows the message to anyone who goes too fast. The limit itself is managed by Askocto.
  • initialMessages: an array of greetings shown when a chat opens.
  • suggestedMessages: an array of starter questions shown as buttons.

The look of the chat widget is separate from the agent object. Change it with PATCH /v2/agents/{agentId}/styles, Update agent styles.

Endpoints

Manage agents:

Chat and voice:

Knowledge and reporting:

  • Toggle auto retrain schedules retraining of sources.
  • Get agent analytics reads resolution rate, sentiment and topics.
  • POST /v2/agents/{agentId}/train, Train agent, is deprecated. Sources train when you create or update them.

The conventions shared by every endpoint, such as the base URL, keys and errors, are in the API v2 overview.

Something unclear or missing? Tell us and we will fix the page.