---
title: "Create Agent In Chat Group"
method: POST
path: "/api/v1/chat-ai/agent-groups/{group_id}/agents"
tags: ["chat-ai", "chat_agent_groups"]
---

# Create Agent In Chat Group

`POST /api/v1/chat-ai/agent-groups/{group_id}/agents`

Create a specialist agent and append it to the group in one call.

## Path parameters

- `group_id` string, uuid, required

## Request body

- ChatAgentCreateInGroup — Create a new specialist chat agent and add it to a group in one call. ``name`` is the new agent's (tenant-unique) name; ``label``/``description`` describe the group entry the head routes by. ``system_prompt``/``model`` seed the agent and fall back to the ``ChatAgent`` column defaults when omitted.
  - `name` string, required
  - `label` string, required
  - `description` string, nullable
  - `system_prompt` string, nullable
  - `model` string, nullable

## Response `200`

Successful Response

- ChatAgentGroupRead — Schema for reading a ChatAgentGroup.
  - `id` string, uuid, required
  - `name` string, required
  - `entries` ChatAgentGroupEntry[]
    - `label` string, required
    - `description` string, nullable
    - `chat_agent_id` string, uuid, required
    - `dispatch_config` ChatDispatchConfig — Operator-configurable dispatch behavior for a specialist entry. Lives on the TARGET entry — it describes how the head agent should dispatch TO this specialist. Mirrors the text surface's ``DispatchScenarioConfig``.
      - `condition` string, nullable
      - `pre_instruction` string, nullable
      - `post_instruction` string, nullable
  - `enabled` boolean
  - `tenant_id` string, uuid, required

## Other responses

- `400` — A chat agent with this name already exists in the tenant
- `403` — Not a platform super-admin (or lacks VIEW_CHAT)
- `404` — Chat agent group not found
- `422` — Validation Error

---

[API](https://skmtc.dev/getanana/apis/cleon-api.md) · [All operations](https://skmtc.dev/getanana/apis/cleon-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getanana/cleon-api/revisions/fbb95eac3965/schema)
