Create a custom agent
POST /api/agent-definitions/custom
Creates a new custom specialist agent. Custom agents are automatically assigned the ‘specialist’ role and become available for the orchestrator to dispatch during conversation processing. Connect the agent to MCP servers to give it access to your business system tools. After creation, the MCP hub cache is invalidated so the new agent is immediately available.
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”object
Human-readable name for the agent.
Example
Shipping TrackerWhat this agent does. The orchestrator reads this to decide when to dispatch the agent, so be specific about capabilities.
Example
Looks up shipping status, delivery dates, and tracking information using the logistics MCP server.LLM model ID. Omit to use the platform default.
Example
claude-sonnet-4-6Additional behavioral instructions appended to the agent’s system prompt.
Example
Always convert tracking dates to the customer's local timezone.MCP server connections and the specific tools this agent can access.
object
ID of a registered MCP connection.
Tool names this agent can call on the connection.
Example
[ "get_shipment_status", "get_tracking_url"]Responses
Section titled “ Responses ”The custom agent was created and is immediately available to the orchestrator.
An agent definition configures an agent that the orchestrator can dispatch during conversation processing. Specialist agents execute domain tasks via the MCP tools they are connected to. System agents are platform-provided and cannot be deleted, though their instructions can be customised.
object
Unique identifier for the agent definition.
Example
ag1a2b3c-5678-9abc-def0-1234567890abThe tenant this agent belongs to.
Example
a0b1c2d3-4567-89ab-cdef-0123456789abInternal name used to identify the agent in logs and workflow execution records.
Example
shipping_trackerHuman-readable name shown in the dashboard.
Example
Shipping TrackerDescribes what this agent does. The orchestrator reads this description when deciding whether to dispatch to this specialist.
Example
Looks up shipping status, delivery dates, and tracking information using the logistics MCP server.Whether this is a platform system agent or a tenant specialist agent. Finer-grained behaviour is carried by the agent’s role slug, which is not exposed on this endpoint.
Example
specialistThe LLM model ID used by this agent. When null, the platform default is used.
Example
claude-sonnet-4-6Additional instructions that guide this agent’s behavior. Appended to the system prompt. Use this to customize how the agent interprets data, formats responses, or handles edge cases.
Example
Always convert tracking dates to the customer's local timezone. If the shipment is delayed, proactively mention the estimated new delivery date.The MCP server connections this agent has access to, along with which specific tools it can invoke on each connection.
object
Reference to a registered MCP connection.
Example
mc1a2b3c-5678-9abc-def0-1234567890abList of tool names this agent is permitted to call on the connection. Empty array means no tools are allowed.
Example
[ "get_shipment_status", "get_tracking_url"]Timestamp when the agent was created.
Example
2026-02-15T10:00:00.000ZTimestamp when the agent was last updated.
Example
2026-03-20T16:30:00.000ZValidation error. Required fields are missing or invalid.
Standard error response returned by all endpoints on failure.
object
A human-readable error message describing what went wrong.
Example
Conversation not found