Skip to content

Web Chatbots Module Documentation

8 min readUpdated: Sep 26, 2026
View as Markdown
  1. Navigation & Access
  2. Screenshots & Visual Interface
  3. 🎯 User Roles & Key Capabilities
  4. Module Overview (Technical)
  5. Module Overview (Commercial/Business)
  6. Module Overview (End User/Administrator)
  7. Chatbot Persona & Behavioral Configuration
  8. Knowledge Base & Retrieval-Augmented Generation (RAG)
  9. Tool Profiles & Action Execution
  10. Human Agent Handoff & Escalation
  11. Settings Reference
  12. Common Scenarios & Best Practices
  13. Model Context Protocol (MCP) AI Integration
  14. Troubleshooting & Diagnostics
  15. Glossary

To access the Web Chatbots module:

  1. Log in to the Ring2All Web Portal (https://<domain-or-ip>/login).
  2. In the left navigation sidebar, expand Administration.
  3. Under AI Integration, click Web Chatbots (/admin/ai-integration/chatbots).
  4. Review registered interactive web chatbots, default status badges, assigned LLM profiles, and activity telemetry.
  5. Click + Add to create a new conversational web chatbot (/admin/ai-integration/chatbots/new), or edit existing assistant personas and knowledge bases.

Central repository displaying active web chat assistants, linked AI profiles, default corporate bot badges, and quick actions for testing, prompt tuning, or session review. Web Chatbots Directory

Multi-section configuration editor for naming the assistant, selecting foundation models, crafting system prompts, setting response styles, binding RAG knowledge bases, and attaching operational tool profiles. Web Chatbot Configuration Form


Role Access Level Responsibilities & Capabilities
PBX Super Administrator Full Access (RW) Provision and configure interactive web chatbots, assign foundation AI profiles and RAG vector indexes, and designate the default corporate copilot.
Customer Experience Manager Persona & Prompt Design (RW) Author system prompts, calibrate conversational personas and tones, review chat session satisfaction ratings, and attach operational tool profiles.
Knowledge Base Specialist RAG Management (RW) Ingest technical manuals, policy PDFs, and FAQs into vector storage (pgvector), optimizing chunk sizes and similarity thresholds.
AI Platform Copilot / MCP Agent Diagnostic Inspection (RO) Execute get_ai_chatbot_status to evaluate active chatbot personas, system instructions, and user or extension copilot bindings.

Web Chatbots are intelligent text-based conversational agents embedded directly within the Ring2All Web Portal, User Portal, and external website widgets. Powered by state-of-the-art LLMs (OpenAI GPT-4o, Anthropic Claude, or local Ollama/LM Studio models), chatbots deliver 24/7 automated tier-1 customer support, internal company knowledge retrieval, and automated workflow triggers.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Web Chatbot Architecture & Workflow β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ β”‚
β”‚ User Chat Session (Web Portal / External Widget) β”‚
β”‚ β”‚ β”‚
β”‚ β–Ό WebSocket / REST API β”‚
β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚ β”‚ Fastify Web Chat Engine (ring2all/api) β”‚ β”‚
β”‚ β”‚ β”œβ”€ Session Context Manager (Redis / PostgreSQL) β”‚ β”‚
β”‚ β”‚ β”œβ”€ System Persona & Boundary Injection β”‚ β”‚
β”‚ β”‚ └─ Prompt Assembly Pipeline β”‚ β”‚
β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚ β”‚ β”‚
β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚ β–Ό β–Ό β–Ό β”‚
β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚ β”‚ Knowledge Base (RAG) β”‚ β”‚ Tool Profile Execution β”‚ β”‚ AI Provider & Profile β”‚ β”‚
β”‚ β”‚ pgvector cosine match β”‚ β”‚ MCP Tool Dispatcher β”‚ β”‚ GPT-4o / Claude 3.5 β”‚ β”‚
β”‚ β”‚ Internal manuals & PDFs β”‚ β”‚ CRM, Ticketing, Billing β”‚ β”‚ Streaming Token Feed β”‚ β”‚
β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚ β”‚ β”‚ β”‚ β”‚
β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚ β–Ό β”‚
β”‚ Interactive Response Delivered to Caller / Customer β”‚
β”‚ β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

  • 24/7 Omnichannel First Response: Resolves up to 70% of routine inquiries without human intervention.
  • Seamless Escalation to PBX: Enables callers to escalate from web chat directly into a SIP ring group or queue.
  • White-Label Corporate Assistants: Customize tone, brand guidelines, and knowledge scope for each enterprise tenant.

Administrators can:

  1. Create and manage multiple specialized chatbots (e.g. Sales Concierge, IT Helpdesk, Billing Inquiries).
  2. Designate one chatbot as the Default Corporate Assistant for user portals.
  3. Upload PDF documents, company handbooks, and FAQs to ground responses in verified facts.
  4. Review chat history to audit agent answers and identify knowledge gaps.

  • Agent Name & Display: Public-facing name and title shown in the chat window.
  • Tone & Persona: Selection of communication styles (professional, friendly, calm, enthusiastic).
  • System Prompt (Instruction Matrix): Guardrails defining what the bot can and cannot discuss.
  • Response Length: Choose between brief (quick answers) and detailed (in-depth explanations).

5. Knowledge Base & Retrieval-Augmented Generation (RAG)

Section titled β€œ5. Knowledge Base & Retrieval-Augmented Generation (RAG)”
  1. Document Upload: Ingest company documentation in .pdf, .docx, .md, or .txt formats.
  2. Chunking & Vectorization: Automated document splitting and vector generation via the configured embedding profile.
  3. Semantic Retrieval: Queries retrieve top matching context chunks using cosine distance (<=>) before generating responses, preventing hallucinations.

Attach an AI Tool Profile to empower chatbots with functional execution:

  • Look up customer records in CRM by email or phone.
  • Create escalation tickets in Jira Service Management or Zendesk.
  • Check shipping and order delivery statuses.

When a customer’s query exceeds automated capabilities or sentiment detection indicates frustration:

  • The chatbot can trigger an automated handoff event.
  • A SIP call is initiated to a designated queue, or the session is routed to a human operator in the Switchboard interface.

Parameter Type Default Description
agent_name String(100) Required Friendly name of the chatbot assistant.
agent_type String 'chat' Differentiates web chatbots from voice agents.
ai_profile_id Integer Required Foundation LLM model used for chat generation.
is_default_chatbot Boolean false Marks assistant as default for the domain’s user portal.
personality Enum 'professional' Tone: professional, friendly, calm, enthusiastic.
tool_profile_id Integer Nullable References public.ai_tool_profiles(id).

  1. Public Website Lead Qualifier: Collects visitor contact information, verifies budget and timeline, and notifies sales reps via email/SMS.
  2. Internal Telecom Wiki Bot: Answers technician queries regarding PBX codes, dialplan routes, and SIP configurations.

The Web Chatbots module integrates with the SoftSwitch Model Context Protocol (MCP) server, enabling platform assistants, supervisory copilots, and administrative diagnostics to inspect active conversational agent personas, system prompt instructions, and user bindings.

Tool Name Type Access Description
get_ai_chatbot_status Query ai_system_admin / Read Queries active AI Chatbot configuration, assistant persona name, system prompts, greeting message, and model assignments.
{
"name": "get_ai_chatbot_status",
"description": "Queries active AI Chatbot configuration, assistant persona name, system prompts, greeting message, and model assignments.",
"parameters": {
"type": "object",
"properties": {
"user_id": {
"type": "number",
"description": "Optional admin user ID to inspect user-specific copilot profile."
},
"extension_id": {
"type": "number",
"description": "Optional extension ID to inspect extension-specific assistant."
}
}
}
}

Realistic Execution Response:

{
"success": true,
"data": {
"chatbot": {
"hasChatbot": true,
"agentName": "Corporate Support Concierge",
"personaName": "SofΓ­a AI Assistant",
"greetingMessage": "Hello! Welcome to Ring2All Platform support. How may I assist you with your telephony or billing questions today?",
"closingMessage": "Thank you for contacting us! If you need further assistance, our engineers are always available.",
"userId": 1,
"extensionId": 1001
}
}
}
  • β€œCopilot, check the active AI chatbot configuration for user ID 1.”
  • β€œWhat is the opening greeting message configured for the default web assistant?”
  • β€œVerify if an assistant persona is attached to extension 1001.”
  • β€œCopilot, consulta el estado de configuraciΓ³n del chatbot de IA para el usuario 1.”
  • β€œΒΏCuΓ‘l es el mensaje de saludo inicial configurado para el asistente web por defecto?”
  • β€œVerifica si la extensiΓ³n 1001 tiene un chatbot o persona de asistente asignada.”
  1. Multi-Tenant Domain Scoping: Chatbot lookup strictly enforces numeric domain_id and tenant_id boundaries, preventing cross-tenant assistant exposure.
  2. Context Window Protection: System prompts and RAG contexts are validated against model context limits to prevent unexpected token truncation during runtime conversation.
  3. No Unauthenticated Execution: Web chatbot endpoints require authenticated sessions or verified tenant tokens for external embedded widgets.

  • Chatbot Not Responding: Check that the linked AI Profile in AI Profiles has an active provider with valid API keys.
  • Hallucinations: Ensure RAG context documents are uploaded and verify that system prompt instructions include explicit boundary rules (e.g., β€œOnly answer based on provided context”).

  • Web Chatbot: Text-based conversational AI agent hosted in web portals or external embeds.
  • RAG (Retrieval-Augmented Generation): Architecture supplementing LLM prompts with semantic context retrieved from external vector databases.
  • Default Chatbot: System-designated assistant automatically made available to authenticated users.