How to Integrate Twilio
This integration enables a voice AI agent to initiate and receive phone calls via Twilio, using Twilio’s built-in voice and speech models.
Unlike SIP integration, which requires separately connecting speech input/output models, Twilio provides built-in speech-to-text (STT) and text-to-speech (TTS) capabilities. This significantly reduces external configuration and simplifies the setup process.
Steps to Connect Twilio
- Go to Settings > Channels.
- Select Twilio.
- Select Add +.
- Enter the following information:
| Field | Description |
|---|---|
| Name | Custom name for the integration. |
| Description | Optional description of the integration. |
| Voice model | Voice model used for speech synthesis, for example, Polly.Salli. |
| Region | Twilio region, for example, us1, ie1, au1. |
| Data center edge | Twilio data center location, for example, sydney, dublin, frankfurt. |
| Speech model | Model used for speech recognition, for example, googlev2_telephony. |
| Account ID | Your Twilio account’s unique identifier. |
| Token | Secret authentication token for Twilio. |
| Twilio number | Phone number connected in your Twilio account. |
- Click Save.
Integration Highlights
- Built-in STT/TTS: Twilio handles speech recognition and generation internally, so no additional STT/TTS integration is required on the Flametree side.
- Supports both inbound and outbound calls: The AI agent can initiate calls to users and receive incoming calls via the connected number.
- Exclusive to Twilio: This integration type does not support third-party VoIP or SIP servers.