Voice AI Agents
Kaanha AI includes a full Voice AI stack powered by Bolna — an open-source voice orchestration engine — with Twilio for telephony and ElevenLabs for text-to-speech.Architecture
Activating Voice & SMS
Voice and SMS use Kaanha AI’s Twilio Tech Provider model — each organization gets its own Twilio subaccount and phone number.- Go to Settings → Voice
- Select your Country (for phone number purchase)
- Click Activate Voice & SMS →
- Create a dedicated Twilio subaccount for your organization
- Purchase a local phone number in your selected country
- Configure inbound webhooks automatically
- Show your assigned phone number
Requirements: Twilio Tech Provider program must be enabled at the platform level. Contact your admin if activation fails.
Creating a Voice Agent
- Go to Voice Agents → Create Agent
- Configure the agent:
| Field | Description |
|---|---|
| Name | Agent name (e.g., “Support Bot”) |
| System Prompt | Instructions for the AI (same as chat agents) |
| First Message | What the bot says when the call connects |
| LLM Model | OpenAI GPT-4o or compatible |
| Voice | ElevenLabs voice ID |
| Language | Primary language for the conversation |
| ASR Provider | Deepgram (default) |
Advanced Configuration
| Field | Default | Description |
|---|---|---|
| Interruption Sensitivity | Medium | How easily the AI pauses when spoken over |
| Silence Timeout | 10s | Hang up after N seconds of silence |
| Max Duration | 600s | Maximum call length in seconds |
| End Call Keywords | goodbye, bye, end call | Phrases that terminate the call |
Making Outbound Calls
- Open a Voice Agent
- Click Call Contact
- Enter a phone number in E.164 format (e.g.,
+1 415 555 0100) - Click Start Call
- Initiate a call from your assigned Twilio number
- Connect the contact to your voice agent
- Record the call transcript in real-time
Handling Inbound Calls
Inbound calls to your Twilio number are automatically routed to the voice agent configured for inbound handling. Webhook:POST /api/webhooks/twilio/voice
Call History
View all calls under Voice Agents → [Agent Name] → Call History:| Column | Description |
|---|---|
| Contact | Caller’s phone number |
| Duration | Call length in seconds |
| Status | completed / failed / busy / no-answer |
| Transcript | Full conversation transcript |
| Recording | Audio recording (if enabled) |
SMS Channel
Your Twilio phone number also supports two-way SMS messaging, visible in the Chat inbox with the SMS channel indicator.SMS Compliance (TCPA)
Kaanha AI automatically handles TCPA keyword compliance:| Keyword | Action |
|---|---|
STOP, UNSUBSCRIBE, CANCEL, QUIT | Opt out — no more SMS sent to this contact |
START, SUBSCRIBE, UNSTOP | Opt back in |
HELP, INFO | Auto-reply with support info |
smsOptedIn field on contacts is independent of WhatsApp opt-in.
Provisioning Details
| Resource | Where Stored |
|---|---|
| Subaccount SID | Organization.twilioSubAccountSid |
| Auth Token | Organization.twilioSubAccountToken (AES-256-GCM encrypted) |
| Phone Number SID | Organization.twilioPhoneNumberSid |
| Phone Number | Shown in Settings → Voice |