Attendance Queue Module π‘ BETA
The attendance module is the botattendance crate: it holds the queue, attendant status, assignment and transfer routes, plus a keyboard/WebSocket surface for attendants.

When to use
- Routing a conversation to a human attendant by skill or manual assignment.
- Inspecting queue and attendant state through the HTTP routes.
- Wiring an attendant surface to bot-server-side notifications.
Before you start
| Check |
Requirement |
| Build |
The attendance feature is compiled into the server. |
| State |
Queue and attendant records come from the database through Diesel; the master key protects encrypted fields. |
| Ports |
API 8080, suite 3000, cloud 4000, login 5000 (root AGENTS.md). |
| Authority |
botserver/crates/botattendance/src/routes.rs, queue_handlers.rs and keyword_services.rs. |
Steps
- Confirm the module is compiled in and the database tables are present.
- Use the route inventory from
routes.rs; do not invent an endpoint from a general idea of a queue.
| Route |
Method |
Purpose |
/api/attendance/queue |
GET |
List queue items |
/api/attendance/attendants |
GET |
List attendants |
/api/attendance/assign |
POST |
Assign a conversation |
/api/attendance/assign-by-skill |
POST |
Assign by skill |
/api/attendance/transfer |
POST |
Transfer a conversation |
/api/attendance/resolve |
POST |
Resolve a conversation |
/api/attendance/insights/:session_id |
GET |
Session insights |
/api/attendance/kanban |
GET |
Kanban view |
/api/attendance/respond |
POST |
Attendant reply |
/api/attendance/ws |
GET |
Attendant WebSocket |
/api/attendance/webhooks |
GET/POST |
List or create webhooks |
/api/attendance/webhooks/:id |
GET/PUT/DELETE |
Manage one webhook |
/api/attendance/webhooks/:id/test |
POST |
Test a webhook |
- The
llm feature adds /api/attendance/llm-assist/* routes for tips, polish, smart replies, summaries and sentiment. A build without that feature does not expose them.
- Configure the keywords the module can invoke through
KeywordConfig and KeywordParser; the crate's AttendanceCommand and ParsedCommand types are the authority for what can be parsed. Do not add a command name that the parser does not know.
Verify
| Check |
Expected result |
| Queue list |
GET /api/attendance/queue returns the current items. |
| Assignment |
A transferred conversation appears under the new attendant. |
| Attendant reply |
A response sent through /api/attendance/respond reaches the conversation. |
| WebSocket |
/api/attendance/ws connects and receives updates. |
| Webhook test |
/api/attendance/webhooks/:id/test reaches the configured target. |
| Health |
curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/health β 200. |
Roll back
- Remove the webhook or routing change you added through the same route family.
- Reassign or resolve any conversation you moved, so the queue returns to its previous state.
- Re-run the Verify table. Do not leave a test webhook enabled after the check.
CRM Automations
Follow-up, collections, scheduling and sales automations are not separate endpoint families in this crate. Implement them with the existing keyword services and template/scheduling keywords, against a CRM template rather than an invented route. See the CRM template, SEND TEMPLATE, SET SCHEDULE and lead scoring keywords. Any LLM-assisted behaviour is feature-gated and must be confirmed in the build before it is advertised.