createAiAgent
Create an AI Employee agent.
Creates a new AI Employee agent with an initial DRAFT version. Lifecycle:
- Call
publishAiAgent(agentId)after creation or draft updates
Create an AI Employee agent.
Creates a new AI Employee agent with an initial DRAFT version. Lifecycle:
publishAiAgent(agentId) after creation or draft updates| Name | Type | Required | Description |
|---|---|---|---|
agent_type | object | No | |
agent_subtype | object | No | |
name | string | Yes | |
description | string | No | |
prompt_config | object | No | |
tools | AgentToolDto[] | No | |
skill_ids | integer[] | No | |
skills_inline | InlineSkillDto[] | No | Agent-owned inline skills. Full-array replacement semantics. |
capabilities | string | Yes | Free-form description of what the agent can do; seeds future identity/goal generation. Versioned. Required and non-empty |
adapter_type | object | No | |
adapter_config_template | object | No | Per-adapter free-form configuration template. Snapshotted into each AA run’s adapter_config |
max_concurrent_runs | integer | No | Per-agent concurrency cap. Omitted or explicit-null → leave the column NULL; the drainer |
workspace_ids | integer[] | No | Workspaces to add the agent’s shadow user to. Live-write to workspace_members in the same |
manager_user_id | integer | No | Reporting manager for the agent’s shadow user. Live-write to User.manager. Null → |
icon | object | No |