Spaces:
Sleeping
Sleeping
Ajit Panday
commited on
Commit
·
3cb4e02
1
Parent(s):
a0f9841
Update documentation for FreePBX integration
Browse files- README.md +27 -15
- SETUP_GUIDE.md +96 -11
- USER_MANUAL.md +121 -38
README.md
CHANGED
|
@@ -11,7 +11,7 @@ pinned: false
|
|
| 11 |
|
| 12 |
# vBot - Intelligent Call Analysis System
|
| 13 |
|
| 14 |
-
vBot is a distributed call analysis system where a central server ONLY handles AI-powered transcription and analysis, while each customer maintains their own complete infrastructure (
|
| 15 |
|
| 16 |
## System Architecture
|
| 17 |
|
|
@@ -27,9 +27,9 @@ vBot is a distributed call analysis system where a central server ONLY handles A
|
|
| 27 |
|
| 28 |
### Customer Infrastructure (Remote)
|
| 29 |
Each customer maintains their own complete system:
|
| 30 |
-
- Asterisk
|
| 31 |
-
- MySQL database
|
| 32 |
-
- Web server (Apache
|
| 33 |
- SSL certificate for secure webhooks
|
| 34 |
- Complete control over their data and infrastructure
|
| 35 |
- Full ownership of their call recordings
|
|
@@ -43,20 +43,21 @@ Each customer maintains their own complete system:
|
|
| 43 |
- Sentiment analysis and keyword extraction
|
| 44 |
- Modern admin interface for customer management
|
| 45 |
- Webhook-based result delivery
|
|
|
|
| 46 |
|
| 47 |
## System Requirements
|
| 48 |
|
| 49 |
### Central Server (vBot)
|
| 50 |
- Python 3.8 or higher
|
| 51 |
-
-
|
| 52 |
-
-
|
| 53 |
|
| 54 |
### Customer Infrastructure
|
| 55 |
-
-
|
| 56 |
-
- Web server (Apache/Nginx)
|
| 57 |
- PHP 7.4 or higher
|
| 58 |
-
- MySQL 5.7 or higher
|
| 59 |
-
-
|
|
|
|
| 60 |
|
| 61 |
## Quick Start
|
| 62 |
|
|
@@ -72,23 +73,34 @@ Each customer maintains their own complete system:
|
|
| 72 |
- `API_BASE_URL`: The base URL of your vBot API
|
| 73 |
|
| 74 |
### Customer Setup
|
| 75 |
-
1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
```bash
|
| 77 |
git clone https://huggingface.co/spaces/iajitpanday/vBot
|
| 78 |
cd vBot
|
| 79 |
```
|
| 80 |
|
| 81 |
-
|
| 82 |
```bash
|
| 83 |
cd customer_webhook
|
| 84 |
composer install
|
| 85 |
cp config/config.example.php config/config.php
|
| 86 |
```
|
| 87 |
|
| 88 |
-
|
| 89 |
-
- Update `config/config.php` with your database details
|
| 90 |
- Set the vBot API URL and your API key
|
| 91 |
-
- Configure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
|
| 93 |
## Admin Setup (Central Server)
|
| 94 |
|
|
|
|
| 11 |
|
| 12 |
# vBot - Intelligent Call Analysis System
|
| 13 |
|
| 14 |
+
vBot is a distributed call analysis system where a central server ONLY handles AI-powered transcription and analysis, while each customer maintains their own complete infrastructure (FreePBX, database, web server) and receives results via webhooks.
|
| 15 |
|
| 16 |
## System Architecture
|
| 17 |
|
|
|
|
| 27 |
|
| 28 |
### Customer Infrastructure (Remote)
|
| 29 |
Each customer maintains their own complete system:
|
| 30 |
+
- FreePBX server (includes Asterisk, web server, and database)
|
| 31 |
+
- MySQL database (included with FreePBX)
|
| 32 |
+
- Web server (Apache included with FreePBX)
|
| 33 |
- SSL certificate for secure webhooks
|
| 34 |
- Complete control over their data and infrastructure
|
| 35 |
- Full ownership of their call recordings
|
|
|
|
| 43 |
- Sentiment analysis and keyword extraction
|
| 44 |
- Modern admin interface for customer management
|
| 45 |
- Webhook-based result delivery
|
| 46 |
+
- Seamless FreePBX integration
|
| 47 |
|
| 48 |
## System Requirements
|
| 49 |
|
| 50 |
### Central Server (vBot)
|
| 51 |
- Python 3.8 or higher
|
| 52 |
+
- MySQL 5.7 or higher
|
| 53 |
+
- Hugging Face Space deployment
|
| 54 |
|
| 55 |
### Customer Infrastructure
|
| 56 |
+
- FreePBX 16 or higher
|
|
|
|
| 57 |
- PHP 7.4 or higher
|
| 58 |
+
- MySQL 5.7 or higher (included with FreePBX)
|
| 59 |
+
- Apache web server (included with FreePBX)
|
| 60 |
+
- SSL certificate for secure webhooks
|
| 61 |
|
| 62 |
## Quick Start
|
| 63 |
|
|
|
|
| 73 |
- `API_BASE_URL`: The base URL of your vBot API
|
| 74 |
|
| 75 |
### Customer Setup
|
| 76 |
+
1. Install FreePBX:
|
| 77 |
+
- Download and install FreePBX 16 or higher
|
| 78 |
+
- Complete the FreePBX setup wizard
|
| 79 |
+
- Ensure the system is properly configured
|
| 80 |
+
|
| 81 |
+
2. Clone the repository:
|
| 82 |
```bash
|
| 83 |
git clone https://huggingface.co/spaces/iajitpanday/vBot
|
| 84 |
cd vBot
|
| 85 |
```
|
| 86 |
|
| 87 |
+
3. Install the customer webhook package:
|
| 88 |
```bash
|
| 89 |
cd customer_webhook
|
| 90 |
composer install
|
| 91 |
cp config/config.example.php config/config.php
|
| 92 |
```
|
| 93 |
|
| 94 |
+
4. Configure the webhook package:
|
| 95 |
+
- Update `config/config.php` with your FreePBX database details
|
| 96 |
- Set the vBot API URL and your API key
|
| 97 |
+
- Configure FreePBX to use the webhook endpoint
|
| 98 |
+
|
| 99 |
+
5. Configure FreePBX:
|
| 100 |
+
- Enable call recording in FreePBX
|
| 101 |
+
- Set up the recording path
|
| 102 |
+
- Configure the webhook endpoint in FreePBX
|
| 103 |
+
- Set up SSL for secure webhook communication
|
| 104 |
|
| 105 |
## Admin Setup (Central Server)
|
| 106 |
|
SETUP_GUIDE.md
CHANGED
|
@@ -342,21 +342,106 @@ This guide provides detailed instructions for setting up both the central vBot s
|
|
| 342 |
- `SECRET_KEY`: A secure random string for JWT token generation
|
| 343 |
- `API_BASE_URL`: The base URL of your vBot API
|
| 344 |
|
| 345 |
-
## Step 2: Customer Setup
|
| 346 |
-
1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 347 |
```bash
|
| 348 |
git clone https://huggingface.co/spaces/iajitpanday/vBot
|
| 349 |
-
cd vBot
|
| 350 |
-
```
|
| 351 |
-
|
| 352 |
-
2. Set up the customer webhook package:
|
| 353 |
-
```bash
|
| 354 |
-
cd customer_webhook
|
| 355 |
composer install
|
| 356 |
cp config/config.example.php config/config.php
|
| 357 |
```
|
| 358 |
|
| 359 |
-
|
| 360 |
-
- Update `config/config.php` with
|
| 361 |
- Set the vBot API URL and your API key
|
| 362 |
-
- Configure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 342 |
- `SECRET_KEY`: A secure random string for JWT token generation
|
| 343 |
- `API_BASE_URL`: The base URL of your vBot API
|
| 344 |
|
| 345 |
+
## Step 2: Customer Setup (FreePBX)
|
| 346 |
+
1. Install FreePBX:
|
| 347 |
+
- Download FreePBX 16 or higher
|
| 348 |
+
- Follow the installation guide
|
| 349 |
+
- Complete the setup wizard
|
| 350 |
+
- Ensure all components are properly configured
|
| 351 |
+
|
| 352 |
+
2. Configure FreePBX:
|
| 353 |
+
- Enable call recording in FreePBX Admin
|
| 354 |
+
- Set up recording paths
|
| 355 |
+
- Configure recording formats
|
| 356 |
+
- Set up SSL certificates
|
| 357 |
+
|
| 358 |
+
3. Install the customer webhook package:
|
| 359 |
```bash
|
| 360 |
git clone https://huggingface.co/spaces/iajitpanday/vBot
|
| 361 |
+
cd vBot/customer_webhook
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 362 |
composer install
|
| 363 |
cp config/config.example.php config/config.php
|
| 364 |
```
|
| 365 |
|
| 366 |
+
4. Configure the webhook package:
|
| 367 |
+
- Update `config/config.php` with FreePBX database details
|
| 368 |
- Set the vBot API URL and your API key
|
| 369 |
+
- Configure the webhook endpoint
|
| 370 |
+
|
| 371 |
+
5. Set up FreePBX integration:
|
| 372 |
+
- Configure FreePBX to use the webhook endpoint
|
| 373 |
+
- Set up recording post-processing
|
| 374 |
+
- Configure SSL for secure communication
|
| 375 |
+
|
| 376 |
+
## Step 3: Testing
|
| 377 |
+
1. Test FreePBX recording:
|
| 378 |
+
- Make a test call
|
| 379 |
+
- Verify recording is created
|
| 380 |
+
- Check recording quality
|
| 381 |
+
|
| 382 |
+
2. Test webhook integration:
|
| 383 |
+
- Monitor webhook delivery
|
| 384 |
+
- Verify data format
|
| 385 |
+
- Check error handling
|
| 386 |
+
|
| 387 |
+
3. Test API connection:
|
| 388 |
+
- Verify API key authentication
|
| 389 |
+
- Test call processing
|
| 390 |
+
- Check result delivery
|
| 391 |
+
|
| 392 |
+
## Step 4: Production Deployment
|
| 393 |
+
1. Security:
|
| 394 |
+
- Enable SSL for all communications
|
| 395 |
+
- Set up proper firewall rules
|
| 396 |
+
- Configure secure API keys
|
| 397 |
+
- Implement rate limiting
|
| 398 |
+
|
| 399 |
+
2. Performance:
|
| 400 |
+
- Optimize FreePBX recording settings
|
| 401 |
+
- Configure proper storage
|
| 402 |
+
- Set up monitoring
|
| 403 |
+
- Implement backup strategy
|
| 404 |
+
|
| 405 |
+
3. Monitoring:
|
| 406 |
+
- Set up FreePBX monitoring
|
| 407 |
+
- Monitor webhook delivery
|
| 408 |
+
- Track API usage
|
| 409 |
+
- Monitor system resources
|
| 410 |
+
|
| 411 |
+
## Step 5: Maintenance
|
| 412 |
+
1. Regular Tasks:
|
| 413 |
+
- Monitor system logs
|
| 414 |
+
- Check recording storage
|
| 415 |
+
- Verify webhook delivery
|
| 416 |
+
- Update security certificates
|
| 417 |
+
|
| 418 |
+
2. Backup:
|
| 419 |
+
- Backup FreePBX configuration
|
| 420 |
+
- Backup recordings
|
| 421 |
+
- Backup webhook configuration
|
| 422 |
+
- Test restore procedures
|
| 423 |
+
|
| 424 |
+
3. Updates:
|
| 425 |
+
- Keep FreePBX updated
|
| 426 |
+
- Update webhook package
|
| 427 |
+
- Update SSL certificates
|
| 428 |
+
- Test updates in staging
|
| 429 |
+
|
| 430 |
+
## Troubleshooting
|
| 431 |
+
1. Common Issues:
|
| 432 |
+
- Recording not created
|
| 433 |
+
- Webhook delivery failed
|
| 434 |
+
- API connection issues
|
| 435 |
+
- Performance problems
|
| 436 |
+
|
| 437 |
+
2. Solutions:
|
| 438 |
+
- Check FreePBX logs
|
| 439 |
+
- Verify webhook configuration
|
| 440 |
+
- Test API connection
|
| 441 |
+
- Monitor system resources
|
| 442 |
+
|
| 443 |
+
3. Support:
|
| 444 |
+
- Contact support
|
| 445 |
+
- Submit issues
|
| 446 |
+
- Check documentation
|
| 447 |
+
- Join community forums
|
USER_MANUAL.md
CHANGED
|
@@ -1,59 +1,142 @@
|
|
| 1 |
# vBot User Manual
|
| 2 |
|
| 3 |
## Introduction
|
| 4 |
-
|
| 5 |
-
Welcome to the vBot User Manual. This guide will help you understand and use the vBot system effectively. vBot is a distributed call analysis system where the central server handles transcription and analysis, while you maintain your own infrastructure and receive results via webhooks.
|
| 6 |
|
| 7 |
## Getting Started
|
| 8 |
|
| 9 |
### Installation
|
| 10 |
-
1.
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
```
|
| 15 |
|
| 16 |
2. Install the customer webhook package:
|
| 17 |
```bash
|
| 18 |
-
|
|
|
|
| 19 |
composer install
|
| 20 |
-
```
|
| 21 |
-
|
| 22 |
-
3. Copy the example configuration:
|
| 23 |
-
```bash
|
| 24 |
cp config/config.example.php config/config.php
|
| 25 |
```
|
| 26 |
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
-
|
| 32 |
-
-
|
| 33 |
-
-
|
| 34 |
-
- MySQL
|
|
|
|
| 35 |
- SSL certificate for secure webhooks
|
| 36 |
|
| 37 |
-
### 2.
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
-
|
| 55 |
-
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
## Admin Interface
|
| 59 |
|
|
|
|
| 1 |
# vBot User Manual
|
| 2 |
|
| 3 |
## Introduction
|
| 4 |
+
vBot is an intelligent call analysis system that provides real-time transcription, summarization, and sentiment analysis for phone calls. This manual will guide you through setting up and using the system with FreePBX.
|
|
|
|
| 5 |
|
| 6 |
## Getting Started
|
| 7 |
|
| 8 |
### Installation
|
| 9 |
+
1. Install FreePBX:
|
| 10 |
+
- Download and install FreePBX 16 or higher
|
| 11 |
+
- Complete the FreePBX setup wizard
|
| 12 |
+
- Ensure the system is properly configured
|
|
|
|
| 13 |
|
| 14 |
2. Install the customer webhook package:
|
| 15 |
```bash
|
| 16 |
+
git clone https://huggingface.co/spaces/iajitpanday/vBot
|
| 17 |
+
cd vBot/customer_webhook
|
| 18 |
composer install
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
cp config/config.example.php config/config.php
|
| 20 |
```
|
| 21 |
|
| 22 |
+
3. Configure FreePBX:
|
| 23 |
+
- Enable call recording in FreePBX Admin
|
| 24 |
+
- Set up recording paths
|
| 25 |
+
- Configure recording formats
|
| 26 |
+
- Set up SSL certificates
|
| 27 |
|
| 28 |
+
4. Configure the webhook package:
|
| 29 |
+
- Update `config/config.php` with FreePBX database details
|
| 30 |
+
- Set the vBot API URL and your API key
|
| 31 |
+
- Configure the webhook endpoint
|
| 32 |
|
| 33 |
+
### 1. System Requirements
|
| 34 |
+
- FreePBX 16 or higher
|
| 35 |
+
- PHP 7.4 or higher
|
| 36 |
+
- MySQL 5.7 or higher (included with FreePBX)
|
| 37 |
+
- Apache web server (included with FreePBX)
|
| 38 |
- SSL certificate for secure webhooks
|
| 39 |
|
| 40 |
+
### 2. FreePBX Configuration
|
| 41 |
+
1. Recording Settings:
|
| 42 |
+
- Enable call recording
|
| 43 |
+
- Set recording format (WAV recommended)
|
| 44 |
+
- Configure recording paths
|
| 45 |
+
- Set up recording retention
|
| 46 |
+
|
| 47 |
+
2. Webhook Integration:
|
| 48 |
+
- Configure webhook endpoint
|
| 49 |
+
- Set up SSL for secure communication
|
| 50 |
+
- Configure post-processing
|
| 51 |
+
- Test webhook delivery
|
| 52 |
+
|
| 53 |
+
3. Security Settings:
|
| 54 |
+
- Enable SSL
|
| 55 |
+
- Configure firewall rules
|
| 56 |
+
- Set up API key authentication
|
| 57 |
+
- Implement rate limiting
|
| 58 |
+
|
| 59 |
+
### 3. Using the System
|
| 60 |
+
1. Making Calls:
|
| 61 |
+
- Use FreePBX to make/receive calls
|
| 62 |
+
- Recordings are automatically created
|
| 63 |
+
- Results are sent via webhook
|
| 64 |
+
|
| 65 |
+
2. Viewing Results:
|
| 66 |
+
- Access results through webhook
|
| 67 |
+
- View transcriptions
|
| 68 |
+
- Check sentiment analysis
|
| 69 |
+
- Review call summaries
|
| 70 |
+
|
| 71 |
+
3. Managing Recordings:
|
| 72 |
+
- Access through FreePBX interface
|
| 73 |
+
- Download recordings
|
| 74 |
+
- Manage storage
|
| 75 |
+
- Set retention policies
|
| 76 |
+
|
| 77 |
+
### 4. Troubleshooting
|
| 78 |
+
1. Common Issues:
|
| 79 |
+
- Recording not created
|
| 80 |
+
- Webhook delivery failed
|
| 81 |
+
- API connection issues
|
| 82 |
+
- Performance problems
|
| 83 |
+
|
| 84 |
+
2. Solutions:
|
| 85 |
+
- Check FreePBX logs
|
| 86 |
+
- Verify webhook configuration
|
| 87 |
+
- Test API connection
|
| 88 |
+
- Monitor system resources
|
| 89 |
+
|
| 90 |
+
3. Support:
|
| 91 |
+
- Contact support
|
| 92 |
+
- Submit issues
|
| 93 |
+
- Check documentation
|
| 94 |
+
- Join community forums
|
| 95 |
+
|
| 96 |
+
### 5. Best Practices
|
| 97 |
+
1. Security:
|
| 98 |
+
- Keep FreePBX updated
|
| 99 |
+
- Use strong passwords
|
| 100 |
+
- Enable SSL
|
| 101 |
+
- Regular backups
|
| 102 |
+
|
| 103 |
+
2. Performance:
|
| 104 |
+
- Monitor system resources
|
| 105 |
+
- Optimize recording settings
|
| 106 |
+
- Manage storage
|
| 107 |
+
- Regular maintenance
|
| 108 |
+
|
| 109 |
+
3. Maintenance:
|
| 110 |
+
- Regular updates
|
| 111 |
+
- Monitor logs
|
| 112 |
+
- Check storage
|
| 113 |
+
- Backup configuration
|
| 114 |
+
|
| 115 |
+
### 6. Updates and Maintenance
|
| 116 |
+
1. System Updates:
|
| 117 |
+
- Keep FreePBX updated
|
| 118 |
+
- Update webhook package
|
| 119 |
+
- Update SSL certificates
|
| 120 |
+
- Test updates in staging
|
| 121 |
+
|
| 122 |
+
2. Regular Tasks:
|
| 123 |
+
- Monitor system logs
|
| 124 |
+
- Check recording storage
|
| 125 |
+
- Verify webhook delivery
|
| 126 |
+
- Update security certificates
|
| 127 |
+
|
| 128 |
+
3. Backup:
|
| 129 |
+
- Backup FreePBX configuration
|
| 130 |
+
- Backup recordings
|
| 131 |
+
- Backup webhook configuration
|
| 132 |
+
- Test restore procedures
|
| 133 |
+
|
| 134 |
+
### 7. Support
|
| 135 |
+
For additional support:
|
| 136 |
+
- Email: support@example.com
|
| 137 |
+
- Phone: +1-XXX-XXX-XXXX
|
| 138 |
+
- Documentation: https://docs.example.com
|
| 139 |
+
- Community: https://community.example.com
|
| 140 |
|
| 141 |
## Admin Interface
|
| 142 |
|