Skip to main content

AI Assistants

AI Assistants enable automated call handling using artificial intelligence. This document explains how to configure and use AI Assistants in OPBX.

What are AI Assistants?

AI Assistants are virtual agents that can:

  • Answer and handle incoming calls automatically
  • Understand natural language using AI
  • Route calls to appropriate departments
  • Answer common questions
  • Take messages
  • Provide 24/7 availability

Creating an AI Assistant

Step 1: Open Create Dialog

  1. Navigate to AI Assistants in the main menu
  2. Click Create AI Assistant

Step 2: Configure Basic Settings

Fill in the required fields:

FieldDescriptionRequired
NameDisplay name for the AI Assistant (e.g., "Customer Service Bot")✅ Yes
AI Service ProviderSelect from available providers✅ Yes

Step 3: Select Provider Protocol

Providers are grouped by protocol type:

  • SIP Providers - Traditional telephony integration
  • WebSocket Providers - Modern web-based integration

Select the appropriate provider for your use case.

Step 4: Configure Provider-Specific Settings

After selecting a provider, additional configuration fields will appear based on the provider's requirements. These may include:

  • API Key - Authentication token for the AI service
  • Bot ID - Identifier for the specific bot/agent
  • Auth Token - Additional authentication credentials
  • Assistant ID - Provider-specific assistant identifier
  • Workspace/Project ID - Organization context
  • Phone Number - Number assigned to the AI (for SIP providers)
tip

Configuration fields vary by provider. Required fields are marked with an asterisk (*).

Step 5: Save and Activate

  1. Review all configuration fields
  2. Click Save
  3. The AI Assistant is created with "Active" status by default

Step 6: Test the AI Assistant

Before deploying to production:

  1. Review the AI Assistant details
  2. Test call handling if a test interface is available
  3. Verify configuration with the AI provider
  4. Monitor initial call interactions

Managing AI Assistants

Viewing AI Assistants

The AI Assistants page displays:

  • Name - Assistant display name
  • Provider - Service provider (e.g., Twilio, OpenAI)
  • Protocol - SIP or WebSocket
  • Status - Active or Inactive
  • Usage - Number of extensions using this assistant

Editing an AI Assistant

  1. Find the AI Assistant in the list
  2. Click Edit (pencil icon)
  3. Modify fields as needed:
    • Name
    • Provider (note: changing provider resets configuration)
    • Configuration fields
  4. Click Save
warning

Changing the provider will reset all configuration fields. You will need to re-enter provider-specific settings.

Activating/Deactivating

Toggle the status of an AI Assistant:

  1. Click the Status toggle in the AI Assistant row
  2. Or edit the assistant and change the status

Inactive AI Assistants cannot receive calls.

Deleting an AI Assistant

warning

An AI Assistant cannot be deleted if it's currently in use by one or more extensions. Remove all associations first.

To delete:

  1. Ensure no extensions are using the AI Assistant
  2. Click Delete (trash icon)
  3. Confirm deletion

Routing Calls to AI Assistants

Via DID Number

Route incoming calls directly to an AI Assistant:

  1. Go to DID Numbers
  2. Select the phone number to configure
  3. Set Routing Type to "AI Assistant"
  4. Select your AI Assistant from the dropdown
  5. Save changes

Via Extension

Create an extension that routes to the AI Assistant:

  1. Go to Extensions
  2. Click Create Extension
  3. Select AI Assistant as the Extension Type
  4. Select your AI Assistant
  5. Assign an extension number
  6. Save

Now callers can dial the extension number to reach the AI.

Via IVR Menu

Add AI Assistant as an IVR menu option:

  1. Go to IVR Menus
  2. Select or create an IVR menu
  3. Add a menu option (key press)
  4. Set Destination Type to "AI Assistant"
  5. Select your AI Assistant
  6. Save

AI Load Balancers

For high-volume scenarios, use AI Load Balancers to distribute calls across multiple AI Assistants.

What are AI Load Balancers?

AI Load Balancers:

  • Distribute calls across multiple AI Assistants
  • Prevent overloading a single AI
  • Provide redundancy
  • Support different distribution algorithms

Creating an AI Load Balancer

  1. Navigate to AI Load Balancers
  2. Click Create Load Balancer
  3. Enter a Name
  4. Select Distribution Algorithm
  5. Add AI Assistants as members
  6. Configure fallback options
  7. Save

Distribution Algorithms

AlgorithmDescription
Round RobinDistribute evenly in rotation
Least ConnectionsRoute to AI with fewest active calls
WeightedDistribute based on configured weights

Fallback Configuration

Set what happens when all AIs are unavailable:

  • Fallback AI - Route to backup AI
  • Extension - Route to human agent
  • Voicemail - Take a message

Use Cases

After-Hours Support

Setup:

  • Main DID → Business Hours
    • Open → Ring Group (Support Team)
    • Closed → AI Assistant

Benefits:

  • 24/7 availability
  • Handle common questions
  • Take messages for follow-up

High-Volume Handling

Setup:

  • Main DID → AI Load Balancer (3 AI Assistants)
  • Overflow → Ring Group (Human agents)

Benefits:

  • Handle peak call times
  • Reduce wait times
  • Scale without adding staff

First-Line Support

Setup:

  • Main DID → AI Assistant
  • AI can transfer to:
    • Sales (Press 1)
    • Support (Press 2)
    • Billing (Press 3)

Benefits:

  • Immediate response
  • Automatic routing
  • Reduce human workload

Best Practices

Configuration

  1. Clear expectations - Let callers know they're speaking with AI
  2. Easy escalation - Always provide option to reach human
  3. Test thoroughly - Verify AI responses before deploying
  4. Monitor performance - Review call logs regularly

Training

  1. Document common questions - Ensure AI can answer them
  2. Update regularly - Add new information as needed
  3. Review failures - Identify where AI struggles
  4. Iterate - Continuously improve responses

Security

  1. Protect API keys - Keep AI provider credentials secure
  2. Monitor usage - Watch for unusual activity
  3. Set limits - Configure rate limits if available
  4. Audit access - Log who configures AI settings

Troubleshooting

AI Not Responding

Problem: Calls reach AI but no response.

Solutions:

  • Check AI provider status
  • Verify API credentials
  • Review provider configuration
  • Check phone number assignment

Poor Quality Responses

Problem: AI gives incorrect or unhelpful responses.

Solutions:

  • Review AI training/prompts
  • Update knowledge base
  • Adjust AI model settings
  • Consider different provider

Calls Not Reaching AI

Problem: Calls bypass AI routing.

Solutions:

  • Verify DID routing configuration
  • Check extension type is "AI Assistant"
  • Review IVR menu destinations
  • Ensure AI Assistant is active

Limitations

Current Limitations

  • AI Assistants cannot make outbound calls
  • Complex multi-turn conversations may have limitations
  • Provider-specific feature limitations apply
  • Requires internet connectivity

Next Steps


Related Documentation: