--- title: "Team Chat & Channels" description: "Enterprise messaging and persistent team collaboration in Ring2All Connect with public/private channels, direct messages, attachments, and thread replies." --- ## 📖 Introduction **Team Chat** in Ring2All Connect delivers persistent, real-time messaging across organizational teams and departments. Integrated natively alongside telephony extensions, team members can collaborate seamlessly through structured channels and private direct messages without requiring fragmented third-party chat software. ![Connect Team Chat](/screenshots/apps/connect/connect-chat.png) --- ## 🎯 User Roles & Key Capabilities | Role | Primary Use Case | Key Capabilities | | :--- | :--- | :--- | | **All Team Members** | Asynchronous communication and quick project check-ins. | Join public channels, send 1:1 direct messages, share images/documents, and react with emojis. | | **Project Coordinators** | Departmental and topic-based discussion management. | Create private channels, manage channel membership, pin important messages, and organize threads. | | **Support & Operations** | Immediate issue escalation and dispatch. | Real-time presence indicators, instant voice/video call escalation directly from any chat conversation. | --- ## 💬 Channel & Message Structure Connect Chat provides three levels of communication channels: ```mermaid graph LR Chat[Connect Chat] --> Pub[📢 Public Channels] Chat --> Priv[🔒 Private Channels] Chat --> DM[💬 Direct Messages] Pub --> P1[General, Announcements, Company-Wide] Priv --> P2[Management, Sales Team, Confidential] DM --> P3[1:1 Colleague Chat & Intercom] ``` ### 1. Public Channels (`#channel`) Visible to all authenticated subscribers within the PBX tenant domain. Ideal for company-wide announcements, general discussions, and cross-functional project updates. ### 2. Private Channels (`🔒 channel`) Restricted to invited members. Topics and message history are shielded from non-members, ensuring strict confidentiality for leadership, human resources, or financial discussions. ### 3. Direct Messages (DMs) Fast, 1:1 private conversations between two extension subscribers. Each direct conversation displays the colleague's real-time telephony presence status (`Available`, `Busy`, `Away`, `Offline`). --- ## 🚀 Key Chat Features 1. **Rich Markdown Formatting**: Supports bold, italic, inline code blocks, formatted code snippets with syntax highlighting, bulleted lists, and quotes. 2. **File & Media Attachments**: Drag-and-drop file sharing for documents (PDF, DOCX, XLSX), images (PNG, JPG, SVG), and audio clips with in-app previews. 3. **Emoji Reactions**: Quickly acknowledge or vote on messages with standard unicode emoji reactions (`👍`, `❤️`, `🎉`, `🚀`, `👀`). 4. **Seamless Escalation to Audio / Video Call**: Located at the top-right header of any chat conversation: * **Call Button (`Phone`)**: Automatically triggers a WebRTC voice call to the colleague's extension. * **Video Button (`Video`)**: Dispatches a private LiveKit video meeting link and rings the participant. 5. **Message Search**: Real-time substring search across active conversation channels and direct history. --- ## 🌐 Omnichannel Contact Center Inbox & Unified Agent Capacity Bar For users who are configured as **Call Center Agents**, **Ring2All Connect Chat** includes the **Omnichannel Contact Center Inbox** tab (`Omnichannel`), enabling agents to handle customer conversations across **WhatsApp, WebChat, Telegram, SMS, Instagram, Facebook Messenger, and Email** alongside live voice calls in a single unified workspace. ### 1. Real-Time Unified Agent Capacity & Presence Bar At the top of the Omnichannel Inbox rail, Connect renders a live telemetry bar synchronized every few seconds with `/ncx/api/v1/ncx/omnichannel/agent-workload/:extension`: - **Global Presence Selector (`AVAILABLE`, `ON_BREAK`, `ACW`, `OFFLINE`)**: Changing presence in Connect immediately triggers `POST /ncx/api/v1/ncx/agents/by-extension/:extension/status`, which synchronizes the agent's status with **FreeSWITCH `mod_callcenter`** (`Available`, `On Break`, `Logged Out`) and updates all assigned queue tier states. - **Global Digital Chat Load Meter (`active / globalMax`)**: Displays the agent's active + reserved digital conversations across all queues combined (e.g., `2/4 Chats`) with a visual utilization progress bar (`0–100%`). - **Voice Call State & Channel Eligibility Badges**: Indicates whether the agent is currently `Voice Idle`, `Ringing`, or `On Call`, and whether voice calls or additional digital chats are currently paused by a queue's **Omnichannel Blending Policy** (`VOICE_PRIORITY`, `DIGITAL_PRIORITY`, `EXCLUSIVE`, `ADAPTIVE_AI`). ### 2. Administrative Policy Enforcement in the Agent Workspace All queue capacity and blending policies configured by the administrator in **PBX → Call Center → Queues** are strictly enforced both in the UI and at the API layer: - **Claim Button Protection**: When viewing an unassigned conversation in the queue pool, the **Claim** button is automatically disabled (with an explanatory tooltip such as *"Agent reached global concurrent chat limit (4/4)"* or *"Queue policy EXCLUSIVE blocks digital chats while agent is on a voice call"*) whenever `can_accept_digital` is `false` for that thread's target queue. - **Atomic Server-Side Validation (`HTTP 409`)**: Clicking **Claim** invokes `POST /ncx/api/v1/ncx/omnichannel/threads/:id/claim`, which acquires an atomic capacity reservation (`tryReserveAgentCapacity`) before assigning the thread, preventing race conditions if two agents click Claim simultaneously. - **Automatic FreeSWITCH Tier Release on Resolve**: Clicking **Resolve** (`POST /ncx/api/v1/ncx/omnichannel/threads/:id/resolve`) immediately decrements the agent's active chat count and re-synchronizes FreeSWITCH `mod_callcenter`, restoring any `Standby` queue tiers back to `Ready` so the agent can immediately receive incoming voice calls. ### 3. Seamless AI-to-Human Handoff Context When an AI Virtual Agent escalates a customer conversation to a human agent (`HANDOFF_REQUESTED` ➔ `HUMAN_HANDLING`): - The Omnichannel routing engine deterministically selects the best eligible human agent using the queue's configured **Digital Routing Strategy** (`LEAST_ACTIVE_CHATS`, `SKILLS_WEIGHTED`, `SLA_BASED`, etc.) and reserves a capacity slot. - The receiving agent in Connect sees the complete prior AI conversation transcript, an **AI Executive Handoff Summary**, detected customer sentiment, CRM contact profile, and SLA priority badge without asking the customer to repeat information. ### 4. Queue Alert (`First-to-Claim`) Banner, Dismissal & Thread Management When an omnichannel conversation escalates to the human queue pool (`waiting_human_claim = true`), the **QUEUE ALERT (FIRST-TO-CLAIM)** banner appears at the top of the **Digital** tab: - **Claim**: Atomically assigns the thread to the clicking agent and transitions the conversation to `HUMAN` handling. - **Dismiss Individual Claim (`✕`)**: Removes a stale or already-handled alert from the First-to-Claim queue banner (`POST /ncx/api/v1/ncx/omnichannel/threads/:id/dismiss-claim`) without deleting the conversation transcript. - **Clear All Claims (`Clear`)**: One-click header action (`POST /ncx/api/v1/ncx/omnichannel/threads/dismiss-all-claims`) that clears all pending First-to-Claim alerts across the banner. - **Delete Thread (`🗑️`)**: Hovering over any Digital conversation card reveals a delete button (`DELETE /ncx/api/v1/ncx/omnichannel/threads/:id`) to permanently remove test or spam threads from the inbox. - **Automatic Cleanup on Resolve**: Clicking **Resolve** on any active thread automatically clears `waiting_human_claim` and transitions the handoff status out of `ESCALATED_TO_HUMAN` so resolved conversations never reappear in the claim banner.