Twilio Phone Setup
Connect your AIVAH agents to the Twilio telephony platform for seamless voice interactions. This guide will walk you through the complete setup process.
๐ Prerequisites
Before setting up Twilio integration, ensure you have:- An active AIVAH account
- A Twilio account with phone number
- Twilio Account SID and Auth Token
- A Worker Agent configured with the knowledge sources you plan to expose
๐ฏ Configuration Steps
Step 1: Agent Voice Selection
Configure your agentโs voice from our selection of high-quality options:
Available voice options depend on the active model family:
- Gemini voices: Sportsman, Customer support, Sarah, Brooke, Katie, Zemo, ajith, duaila, azj, ajz, sjl, brit, Swissen
- OpenAI Realtime voices: Alloy, Echo, Shimmer, Ash, Ballad, Coral, Sage, Verse, Cedar, Marin
- Voices refresh automatically when you switch providers in the LLM picker
Step 2: Agent Selection
Choose the appropriate agent for your use case:
Options include:
- Worker Agents: Full-featured assistants for support, sales, or internal operations
- Presenter Agents: Specialized for guided demos and presentations while retaining full realtime capabilities
- Custom Workers: Your own Worker Agents with tailored knowledge and integrations
Step 3: LLM Model Configuration
Select your preferred Large Language Model:
Available models span four provider families:
- OpenAI: GPT 4.1 mini, GPT 4.1, GPT 5, GPT 5 nano, GPT 5 mini
- Gemini: Gemini 2.5 Flash Lite, Gemini 2.5 Flash, Gemini 2.5 Pro
- OpenAI Realtime: GPT Realtime, GPTโ4o Realtime, GPT Realtime Mini for ultra-low latency voice calls
- Groq hosted: GPT OSS 20B, GPT OSS 120B, Qwen3โ32B, Moonshotai Kimi K2 when you need alternative model behavior
Telephony Form Fields
Once a phone number is added youโll land on its detail page. The configuration is split across two tabs: Connection and Interaction.Connection tab โ wire up the number
| Field | Notes |
|---|---|
| SIP URI | The Twilio termination SIP URI (or the Vapi URI when you mint a free number). |
| Account SID / Username | Your Twilio Account SID, or the username for a custom SIP trunk. |
| Auth Token / Password | Your Twilio Auth Token, or the password for a custom SIP trunk. |

Interaction tab โ pick the brain and voice
| Field | Notes |
|---|---|
| Language Model | The model used during the call. Voices are filtered automatically by provider, so the voice list refreshes when you change the model. |
| Voice | The voice the AI uses on the call. Includes Aivahโs built-in voices and any voice clones youโve added. |
| System Prompt | Override the agent persona and instructions during phone calls without changing the agent itself. |

๐ง Authentication Setup
Twilio Credentials Configuration
- Twilio Account SID: Enter your Account SID from Twilio Console
- Twilio Account Token: Provide your Auth Token for secure authentication
Phone Number Configuration
- Enter Phone Number: Input the Twilio phone number you want to use
- Verify Configuration: Ensure the number is active in your Twilio account
Bring Your Own SIP Trunk (optional)
If you operate your own SIP infrastructure you can route inbound calls through a Twilio Elastic SIP Trunk:- Twilio Termination SIP URI โ paste the termination URI from your Twilio SIP trunk configuration.
- Twilio Username / Password โ paste the SIP credentials Twilio shows when you create the trunk.
- Aivah will use those credentials to authenticate against your trunk for every call.
Custom Prompt for Phone Calls
The Custom prompt field lets you override the agent prompt specifically for telephony. Use it to:- Add a phone-specific greeting (โYouโre an AI agent answering customer calls forโฆโ)
- Shorten responses for voice channels
- Constrain the agent to a narrower set of topics during calls
โ๏ธ Workflow Management
Navigate to the Workflows section to:- Enable/disable make.com integration
- Configure Twilio workflow automation
- Set up call routing and handling rules
๐ Active Numbers Management
Monitor and manage your active phone numbers:- View currently active Twilio numbers
- Check connection status
- Monitor usage and performance metrics
๐ Testing Your Setup
- Save Configuration: Click Save Configuration to persist your changes
- Test Call: Place a test call to verify voice quality and response accuracy
- Monitor Performance: Use Insights โ Call Logs to track call metrics and performance
๐ Best Practices
- Voice Selection: Choose voices that match your brand personality
- Knowledge Optimization: Keep your knowledge base updated and relevant
- Testing: Regular testing ensures optimal call quality
- Monitoring: Use analytics to continuously improve performance
๐ Troubleshooting
Common Issues:- Authentication Errors: Verify your Twilio credentials
- Call Quality: Check your internet connection and Twilio account status
- Response Delays: Consider switching to GPT Realtime Mini or Gemini 2.5 Flash Lite for faster responses
- Voice Issues: Test different voice options to find the best fit
