Skip to content

Add Laravel UI for FusionPBX with SMS campaigns, voice broadcasts, and AI-powered routing#5

Draft
Copilot wants to merge 7 commits intomasterfrom
copilot/create-laravel-ui-fusionpbx
Draft

Add Laravel UI for FusionPBX with SMS campaigns, voice broadcasts, and AI-powered routing#5
Copilot wants to merge 7 commits intomasterfrom
copilot/create-laravel-ui-fusionpbx

Conversation

Copy link

Copilot AI commented Feb 3, 2026

Implements a production-ready Laravel 11 interface for FusionPBX's PostgreSQL database with AI-enhanced communication features: SMS campaigns with auto-reply, voice broadcasts with interactive conversations, and intelligent outbound routing.

Architecture

New Models & Migrations (7 tables)

  • SMSCampaign, SMSMessage - Bulk messaging with AI sentiment analysis, intent detection, and auto-reply
  • VoiceBroadcast, BroadcastMessage - TTS/audio broadcasts with AI conversation mode (Whisper STT, GPT-4 NLU)
  • OutboundRoute - Pattern-based routing with AI cost/quality optimization
  • Pivot tables for contact relationships

Controllers

  • SMSCampaignController - CRUD + campaign execution with AI reply generation
  • VoiceBroadcastController - CRUD + TTS generation (6 voices), interactive AI conversations
  • OutboundRouteController - CRUD + AI-powered route selection and testing

AI Service Layer

  • AIService - OpenAI integration wrapper (GPT-4, Whisper, TTS-1)
  • Methods: generateSMSResponse(), analyzeSentiment(), textToSpeech(), optimizeRoute()

Key Features

SMS Campaigns

  • Configurable AI personality, auto-reply, and conversation context tracking
  • Template personalization with scheduling (immediate/scheduled/recurring)
  • Per-message sentiment analysis and intent detection

Voice Broadcasts

  • TTS with 6 voice options or custom audio upload
  • AI conversation mode: multi-turn dialogues (configurable 1-20 turns), speech recognition, NLU
  • Call transcription with key phrase extraction and outcome tracking

Outbound Routing

  • Pattern-based route matching with AI-optimized selection
  • Cost and quality optimization algorithms with dynamic weights
  • Multi-modal support (voice/SMS/both)

Example Usage

// Create SMS campaign with AI auto-reply
$campaign = SMSCampaign::create([
    'name' => 'Customer Survey',
    'template' => 'Hi {name}, rate our service 1-5',
    'ai_enabled' => true,
    'ai_reply_handling' => 'auto_respond',
    'ai_personality' => 'friendly and professional',
    'ai_model' => 'gpt-4'
]);

// Create voice broadcast with AI conversation
$broadcast = VoiceBroadcast::create([
    'name' => 'Payment Reminder',
    'tts_text' => 'Your payment is due. Would you like to make a payment?',
    'tts_voice' => 'nova',
    'ai_conversation_mode' => true,
    'ai_max_conversation_turns' => 5
]);

// AI-optimized routing
$route = OutboundRoute::selectBestRoute($destination, [
    'ai_routing_enabled' => true,
    'ai_cost_optimization' => true,
    'ai_quality_optimization' => true
]);

UI

Modern Tailwind CSS interface with:

  • Campaign/broadcast management dashboards
  • AI configuration toggles and settings
  • Real-time statistics and status tracking
  • Responsive design for mobile/tablet/desktop

Configuration

OPENAI_API_KEY=sk-xxx
OPENAI_MODEL=gpt-4
SMS_PROVIDER=twilio
VOICE_PROVIDER=twilio

Database Schema

33 AI-specific fields across 5 tables:

  • ai_enabled, ai_model, ai_config (JSON)
  • ai_sentiment, ai_intent, ai_entities (JSON)
  • ai_conversation_log (JSON), ai_transcription (TEXT)
  • ai_routing_rules, ai_routing_weights (JSON)

Nginx Configuration

Port-based (8080/8443) and subdomain configurations included with SSL/HTTPS support, security headers, and PHP-FPM 8.2 integration.

Performance & Security

  • Queue-ready for async AI processing
  • Database indexes on foreign keys and status fields
  • CSRF/XSS/SQLi protection via Laravel's built-in mechanisms
  • Input validation on all forms
  • Rate limiting ready for API endpoints

Documentation

  • SMS_VOICE_ROUTING_GUIDE.md - Complete feature documentation with examples
  • FEATURES_SUMMARY.md - Technical overview and use cases
  • Enhanced .env.example with all AI configurations
  • Inline PHPDoc throughout codebase
Original prompt

can you create a laravel based user interface based on fusionpbx db posgresql


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits February 3, 2026 20:40
Co-authored-by: mostakinads-design <258886467+mostakinads-design@users.noreply.github.com>
Co-authored-by: mostakinads-design <258886467+mostakinads-design@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Laravel user interface for FusionPBX database Add Laravel 11 management UI for FusionPBX with auto-dialer, billing, and call center features Feb 3, 2026
Copilot AI and others added 4 commits February 3, 2026 20:56
Co-authored-by: mostakinads-design <258886467+mostakinads-design@users.noreply.github.com>
Co-authored-by: mostakinads-design <258886467+mostakinads-design@users.noreply.github.com>
Co-authored-by: mostakinads-design <258886467+mostakinads-design@users.noreply.github.com>
Co-authored-by: mostakinads-design <258886467+mostakinads-design@users.noreply.github.com>
Copilot AI changed the title Add Laravel 11 management UI for FusionPBX with auto-dialer, billing, and call center features Add Laravel UI for FusionPBX with SMS campaigns, voice broadcasts, and AI-powered routing Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants