Skip to main content

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.
Telephony empty state

๐Ÿ“‹ 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: Select Agent Voice 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: Select Agent 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: Select LLM 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

FieldNotes
SIP URIThe Twilio termination SIP URI (or the Vapi URI when you mint a free number).
Account SID / UsernameYour Twilio Account SID, or the username for a custom SIP trunk.
Auth Token / PasswordYour Twilio Auth Token, or the password for a custom SIP trunk.
Telephony Connection config

Interaction tab โ€“ pick the brain and voice

FieldNotes
Language ModelThe model used during the call. Voices are filtered automatically by provider, so the voice list refreshes when you change the model.
VoiceThe voice the AI uses on the call. Includes Aivahโ€™s built-in voices and any voice clones youโ€™ve added.
System PromptOverride the agent persona and instructions during phone calls without changing the agent itself.
Telephony Interaction config
Click Save Changes to persist. The page also lets you delete any saved phone number. After saving, calls placed to the number are routed through Aivahโ€™s media servers and answered by your agent.

๐Ÿ”ง Authentication Setup

Twilio Credentials Configuration

  1. Twilio Account SID: Enter your Account SID from Twilio Console
  2. Twilio Account Token: Provide your Auth Token for secure authentication

Phone Number Configuration

  1. Enter Phone Number: Input the Twilio phone number you want to use
  2. 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:
  1. Twilio Termination SIP URI โ€“ paste the termination URI from your Twilio SIP trunk configuration.
  2. Twilio Username / Password โ€“ paste the SIP credentials Twilio shows when you create the trunk.
  3. Aivah will use those credentials to authenticate against your trunk for every call.
Leave these fields blank if you want Aivah to route directly through the Twilio number.

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

  1. Save Configuration: Click Save Configuration to persist your changes
  2. Test Call: Place a test call to verify voice quality and response accuracy
  3. 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
Need help? Contact our support team for assistance with your Twilio integration.