Skip to content

Web Chatbots Module Documentation

9 min readUpdated: Nov 29, 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

Web Chatbot Persona & Knowledge Configuration Form

Section titled “Web Chatbot Persona & Knowledge Configuration Form”

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 AI assistant.
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.
Platform AI Assistant / MCP Agent Diagnostic Inspection (RO) Execute get_ai_chatbot_status to evaluate active chatbot personas, system instructions, and user or extension AI assistant 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.

3. Module Overview (End User/Administrator)

Section titled “3. Module Overview (End User/Administrator)”

Administrators can:

  1. Create and manage multiple specialized chatbots (e.g. Sales AI Assistant, 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.

4. Chatbot Persona & Behavioral Configuration

Section titled “4. Chatbot Persona & Behavioral Configuration”
  • 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.

6. Connectors, Tool Profiles & External Action Execution

Section titled “6. Connectors, Tool Profiles & External Action Execution”

Web Chatbots and Omnichannel Chatbots (Telegram, WhatsApp, Instagram, Facebook Messenger, WebChat) can execute live external actions using two complementary methods:

Section titled “Method 1: 1-Step Direct Connectors (Recommended for CRM, Calendly, Helpdesk & E-Commerce)”
  1. Go to Admin → Integrations → Connectors and configure your external apps (for example, Salesforce for CRM lookup/lead creation and Calendly for appointment booking). Their standard tools (search_contact, get_contact, create_lead, get_event_types, get_available_times, create_booking) are pre-loaded automatically.
  2. Open Admin → AI Integration → Web Chatbots and edit your chatbot.
  3. In the Connectors multi-select field (under General → AI Profile & Capabilities), select Salesforce and Calendly ([Salesforce ×] [Calendly ×]).
  4. (Optional) Click Preview Prompt → Generate with AI to automatically include CRM and scheduling instructions in the chatbot’s system prompt, then click Save.
  5. To expose this chatbot on Telegram or WhatsApp, open NCX → Omnichannel → Gateways & Channels, edit your Telegram/WhatsApp channel, enable AI Auto-Reply, and select this chatbot.

Method 2: Advanced Multi-Source & Remote MCP via Tool Profiles

Section titled “Method 2: Advanced Multi-Source & Remote MCP via Tool Profiles”
  1. Go to Admin → AI Integration → Tool Profiles to create a reusable bundle combining tools from Remote MCP Servers (tools/list), multiple Connectors, and Custom REST APIs, with granular security policies (require_confirmation_for_writes, rate_limit_per_min, redact_logs).
  2. In your chatbot’s Tool Profile dropdown, select that profile and click Save.
  3. If both a Tool Profile and direct Connectors are selected, the execution engine automatically merges and deduplicates all authorized tools.

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 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.

Model Context Protocol (MCP) AI Integration

Section titled “Model Context Protocol (MCP) AI Integration”

The Web Chatbots module integrates with the SoftSwitch Model Context Protocol (MCP) server, enabling platform assistants, supervisory AI assistants, 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 AI assistant 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 Chatbot",
"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
}
}
}

Bilingual Natural Language Prompt Examples

Section titled “Bilingual Natural Language Prompt Examples”
  • “AI Assistant, 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.”
  • “Asistente IA, 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.”

Enterprise Safeguards & Execution Boundaries

Section titled “Enterprise Safeguards & Execution Boundaries”
  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.