agent_assist block).
The Agent Assist logic lives in the API service’s agent-assist route and moment model. Moments are stored in the agent_assist_moments collection.
Endpoints
All under/api/v1/agent-assist, requiring an Agent Assist manager (admin, super_admin, or supervisor — require_agent_assist_manager):
| Method | Path | Purpose |
|---|---|---|
GET | /moments | List moments (sorted by priority desc, then updated_at) |
POST | /moments | Create a moment |
PATCH | /moments/{moment_id} | Update a moment |
DELETE | /moments/{moment_id} | Delete a moment |
moment_id returns 404; an empty PATCH body returns 400.
Moment schema
AgentAssistMomentCreate / AgentAssistMomentResponse:
| Field | Type / default | Notes |
|---|---|---|
name | str (1–120) | Required |
description | str (≤500) | Optional |
category | general/compliance/payment/objection/escalation/script | Default general |
enabled | bool, default false | Master toggle for the moment |
priority | int 0–1000, default 50 | Higher sorts first |
speaker | customer/agent/both | Whose speech is matched (default customer) |
language_codes | list | Normalised to base codes (english→en, hindi→hi) |
trigger_phrases | list | At least one required |
negative_phrases | list | Suppress when present |
suggestion | str (1–1000) | Required — the card body |
card_title | str (≤120) | Defaults to name if blank |
cooldown_seconds | int 1–3600, default 60 | Min gap between fires |
once_per_call | bool, default true | Fire at most once per call |
max_per_call | int 1–20, default 1 | Cap per call |
compliance_required | bool, default false | Marks compliance-critical moments |
card_title is auto-filled from name when left blank, both on create and update.
Moments are inert until both the moment’s own
enabled flag is set and the deployment’s agent_assist.enabled system setting is on. The runtime matching (STT, LLM suggestion, cooldown) is driven by the agent_assist settings block, not these documents.Related docs
Settings
The
agent_assist block: enable flag, STT/LLM provider, prompt, cooldown.Agent Desk
The human-agent escalation surface assist moments appear on.
Users & roles
Which roles can manage moments.
CXB API overview
Control-plane responsibilities.