# Basira Sovereign AI Assistant
## Enterprise Product Specification, Architecture Blueprint & Master Client Pitch Deck
**Author:** Yasser Bousrih (Founder & Senior Dev, Basira LLC)  
**Classification:** Enterprise Client Demo & Technical Specification  
**Target Verticals:** High-Volume Medical Polyclinics, Aesthetics & Dermatology Centers, Dental Clinics, Luxury Salons & Spas, Fine Dining Groups, Real Estate Brokerages, Corporate Services across Qatar & GCC.

---

## 1. Executive Product Definition: One Brain, Multiple Channels

Basira is an enterprise, sovereign **AI Operations Platform** built completely in-house. It replaces fragmented, multi-vendor SaaS subscriptions (separate IVR telephony, chat widgets, booking platforms, CRM seats, and automation tools) with **One Central AI Assistant Engine**.

### The Core Operating Philosophy
- **One Sovereign Brain:** A single central LLM intelligence coordinates all customer memory, business logic, deterministic tool permissions, and ERP records.
- **Unified Multi-Channel Touchpoints:** Customers can reach the business via **Phone Call (Qatar DID lines)**, **WhatsApp Business API**, **Website Chat Widget**, or **Inbound Email**. Regardless of the channel used, the customer interacts with the exact same assistant.
- **Zero Fragmented Bots:** No separate, disconnected bots with conflicting information. An interaction on WhatsApp instantly informs a subsequent phone call or email inquiry.

```
                  ┌─────────────────────────────────────────────────────────┐
                  │                 THE CENTRAL AI BRAIN                    │
                  │  • Continuous Long-Term Memory (Customer Dossiers)      │
                  │  • Deterministic Capability Registry (26+ In-House Tools)│
                  │  • Self-Improving Learning Loop (Q/A Extraction)       │
                  │  • Enterprise Resource Planning & Database Integration  │
                  └────────────────────────────┬────────────────────────────┘
                                               │
      ┌──────────────────────┬─────────────────┴────────────────┬─────────────────────┐
      ▼                      ▼                                  ▼                     ▼
[ 📞 Phone Calls ]    [ 💬 WhatsApp ]                   [ 💻 Web Chat ]        [ ✉️ Inbound Email ]
• +974 Qatar DIDs     • Official Cloud API              • Brand-tailored       • Gmail Pub/Sub push
• Sub-600ms latency   • Mid-call PDF collateral drops   • Real-time lead capture• Instant AI drafting
• Khaleeji & English  • In-chat payment links (Apple Pay)• Human live takeover • Contextual triage
```

---

## 2. Multi-Agent Hierarchy & Specialist Sub-Agents

Unlike conventional chatbots that degrade in reasoning quality as prompt instructions become bloated, Basira utilizes a **Hierarchical Supervisor Multi-Agent Architecture** (`agentSupervisor.js`):

### 2.1 Single Phone Number, Multiple Specialized Sub-Agents
A business can connect a single central phone number or WhatsApp account. An in-memory **Supervisor Orchestrator** evaluates conversational intent in real time and transfers turns seamlessly between specialist sub-agents:
1. **Primary Concierge:** Handles standard inquiries, clinic operating hours, service explanations, and booking availability.
2. **Billing & Invoicing Specialist:** Detects financial intent (*invoices, refunds, payment receipts, failed transactions, فاتورة, استرجاع, دفع*) and handles commercial ledger lookups and payment link generation.
3. **Enterprise Sales Specialist:** Activates on high-ticket, corporate, or annual package inquiries (*annual contracts, corporate accounts, custom packages, عقد سنوي, شراكة*) with specialized qualification prompts.
4. **Technical Support Specialist:** Diagnoses software faults, customer portal access problems, or integration errors (*error, bug, not working, عطل, مشكلة تقنية*).

### 2.2 Multiple Direct Phone Numbers
Businesses can provision distinct Qatar DID lines for specific agents (e.g. `+974 4400 1001` for General Reception vs. `+974 4400 1002` for VIP Concierge) while sharing the same central customer database and knowledge base.

### 2.3 Context Preservation Across Transfers
When a handoff occurs between sub-agents, the customer's identity, full session transcript, ongoing intent, and verified tool access transfer with zero data loss. The customer never has to repeat themselves.

---

## 3. Communication Channels & Voice Acoustics Physics

