Skip to main content

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.


Setting Up: Connect Twilio

  1. Go to Settings > Channels

  2. Select Twilio

  3. Select Add +

  4. Enter the following information:

    FieldDescriptionRequired
    NameDisplay name for this Twilio connector
    DescriptionOptional notes about this connector
    Account SIDUnique identifier for your Twilio account
    Auth TokenTwilio secret key for API authentication
    Phone numberTwilio phone number used as the caller ID for outbound calls and as the receiving number for inbound calls (E.164 format, for example, +14155550123)
    Voice modelVoice used for speech synthesis (Twilio TTS voice, for example, Polly.Salli)
    Speech modelSpeech recognition model used by Twilio STT (for example, googlev2_telephony)
    RegionTwilio region code that defines where API and media servers are hosted (for example, us1, ie1, au1, de1, sg1)
    EdgeTwilio edge location — the geographic entry and exit points closest to your infrastructure, used to reduce call latency (for example, dublin, ashburn, tokyo)
    info

    Both Region and Edge are optional. If left empty, Twilio uses the default infrastructure (us1 / ashburn)

  5. Click Save to add the communication channel

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 customers and receive incoming calls via the connected number.
  • Exclusive to Twilio: This integration type does not support third-party VoIP or SIP servers.

Was this article helpful?