Skip to main content

AI Assistants

AI Assistants connect calls to AI providers via SIP or WebSocket protocols. They can be linked to extensions or used as routing destinations for auto-dialer campaigns and other PBX features.

Purpose

Use this module to:

  • Create AI assistant configurations
  • Select from supported providers
  • Configure provider-specific settings
  • Link assistants to extensions

Supported Providers

OPBX uses a registry-based provider system with 19 supported providers. Common providers include:

  • OpenAI
  • Anthropic
  • Google
  • Azure
  • Bland AI
  • Retell AI
  • Vapi
  • Ultravox
  • Custom CXML endpoint providers

Each provider defines its own JSON configuration schema with required fields, validation rules, and default values.

Extension Integration

Extensions of type AI_ASSISTANT link to an AiAssistant record via ai_assistant_id.

CXML Endpoint Proxying

When an AI_ASSISTANT extension is dialed internally and its provider is a cxml_endpoint with a proxy_did_number, OPBX forwards the call to the remote endpoint as if it were an inbound call to the proxy DID. This allows inbound-only CXML endpoints to handle extension calls.

Permissions

ActionOwnerPBX AdminPBX UserReporter
View AI assistantsYesYesYesYes
Create AI assistantsYesYesNoNo
Update AI assistantsYesYesNoNo
Delete AI assistantsYesYesNoNo

UI Workflow

Create an AI Assistant

  1. Navigate to AI Assistants in the sidebar
  2. Click Create AI Assistant
  3. Enter a name
  4. Select a provider
  5. Fill in the provider-specific configuration form
  6. Optionally enter a phone number
  7. Save
  1. Go to Extensions
  2. Create or edit an extension
  3. Set the type to AI Assistant
  4. Select the AI assistant
  5. Save

Key Data Fields

ai_assistants Table

ColumnTypeNotes
idbigintPrimary key
organization_idFKTenant scope
namestringDisplay name
providerstringProvider key from registry
configurationJSONProvider-specific settings
phone_numberstring nullableAssociated phone number
statusenumactive, inactive
MethodEndpointPurpose
GET/POST/PUT/DELETE/v1/ai-assistants[/{assistant}]Standard CRUD
GET/v1/ai-assistant/providersList available providers
GET/v1/ai-assistant/providers/{provider}Provider details
GET/v1/ai-assistant/providers/{provider}/schemaProvider config schema
GET/v1/ai-assistant/providers/protocol/{protocol}Providers by protocol

See the OPBX REST API reference for full schemas.