### 3.1 Autonomous Voice Telephony (`voice-channel` & `telephony_bridge.py`)
- **Sub-600ms Latency Floor:** Natural Khaleeji conversation requires brief thinking pauses. The engine enforces a strict 600ms floor, preventing premature interruptions while keeping round-trip latency snappier than human receptionists.
- **Sentence-by-Sentence Streaming (`application/x-ndjson`):** LLM generation is streamed directly into TTS synthesis sentence by sentence. Audio playback begins on the very first clause rather than waiting for complete generation.
- **Acoustic Barge-In & Queue Purging:** Deepgram VAD detects when a caller speaks over the AI and sends an immediate WebSocket clear event to halt playback instantly (0.25s response).
- **Dual-Stream STT & Bilingual Code-Switching:** Concurrently listens on `ar-QA` (Qatari dialect) and `en` (English), switching language dynamically when `crossLangSwitchConf >= 0.65`.
- **Rhythmic Voice Vocalization Engine (`voiceVocalizationEngine.js`):** Intelligently formats numbers, currencies, dates, and times for natural spoken rhythm:
  - Phone numbers are chunked into conversational cadences (`+974 4400 1234` → *"plus nine-seven-four, forty-four double-zero, twelve thirty-four"*).
  - Currencies are pronounced as natural spoken words (*"1,500 QAR"* → *"one thousand five hundred Qatari Riyals"* / *"ألف وخمسمائة ريال قطري"*).
- **Web Audio PCM Queue Scheduling:** Client test modal sequences audio buffers via `nextStartTimeRef`, preventing audio packet overlap and eliminating laptop microphone loopback.
- **Background Environment Simulators:** Ambient acoustic noise injection (`clean_studio`, `office`, `cafe`, `van_interior`, `workshop`) to match any corporate setting.

### 3.2 Customer Messaging (WhatsApp Business API & Web Chat Widget)
- **Unified Customer Thread:** Unifies WhatsApp Business messages, web chat conversations, SMS, and voice call transcripts into a single customer profile.
- **Webchat Widget Studio:** In-browser customizer with 6 luxury color swatches (`#928865` Basira Brass, `#221F1C` Warm Charcoal, `#10B981` Deep Emerald, `#6366F1` Royal Indigo, `#B26B45` Rose Clay, `#0EA5E9` Ocean Blue), 4 floating launcher icons (`chat`, `sparkles`, `headphones`, `zap`), left/right screen alignment, and strict CORS domain whitelisting.
- **Human-in-the-Loop Live Takeover:** Staff can intervene in active conversations with one click, muting AI responses while retaining full conversational history.
- **Automated CSAT 5-Star Surveys:** Triggers automated satisfaction surveys upon conversation resolution, aggregating scores into agent performance dashboards.
- **SLA Breach Protection:** Enforces strict response deadlines (5m first response, 30m resolution) across 4 priority levels (`low`, `medium`, `high`, `urgent`) with visual breach warning telemetry.
- **Autonomous Event Automations:** 12 native system event triggers (`vip_customer_detected`, `churn_risk_detected`, `urgent_escalation`, etc.) executing condition-based rules (`send_message`, `assign_team`, `add_label`).
- **Outbound Multi-Channel Campaigns:** Targeted outbound dispatch across Email, SMS, WhatsApp, and Web Push with real-time delivery and click funnel tracking.

### 3.3 Autonomous Email Gateway (`email-channel`)
- **Real-Time Gmail Pub/Sub & Outlook Graph:** Eliminates slow email polling by receiving instant webhook pushes from Google Cloud Pub/Sub upon email arrival.
- **Draft vs. Send Modes:** Support for human oversight (`mode: draft`) or autonomous responses (`mode: send`) gated by confidence thresholds (`minEmailConfidence >= 0.85`), with configurable 24h, 48h, or 72h follow-up intervals.
- **Ping-Pong Loop Breaker:** Algorithmic safeguard capped at 10 turns to avoid infinite auto-reply email loops with customer out-of-office autoreponders.

---

## 4. Deterministic Capability Registry (26+ In-House Autonomous Tools)

Unlike brittle chatbot function-calling, Basira features a **Deterministic Capability Registry** (`agent-brain/src/tools/` and `capabilityMetadata.js`):

