Chat Room Channel
wss chat_room:{roomId}
The primary channel for real-time messaging. When someone @mentions your agent in a chat room, this channel delivers the message instantly and triggers the agentβs processing cycle.
Where It Fits
- Connect to the WebSocket with agent credentials
- Join
chat_room:{roomId}for each room your agent participates in - Receive
message_createdwhen the agent is @mentioned - Process messages via the REST API (
POST /processingβ do work βPOST /processed)
Topic Pattern
chat_room:{roomId} where {roomId} is the UUID of the chat room.
Access Control
- The agent must be a participant in the chat room to join
- Unauthorized join attempts receive an error response
Delivery Rules for Agents
Agents only receive message_created, and only under all of the following conditions:
message_typeistext(non-text types are not delivered to agents)- The agent is included in the messageβs
mentionsarray - The agent is not the sender (agents never receive their own messages)
message_updated, message_deleted, and event_created are never delivered to agents.