AI Service Hub Module Documentation
Table of Contents
Section titled “Table of Contents”- Navigation & Access
- Screenshots & Visual Interface
- 🎯 User Roles & Key Capabilities
- Module Overview (Technical)
- Module Overview (Commercial/Business)
- Module Overview (End User/Administrator)
- Architectural Principles: “AI as a Plus” & “Zero Clutter”
- Tabs & Configuration Sections
- Cascading Profile Resolution Hierarchy
- Settings Reference
- Model Context Protocol (MCP) & External AI Integration
- Common Scenarios & Best Practices
- Troubleshooting & Diagnostics
- Glossary
Navigation & Access
Section titled “Navigation & Access”To access the AI Service Hub module:
- Log in to the Ring2All Web Portal (
https://<domain-or-ip>/login). - In the left navigation sidebar, expand Administration.
- Under AI Integration, click AI Service Hub (
/admin/ai-integration/service-hub). - Select the target telephony domain from the global context switcher to manage domain-specific AI bindings.
- Navigate through the 4 centralized management tabs: System Services, Admin Users, Extensions, and External AI (Claude / ChatGPT).
Screenshots & Visual Interface
Section titled “Screenshots & Visual Interface”System Services AI Orchestration (Tab 1)
Section titled “System Services AI Orchestration (Tab 1)”Central control plane managing background automated telephony services: Post-Call CDR Transcription & Sentiment Analysis, Smart Visual Voicemail with key takeaway extraction, and Neural System Text-to-Speech (TTS) for IVRs and greetings. Each service is controlled by a dedicated card with our signature platform Toggle switch, AI Profile selector, and the universal bottom <FixedActionBar> for saving or reverting changes.

Administrative Users & AI Assistant Access (Tab 2)
Section titled “Administrative Users & AI Assistant Access (Tab 2)”Per-user AI enablement matrix binding specific Large Language Model reasoning profiles to administrative accounts for the Platform AI Assistant (MCP). Accounts with no profile assigned automatically hide the AI Assistant interface widget.

Extensions & Portal AI Assignment (Tab 3)
Section titled “Extensions & Portal AI Assignment (Tab 3)”Bulk and individual assignment panel linking corporate chatbots and live agent assist models to PBX extension ranges, departments, and user portal accounts.

External AI & Subscriptions Connector - BYOS (Tab 4)
Section titled “External AI & Subscriptions Connector - BYOS (Tab 4)”Unified Bring Your Own Subscription (BYOS) integration panel allowing administrators and operators to connect Claude Desktop, ChatGPT Plus/Team Custom GPTs, and Cursor IDE directly to Ring2All PBX via Model Context Protocol (MCP) SSE and OpenAPI 3.1 Actions at $0 additional API key cost.

🎯 User Roles & Key Capabilities
Section titled “🎯 User Roles & Key Capabilities”| Role | Access Level | Responsibilities & Capabilities |
|---|---|---|
| PBX Super Administrator | Full Access (RW) |
Map domain-level background AI capabilities (smart voicemail, CDR sentiment, neural TTS), assign AI Assistant profiles to admins, and configure extension ranges. |
| Telephony Operations Manager | Domain Scoped (RW) |
Toggle AI feature enablement per telephony domain, configure fallback modes (traditional, retry, drop), and inspect token consumption. |
| Tenant Administrator | Portal View (RO) |
Review which telephony services (smart voicemail, call transcription) are AI-augmented within their subscribed tenant plan. |
| Platform AI Assistant / MCP Agent | Orchestration Audit (RO) |
Execute get_ai_service_hub_status to audit active domain mappings, model profiles, and traditional fallback failover states. |
1. Module Overview (Technical)
Section titled “1. Module Overview (Technical)”What Is the AI Service Hub?
Section titled “What Is the AI Service Hub?”The AI Service Hub is the centralized control plane that orchestrates all Artificial Intelligence capabilities across Ring2All PBX. Instead of dispersing AI toggles across dozens of disparate menus (voicemails, IVRs, CDRs, extensions, firewall), the AI Service Hub provides a single, unified, multi-domain control center.
Architecture
Section titled “Architecture”┌────────────────────────────────────────────────────────────────────────────────────────┐│ AI Service Hub Central Control Plane │├────────────────────────────────────────────────────────────────────────────────────────┤│ ││ Domain Context (SIP domains store) ││ ┌──────────────────────────────────────────────────────────────────────────────────┐ ││ │ Domain: ring2all.xyz (tenant_id: 1) │ ││ └────────────────────────────────────────┬─────────────────────────────────────────┘ ││ │ ││ ┌───────────────────────────────────┼────────────────────────────────────┐ ││ ▼ ▼ ▼ ││ ┌────────────────────────┐ ┌─────────────────────────┐ ┌──────────────────┐ ││ │ 1. System Services │ │ 2. Admin Users │ │ 3. Extensions │ ││ ├────────────────────────┤ ├─────────────────────────┤ ├──────────────────┤ ││ │ • CDR Summary & STT │ │ • SuperAdmin -> GPT-4o │ │ • Default Chatbot│ ││ │ • Smart Voicemail │ │ • Support -> Qwen 2.5 │ │ • Live Assist │ ││ │ • Neural TTS Engine │ │ • Billing -> Claude 3.5 │ │ • Dept Overrides │ ││ │ • (Fixed Action Bar) │ │ • Operator -> [None] │ │ • Ext Range 1000 │ ││ └────────────────────────┘ └─────────────────────────┘ └──────────────────┘ ││ │ │ │ ││ ▼ ▼ ▼ ││ ┌──────────────────────────────────────────────────────────────────────────────────┐ ││ │ Resolved AI Profiles (AI reasoning profiles) via Multi-Provider API Layer │ ││ │ [OpenAI Realtime] [Claude 3.5] [Whisper Large] [LM Studio / Local GPU Cluster] │ ││ └──────────────────────────────────────────────────────────────────────────────────┘ ││ │└────────────────────────────────────────────────────────────────────────────────────────┘Database Persistence
Section titled “Database Persistence”| Table | Purpose |
|---|---|
| AI service mappings | Domain-level service toggles and profile foreign keys (domain_id, service_key, ai_profile_id, is_enabled, config, fallback_mode). |
ai_profile_id (administrative users store) |
User-specific AI Assistant LLM profile assignment. |
ai_agent_id (SIP extensions store) |
Extension-level default chatbot or voice agent binding. |
2. Module Overview (Commercial/Business)
Section titled “2. Module Overview (Commercial/Business)”Business Value
Section titled “Business Value”- Zero Fragmented Billing: Consolidates AI consumption and profile policies in one place.
- Tiered Enterprise Packaging: Service providers can sell AI packages as premium add-ons per domain or per user without altering core PBX infrastructure.
- Cost Predictability: Set lightweight models (e.g. GPT-4o-mini or local Ollama) for routine tasks like voicemail transcription, reserving flagship frontier models for executive AI Assistant users.
3. Module Overview (End User/Administrator)
Section titled “3. Module Overview (End User/Administrator)”Administrators can:
- Turn individual AI capabilities on or off with instantaneous live effect using custom platform toggles.
- Select which underlying AI profile (e.g. OpenAI GPT-4o vs on-premise Whisper/Ollama) drives each PBX feature.
- Restrict Platform AI Assistant access exclusively to authorized system engineers.
- Push default customer service chatbots to entire call center groups with a single click.
- Save or revert changes safely using the persistent bottom
<FixedActionBar>.
4. Architectural Principles: “AI as a Plus” & “Zero Clutter”
Section titled “4. Architectural Principles: “AI as a Plus” & “Zero Clutter””Principle 1: “AI as a Plus” (Telephony Independence)
Section titled “Principle 1: “AI as a Plus” (Telephony Independence)”- Telephony is Deterministic: Core SIP signaling, IVRs, ring groups, and dialplans in Telephony Server function autonomously without any internet or AI connectivity.
- Graceful Degradation: If an AI provider experiences latency or an outage, calls fall back instantly to traditional PBX handling (
fallback_mode: traditional) within $< 800\text{ms}$.
Principle 2: “Zero Clutter” (Conditional UI Rendering)
Section titled “Principle 2: “Zero Clutter” (Conditional UI Rendering)”- If an AI service or AI Assistant profile is inactive for a user or tenant, all corresponding buttons, widgets, modals, and badges are completely hidden from the user interface.
- No broken placeholders or disabled buttons appear to non-AI subscribers.
5. Tabs & Configuration Sections
Section titled “5. Tabs & Configuration Sections”Tab 1: System Services
Section titled “Tab 1: System Services”- CDR Analytics & Transcription: Performs dual-channel diarized speech-to-text, call summarization, and customer sentiment scoring on completed recordings.
- Smart Voicemail: Transcribes incoming audio messages and generates concise summaries with key takeaways and urgent action items delivered via email and user portal.
- System Text-to-Speech (TTS): High-fidelity neural voice synthesis engine powering dynamic IVR menus, auto-attendant greetings, and time condition announcements on the fly.
- Bottom Fixed Action Bar: Standard fixed action controls at the bottom of the viewport (
Save ChangesandCancel) allowing administrators to persist configuration or restore defaults cleanly without page jumping.
Tab 2: Admin Users (Platform AI Assistant)
Section titled “Tab 2: Admin Users (Platform AI Assistant)”- Default AI Assistant Profile: Global baseline LLM profile for administrators without individual overrides.
- User Authorization Table: Lists system operators with individual profile assignments, active MCP tools, and query rate caps.
Tab 3: Extensions & User Portal
Section titled “Tab 3: Extensions & User Portal”- Default Web Chatbot: Assigns the primary virtual assistant available in the web portal.
- Live Agent Assist: Enables real-time transcription, CRM knowledge retrieval, and suggested answers in the Switchboard console.
- Mass Range Provisioning: Applies AI policies across extension batches (e.g.
1000-1099).
Tab 4: External AI & Subscriptions Connector (BYOS)
Section titled “Tab 4: External AI & Subscriptions Connector (BYOS)”- Bring Your Own Subscription (BYOS): Eliminates the requirement to fund pay-as-you-go developer API tokens. Operators and engineers link their existing personal or enterprise subscriptions (Claude Pro/Team, ChatGPT Plus/Team, Cursor Pro) directly to Ring2All PBX at $0 additional API cost.
- Ergonomic Single-Box Architecture: Features an all-in-one view that completely eliminates vertical scrolling on standard desktop displays (1600x1000). Includes top client selector pills (
Claude Desktop,ChatGPT Actions,Cursor / VS Code), dynamic copy actions, and embedded token management. - Native MCP Server-Sent Events (SSE): Establishes low-latency, persistent streaming over
GET /api/mcp/sseandPOST /api/mcp/messagesusing the official Model Context Protocol SDK. - Curated OpenAPI 3.1.0 Actions Specification: Automatically serves an optimized schema at
GET /api/mcp/openapi.jsonprioritizing core telephony tools (extensions, active calls, call bridging, transfer, hangup, CDR analytics, and security audits) tailored strictly within ChatGPT’s custom action limits. - Personal Access Tokens (PAT): Cryptographically secured tokens prefixed with
ak_mcp_...and bound to the operator’s authorizedtenant_idand domain context. Offers selectable expiration windows (30 days, 90 days, 1 year, or never) and one-click revocation. - 1-Click Configuration Synthesizer: Generates pre-populated JSON configurations displaying exact OS paths (
~/Library/Application Support/Claude/claude_desktop_config.jsonon macOS and%APPDATA%\Claude\claude_desktop_config.jsonon Windows) with the server’s public URL and bearer token ready to copy.
6. Cascading Profile Resolution Hierarchy
Section titled “6. Cascading Profile Resolution Hierarchy”When an event requires AI processing, Ring2All resolves the target profile in $< 1\text{ms}$:
1. Does the specific Extension or User have an explicit profile assigned? ├── YES ➔ Use Extension/User Profile └── NO ➔ 2. Does the Domain have an active mapping in AI Service Hub? ├── YES ➔ Use Domain Service Profile └── NO ➔ 3. Standard Non-AI PBX Operation (Traditional Fallback)7. Settings Reference
Section titled “7. Settings Reference”Domain AI Service Mappings
Section titled “Domain AI Service Mappings”| Parameter | Type | Default | Description |
|---|---|---|---|
service_key |
String | Required | Unique identifier (natural_ivr, smart_voicemail, cdr_summary, telephony_guard, system_tts). |
ai_profile_id |
Integer | Nullable | References AI reasoning profiles(id). |
is_enabled |
Boolean | false |
Master toggle for the specific domain service. |
fallback_mode |
Enum | traditional |
Strategy when AI fails: traditional, retry, or drop. |
config |
JSONB | {} |
Service-specific parameters (e.g. confidence_threshold, sentiment_detection). |
External AI Access Tokens (Personal Access Tokens - PAT)
Section titled “External AI Access Tokens (Personal Access Tokens - PAT)”| Parameter | Type | Default | Description |
|---|---|---|---|
name |
String | Required | Friendly description or client identifier (e.g. Claude Desktop Rodrigo Laptop, Team ChatGPT GPT-4o). |
expires_in |
String | 90d |
Lifetime duration: 30d (30 days), 90d (90 days, Recommended), 365d (1 year), or never. |
key_prefix |
String | ak_mcp_... |
Distinctive 11-character token prefix preserved for operator identification in the UI. |
token_hash |
String | System | Cryptographic hash of the raw secret stored securely in the database. |
client_type |
Enum | claude |
Integration preset (claude, chatgpt, cursor). |
Model Context Protocol (MCP) & External AI Integration
Section titled “Model Context Protocol (MCP) & External AI Integration”The AI Service Hub module exposes domain-level orchestration endpoints to both internal AI assistants and external AI environments through the Model Context Protocol (MCP) and OpenAPI 3.1.0 Actions, allowing autonomous agents to query, audit, and command PBX operations.
Multi-Client Connectivity Architecture
Section titled “Multi-Client Connectivity Architecture”┌────────────────────────────────────────────────────────────────────────────────────────┐│ Ring2All External AI & Subscription Connectors │├────────────────────────────────────────────────────────────────────────────────────────┤│ ││ ┌────────────────────────┐ ┌────────────────────────┐ ┌────────────────────────┐ ││ │ Claude Desktop │ │ ChatGPT Plus / Team │ │ Cursor / VS Code │ ││ │ (Native Anthropic MCP)│ │ (Custom GPT Actions) │ │ (IDE AI Assistant MCP)│ ││ └───────────┬────────────┘ └───────────┬────────────┘ └───────────┬────────────┘ ││ │ │ │ ││ HTTPS SSE Stream OpenAPI 3.1 REST HTTPS SSE Stream ││ /api/mcp/sse /api/mcp/action/:tool /api/mcp/sse ││ Authorization: Bearer ak_...Authorization: Bearer ak_...Authorization: Bearer ak_││ │ │ │ ││ ▼ ▼ ▼ ││ ┌────────────────────────────────────────────────────────────────────────────────┐ ││ │ Fastify Unified Auth & Routing Layer │ ││ │ • Public Schema Generator: GET /api/mcp/openapi.json │ ││ │ • Native MCP SSE Transport: GET /api/mcp/sse + POST /api/mcp/messages │ ││ │ • Direct Action Gateway: POST /api/mcp/action/:toolName │ ││ │ • Personal Access Token (PAT) Validator (user API keys vault ak_mcp_...) │ ││ └───────────────────────────────────────┬────────────────────────────────────────┘ ││ │ ││ ▼ ││ ┌────────────────────────────────────────────────────────────────────────────────┐ ││ │ PBX Multi-Tenant Tool Execution Sandbox (ESL / DB) │ ││ │ list_extensions | get_active_calls | originate_call | transfer_call | cdrs │ ││ └────────────────────────────────────────────────────────────────────────────────┘ ││ │└────────────────────────────────────────────────────────────────────────────────────────┘Available MCP Tools
Section titled “Available MCP Tools”| Tool Name | Scope | Description |
|---|---|---|
get_ai_service_hub_status |
Domain AI Mapping (RO) |
Retrieves centralized AI Service Hub mappings for a domain, showing which AI Profiles and providers power CDR analytics, smart voicemail, system TTS, AI assistant, and chatbots. |
Tool Schemas & Payloads
Section titled “Tool Schemas & Payloads”get_ai_service_hub_status
Section titled “get_ai_service_hub_status”{ "name": "get_ai_service_hub_status", "description": "Retrieves centralized AI Service Hub mappings for a domain, showing which AI Profiles and providers power CDR analytics, smart voicemail, system TTS, AI assistant, and chatbots.", "parameters": { "type": "object", "properties": { "domain_id": { "type": "number", "description": "Optional telephony domain ID (defaults to primary domain of active tenant)." } } }}Realistic Execution Response:
{ "success": true, "data": { "domainId": 1, "servicesCount": 6, "mappings": [ { "serviceKey": "cdr_analytics", "isEnabled": true, "fallbackMode": "traditional", "profileName": "OpenAI Recording Transcriber & Sentiment Analyzer", "model": "gpt-4o-mini", "profileType": "llm", "providerName": "Primary OpenAI Account", "providerType": "openai" }, { "serviceKey": "smart_voicemail", "isEnabled": true, "fallbackMode": "traditional", "profileName": "Deepgram Nova-2 Fast Transcription", "model": "nova-2-general", "profileType": "stt", "providerName": "Deepgram Speech Cloud", "providerType": "deepgram" }, { "serviceKey": "system_tts", "isEnabled": true, "fallbackMode": "traditional", "profileName": "ElevenLabs Studio Voice Generator", "model": "eleven_multilingual_v2", "profileType": "tts", "providerName": "ElevenLabs Voice Cloud", "providerType": "elevenlabs" }, { "serviceKey": "admin_copilot_default", "isEnabled": true, "fallbackMode": "traditional", "profileName": "Claude 3.5 Sonnet Telephony AI Assistant", "model": "claude-3-5-sonnet", "profileType": "llm", "providerName": "Anthropic Enterprise", "providerType": "anthropic" }, { "serviceKey": "extension_chatbot_default", "isEnabled": true, "fallbackMode": "traditional", "profileName": "GPT-4o Mini Assistant", "model": "gpt-4o-mini", "profileType": "llm", "providerName": "Primary OpenAI Account", "providerType": "openai" }, { "serviceKey": "switchboard_live_assist", "isEnabled": false, "fallbackMode": "traditional", "profileName": "None (Disabled)", "model": null, "profileType": null, "providerName": null, "providerType": null } ] }}Bilingual Natural Language Prompt Examples
Section titled “Bilingual Natural Language Prompt Examples”English Prompts
Section titled “English Prompts”- “AI Assistant, show me all active AI Service Hub mappings for the primary telephony domain.”
- “Which AI profile and provider are currently powering Smart Voicemail transcription?”
- “Verify if CDR analytics and sentiment scoring are enabled on domain ID 1.”
Spanish Prompts
Section titled “Spanish Prompts”- “Asistente IA, muéstrame el estado y mapeos del AI Service Hub para el dominio principal.”
- “¿Qué modelo y proveedor están configurados para la transcripción inteligente del buzón de voz?”
- “Verifica si el análisis de sentimiento en CDRs está activo en el dominio 1.”
Enterprise Safeguards & Execution Boundaries
Section titled “Enterprise Safeguards & Execution Boundaries”- Zero Clutter Enforcement: If a service key has
isEnabled: false, corresponding AI action buttons are completely removed from the user portal and switchboard to prevent UI clutter. - Deterministic Multi-Tenant Scoping: Domain mappings are strictly bound to numeric
domain_idand verified against the user’s authorizedtenant_id. - Graceful Traditional Fallback: If an external AI provider experiences rate-limiting or outages, calls immediately proceed through traditional Telephony dialplans without failure.
8. Common Scenarios & Best Practices
Section titled “8. Common Scenarios & Best Practices”- Hybrid Cost Optimization: Use cloud OpenAI Realtime for VIP voice agents, while routing high-volume voicemail transcriptions to an internal on-premise Whisper/Ollama server.
- Strict Multi-Tenant Isolation: Configure Domain A with OpenAI Enterprise and Domain B with local LM Studio without data crossover.
- Zero-Cost Administration with Personal Subscriptions (BYOS): Field technicians and tier-3 support engineers can query extension statuses, initiate test calls, and inspect recent CDRs straight from their personal Claude Desktop application or mobile ChatGPT Plus app without incurring additional enterprise API billing or requiring credit cards.
9. Troubleshooting & Diagnostics
Section titled “9. Troubleshooting & Diagnostics”- AI Assistant Widget Not Visible: Verify in Tab 2 that the logged-in administrator has an active
ai_profile_idassigned. - Voicemail Not Transcribing: Check that
smart_voicemailis enabled in Tab 1 and that the assigned AI Profile has valid API credentials in AI Providers. - Claude Desktop Fails to Connect to MCP Server:
- Verify that the SSE endpoint URL matches your server address:
https://<domain-or-ip>/api/mcp/sse. - Check that the configuration file includes
headers: { "Authorization": "Bearer ak_mcp_..." }with an active PAT. - For self-signed certificates in local environments, ensure your local Node or Claude environment trusts the root authority or run with valid TLS.
- Verify that the SSE endpoint URL matches your server address:
- ChatGPT Custom GPT Action Import Error (“Too many operations”):
- ChatGPT enforces an action limit of approximately 30-40 operations per custom GPT.
- Ring2All PBX serves a curated, prioritized schema of the top 24 telephony tools at
/api/mcp/openapi.json. Ensure you use this dedicated endpoint rather than a complete raw dump.
- External Client Receives 401 Unauthorized:
- Verify that the token has not passed its expiration date in Tab 4.
- Ensure the token was not revoked. If needed, click Generate New Token, copy the new string, and update your client’s bearer credentials.
10. Glossary
Section titled “10. Glossary”- AI Service Hub: Centralized orchestration module for domain-level AI capabilities.
- AI as a Plus: Design standard ensuring uninterrupted PBX call flows when AI is disabled or unreachable.
- BYOS (Bring Your Own Subscription): Architectural model allowing users to connect personal or team AI subscriptions (ChatGPT Plus, Claude Pro, Cursor Pro) with $0 developer API billing.
- MCP SSE (Server-Sent Events): High-performance HTTP streaming transport defined by the Model Context Protocol for low-latency tool execution.
- OpenAPI Actions: Standardized RESTful schema specification utilized by ChatGPT Custom GPTs to interface with external APIs.
- Personal Access Token (PAT): Cryptographic secret (
ak_mcp_...) issued to human operators to securely authenticate external AI clients with PBX domain isolation. - Zero Clutter: Frontend design paradigm suppressing AI UI controls when features are unassigned.