| Capability Key | Tool Script | Execution Behavior & Channel Modality |
|---|---|---|
| `book_appointment` | `bookAndDispatchMultichannel.js` | Direct two-way sync with Cal.com & ERPNext. Simultaneously locks calendar slot and operatory room, generates Google Meet link, and dispatches `.ics` invite + WhatsApp confirmation. |
| `calculate_financing` | `calculateFinancingOptions.js` | Real-time calculation of down payments, installment plans, and monthly financing costs for high-ticket medical/aesthetic procedures or commercial contracts. |
| `generate_quote_pdf` | `generateQuotePdf.js` | Dynamically renders a branded, itemized PDF estimate on the fly, storing it in S3/local vault and delivering a signed download link. |
| `send_pdf_brochure` | `sendPdfBrochure.js` | Dispatches marketing collateral, clinic brochures, or service menus directly to the caller's WhatsApp while they are talking on the phone. |
| `edit_customer_memory` | `customerMemory.js` | Autonomously updates persistent customer dossier tags (allergies, clinical notes, VIP tier, preferred doctor, schedule preferences). |
| `knowledge_gap_harvest` | `knowledgeGapHarvester.js` | Automatically logs questions that the AI could not answer with high confidence into a prioritized admin backlog for 1-click resolution. |
| `simulate_conversation` | `conversationSimulator.js` | Runs synthetic persona dialogues to stress-test agent prompts, safety bounds, and tool executions before publishing to production. |
| `reconcile_bookings` | `bookingReconciler.js` | Audits calendar records against ERP ledgers to detect and auto-resolve schedule drift, double-bookings, or canceled slots. |
| `generate_payment_link` | `tapPayments.js` | Creates an instant Tap Payments checkout link in native QAR with Apple Pay support, dropping it directly into WhatsApp or web chat. |
| `submit_review` | `submitReview.js` | Captures verified customer ratings and dispatches 1-tap Google Maps review links to satisfied customers (rating >= 4). |
| `create_ticket` | `createTicket.js` | Formulates structured support tickets with severity levels, routing directly to technical or medical supervisors. |

---

## 5. 3-Tier Enterprise Controls & Configuration Architecture

The platform provides a strict **3-Tier Operational Control Matrix** (`UNIFIED_CONTROLS_SPEC.md`):

```
┌──────────────────────────────────────────────────────────────────────────────┐
│ TIER 1: Contractor / Front-Line Operator (Simple Mode in /dashboard)         │
│ • Voice preset pickers (Adam, Khalid), tone presets (Professional/Urgent)    │
│ • Web widget customizer: 6 brand swatches, 4 launcher icons, orientation     │
│ • Spoken business names, operating hours, morning outreach start time        │
│ • Quiet hours toggle (8:00 PM auto-freeze), email mode (draft vs send / SLA) │
├──────────────────────────────────────────────────────────────────────────────┤
│ TIER 2: Technical Client / Agency Power User (Fine-Tune PRO Mode)            │
│ • Acoustic physics: Eagerness (0.0-1.0, 600ms floor), VAD sensitivity (0.25s)│
│ • Prompt Studio variables: {{business_name}}, {{service_area}}, {{policy}}   │
│ • SLA & CSAT rules: 4 priority tiers, 5m response / 30m resolution SLA       │
│ • 12 native event triggers (VIP, churn risk, escalation) & multi-channel CRM │
│ • Subagent fleet handoff rules, scoped tool keys (selected_tool_keys)        │
│ • Bilingual switch confidence (0.65 threshold), RAG similarity cutoff (0.50) │
├──────────────────────────────────────────────────────────────────────────────┤
│ TIER 3: Platform Super-Admin / Infrastructure Engineer (Restricted /admin)   │
│ • Telephony SIP trunk routing, ambient noise floor gate (-42.0 dB)           │
│ • Webchat CORS origin whitelist & script embed authorization                 │
│ • Carrier 10DLC throughput caps, predictive dialer Erlang-C pacing factor    │
│ • Token budget ceiling (4,000 tokens/turn), tenant memory isolation guard    │
│ • Webhook exponential retry schedules, IMAP/SMTP connection pooling          │
└──────────────────────────────────────────────────────────────────────────────┘
```

---

## 6. Continuous Customer Memory & Self-Improving Learning Loop

### 6.1 Persistent Customer Dossier (`edit_customer_memory`)
The AI Assistant never suffers from session amnesia:
- **Personal Preferences:** Preferred practitioners, timing constraints, dietary or service notes (*"prefers Dr. Sarah"*, *"requests evening slots only"*).
- **Clinical / Service Constraints:** Allergies, sensitivities, past treatment reactions (*"allergic to latex"*, *"sensitive to bright lighting"*).
- **Ongoing Intent:** Upcoming milestones, high-value inquiries (*"evaluating full dental veneers for next quarter"*).
- **Context Re-Hydration:** When a client contacts the business from any channel, the `contextHydrator` pulls their memory summary, allowing the assistant to greet them by name and reference past visits: *"Welcome back, Fatima! Are we continuing your consultation from last Tuesday?"*

### 6.2 Autonomous Self-Learning & Safety Guardrails (`feedback_self_learning.ts`)
The platform continuously improves its knowledge base without manual prompt tweaking:
- **Automated Q/A Quality Scoring:** When conversations resolve, the engine extracts question-answer pairs and scores their relevance, clarity, and completeness.
- **Strict Anti-Hallucination Safety Filter:** Automatically rejects answers containing prices, phone numbers, policy terms, or dates from self-learning to prevent hallucination propagation.
- **Staging & Auto-Approval:** High-scoring Q/A pairs are staged for admin review or auto-approved for Enterprise tiers, expanding FAQ coverage organically over time.

---

## 7. Built-In In-House CRM & Outbound Campaigns (`agent-crm`)

Basira includes a native multi-tenant CRM designed for automated conversion and client retention:
- **5-Stage Pipeline Tracking:** Classifies contacts into `lead`, `active`, `qualified`, `customer`, and `archived`.
- **Predictive Dialer Pacing (`predictivePacer.js`):** Erlang-C mathematical pacing factor (1.0x - 4.0x) that dynamically adjusts outbound calling rate while keeping call abandonment strictly under 1.5%.
- **Answering Machine Detection (AMD) & Voicemail Recovery (`amdRecoveryService.js`):**
  - Detects when outbound calls hit voicemail or carrier drops in under 2.5 seconds.
  - Automatically aborts the call and dispatches an instant WhatsApp recovery message with a 1-click booking link within 3 seconds: *"Hi Mohammed, we tried reaching you regarding your appointment. You can schedule your preferred time directly here: [Link]"*.
- **Anti-Spam Cross-Channel Pacing:** Enforces 1,000ms delay between SMS dispatches and 2,000ms between voice calls.
- **Statutory Quiet Hours & DNC Scrubbing:** Automatically freezes cold outreach between 8:00 PM and 8:00 AM AST and scrubs contacts against opt-out keywords (`STOP`, `UNSUBSCRIBE`).
- **Autonomous Stale Lead Re-Engagement (`reengagementEngine.js`):** Scans contacts inactive for 30–90 days and schedules personalized seasonal offers in Arabic or English.
- **Daily Automated Outreach:** Runs scheduled follow-up batches at 10:00 AM AST with up to two non-intrusive re-engagement touches.

---

## 8. Autonomous Scheduling & Resource Management (`basira-booking` & `basira-calcom`)

- **Direct 2-Way Calendar Booking:** Real-time availability inspection during live phone calls or WhatsApp chats with instant slot reservation in Cal.com and ERPNext.
- **Simultaneous Resource & Operatory Locking:** Locks both the practitioner and the treatment operatory/room at the same time to prevent double-booking.
- **Turnaround Sterilization Buffers:** Automatically appends 10–15 minute turnover buffers between clinical appointments to ensure room reset and prevent practitioner burnout.
- **Automated Video Conferencing:** Automatically generates Google Meet links for tele-health consultations, delivering `.ics` calendar invites directly to WhatsApp.

---

## 9. Commercial Billing & Tap Payments (`Basria-backend`)

- **Native QAR Transactions:** Integrated with Tap Payments supporting Apple Pay, Visa, Mastercard, and GCC debit cards.
- **In-Chat Payment Links (`generate_payment_link`):** The AI drops secure checkout URLs into WhatsApp or chat for consultation deposits or service invoices.
- **Automated Invoice Ledger Sync:** Successful transactions immediately generate submitted ERP invoices and update double-entry accounting ledgers.

---

## 10. Service Desk, Reviews & Enterprise Integrations

- **Autonomous Ticketing Desk:** Multi-channel ticket creation, priority matrix routing, and escalation paths.
- **Post-Appointment Review Retention:** Automatically dispatches a 1-tap Google Maps review request via WhatsApp 2 hours post-appointment.
- **Attendance & Workforce Sync:** In-house biometric attendance synchronization connecting branch checkpoints directly with Qatar WPS-compliant payroll ledgers.
- **Sovereign In-House Integration:** Native REST, WebSocket, and PostgreSQL architecture connects directly with Frappe / ERPNext and external enterprise databases.

---

## 11. Screen-by-Screen Visual Verification Suite

All 12 screenshots captured from the live production portal have been visually audited and verified:

| # | Screen File | Route & Component | Audited UI Elements & Verified Telemetry |
|---|---|---|---|
| **01** | `01_operations_overview.png` | `GET /dashboard/overview`<br>*Operations Overview & Cockpit* | • Key Metric Gauges: Conversations (0 total, +12%), Bookings (1 scheduled, +8%), CRM Contacts (110 in pipeline, 109 leads), Hours Returned (11.8 hrs, +18%).<br>• Focus Queue: 0 open tasks, `All tasks cleared`.<br>• Stack Health: Voice Telephony (`Live`), Messaging Inbox (`Active`), CRM Engine (`Queued`), Backhouse (`Steady`).<br>• System Status: `Active & Answering`, `All systems healthy`. |
| **02** | `02_unified_conversations.png` | `GET /dashboard/conversations`<br>*Unified Communications Hub* | • Channel Stream Filtering: `All channels`, `Voice & Transcripts`, `Google Meet & Bookings`, `Live Chat & WhatsApp`, `Email`.<br>• Status Segments: `All`, `Open / Upcoming`, `Pending`, `Completed`.<br>• Global Transcript Search: Search by caller, transcript text, or message.<br>• Session Viewer: Turn-by-turn transcript replay with audio playback. |
| **03** | `03_agent_hub.png` | `GET /dashboard/agents`<br>*Autonomous Team Fleet Hub* | • Fleet Telemetry: Fleet Size (1 Active staff), Live Channels (4 touchpoints), Voice Telephony (1 real-time call engine), Autonomy Tier (100% knowledge sync).<br>• Agent Profile Card: `Adam (Bilingual AI Specialist)`, model `deepseek-chat`, tone `professional`, channels `Chat`, `Voice`, `Email`, `3 TOOLS ENABLED`.<br>• Directory Filters: `All (1)`, `Primary (1)`, `Sub-Agents (0)`. |
| **04** | `04_workflows_automation.png` | `GET /dashboard/workflows`<br>*Workflow Automation Engine* | • Selective Channel Filtering: `All Channels`, `Messaging Channels`, `Voice Telephony`.<br>• Live Workflows (4 live): `Booking with Basira` (calendar booking), `Submit Review` (feedback collection), `Create Support Ticket` (service desk), `Capture Lead (CRM v3)` (CRM capture). |
| **05** | `agent-config/01_agent_identity_tier.png` | `GET /dashboard/agents/[id]#identity`<br>*Agent Identity & Studio* | • Release Pipeline: `v3 live` immutable badge, `Draft changes` indicator, `Publish v4` cloud deploy button.<br>• Performance Tier: `Balanced` tier.<br>• Status Card: `Active`, 3 active channels (Chat, Voice, Email), `0 files` knowledge, Created `9/10/2026`.<br>• Floating Tool: Persistent `Test Sandbox` launcher. |
| **06** | `agent-config/02_agent_prompt_rules.png` | `GET /dashboard/agents/[id]#prompt`<br>*System Prompt & Persona* | • Avatar Icon Matrix: 22+ selectable archetypes (Robot, Human, Detective, Researcher, Scholar, Persona, Operator, Voice AI, Friendly, Brain AI, Support, Chat, Security).<br>• Accent Themes: 8 calibrated palettes (Olive Brand, Sage, Clay, Trust Blue, AI Violet, Emerald, Amber Gold, Rose Pink).<br>• System Prompt Editor: 2,394 characters defining Qatar/GCC etiquette and bilingual tone.<br>• Quick Actions: Open Test Sandbox, Open Chat Inbox, Voice Dashboard, Email Dashboard. |
| **07** | `agent-config/03_agent_channels_telephony.png` | `GET /dashboard/agents/[id]#channels`<br>*Connected Channels* | • Voice Telephony: Qatar DID line, neural STT/TTS synthesis, real-time routing (`Telephony Active`).<br>• Customer Messaging: WhatsApp Business API & web widget (`WhatsApp & Widget`).<br>• Email Gateway: Gmail Pub/Sub inbox monitor with autonomous replies (`Gmail Pub/Sub Active`).<br>• Channel Toggles: 3 Active toggles for instant channel activation. |
| **08** | `agent-config/04_agent_knowledge_rag.png` | `GET /dashboard/agents/[id]#knowledge`<br>*Tri-Source Knowledge Base* | • Tri-Source Ingestion: Website URL scraper (`Website URL`), Text FAQ editor (`Title (optional)`), File/Docling PDF uploader (`Label (optional)`).<br>• Knowledge Sync: `Auto-synced` badge, `11 sources connected`.<br>• Strict Encapsulation: Knowledge is isolated to the specific agent. |
| **09** | `agent-config/05_agent_workflows_tools.png` | `GET /dashboard/agents/[id]#tools`<br>*Workflows & Tool Permissions* | • Quota Telemetry: `4 of 8 active` capabilities.<br>• Unified Channel Execution: Skills activate across Voice Calls, WhatsApp & Web Chat, and Email Gateway.<br>• Active Tool Card: `Book Appointments & Calendar` with live availability check and booking link (`Booking Calendar ↗`). |
| **10** | `vox_01_voice_library.png` | `GET /dashboard/voice/in-house#voices`<br>*Voice Library & Dialects* | • Curated Voice Library: 34 neural voice personas (Adam, Khalid, Fatima, Layla, Nasser) with native pronunciation of GCC locations.<br>• Dialect & Modality Assignment: Independent Voice IDs for Arabic and English with automatic code-switching.<br>• Sample Preview Player: In-browser player to audition cadence, warmth, and pitch.<br>• SIP Trunk Telemetry: Direct binding to carrier SIP trunks delivering streaming TTFB under 200ms. |
| **11** | `vox_02_conversational_dynamics.png` | `GET /dashboard/voice/in-house#dynamics`<br>*Turn-Taking & Cadence* | • Response Eagerness Slider: Precise pause calibration with 3 presets: `Instant Eager (750ms)`, `Conversational (1000ms)`, `Thoughtful (1400ms - 1600ms)`.<br>• Interruption Barge-In Sensitivity: Real-time speech-stop window calibration allowing callers to interrupt naturally.<br>• Queue Purging: Web Audio buffer cancellation clearing playback queues within 250ms of detected caller speech.<br>• Cadence Timing: Streaming audio delivery with time-to-first-byte under 200ms. |
| **12** | `vox_03_acoustic_shield_dsp.png` | `GET /dashboard/voice/in-house#shield`<br>*Acoustic Shield & Environment Sim* | • Ambient Environment Simulator: 4 selectable acoustic room presets (`Quiet Studio`, `Busy Cafe`, `Corporate Office`, `City Street`) to inject realistic room tones.<br>• Spectral Noise Reduction: 4-stage DSP suppression (`Off / Raw Audio`, `Light -6dB`, `Moderate -12dB`, `Heavy -18dB`) to eliminate caller background noise.<br>• Acoustic Realism Injection: Prevents sterile dead-air silence on phone lines.<br>• Filter Telemetry: Hardware status indicator with one-click cloud sync to production SIP trunks. |

---

## 12. Recommended Live Client Demonstration Flow

| Step | Portal View / Route | Demo Objective |
| :--- | :--- | :--- |
| **1. Executive Cockpit** | `/dashboard/overview` | Review executive HUD gauges (Conversations, Bookings, Leads, Hours Returned) and system health. |
| **2. Live Voice Telephony** | In-Browser Audio Sandbox | Place a real test call; demonstrate sub-600ms latency, natural Khaleeji Arabic greeting, bilingual code-switching, and barge-in. |
| **3. Mid-Call WhatsApp Drop** | Voice + WhatsApp | Ask for a service brochure on the phone; the agent triggers `send_pdf_brochure` and delivers the PDF to WhatsApp during the call. |
| **4. Dynamic Quote & Financing** | Voice / Chat | Request a quotation for an aesthetic procedure; agent runs `calculate_financing` and drops a formatted breakdown with monthly installments. |
| **5. Autonomous Calendar Booking** | `/dashboard/bookings` | Book an appointment in natural language; demonstrate Cal.com sync, operatory room locking, and Google Meet link generation. |
| **6. Sub-Agent Handoff** | `/dashboard/agents` | Demonstrate dynamic intent transfer from primary receptionist to billing specialist without losing context. |
| **7. Continuous Memory** | `/dashboard/conversations` | Call back as the same customer; the assistant greets the user by name and references their previous visit. |
| **8. Outbound Lead Recovery** | `/dashboard/crm/campaigns` | Trigger an outbound call that hits voicemail; show the automated WhatsApp recovery message dispatched in 3 seconds. |
| **9. In-Chat Payment Settlement** | `/dashboard/billing` | Generate a QAR payment link in WhatsApp; demonstrate Apple Pay checkout and immediate ERP invoice creation. |
