Don’t have a Twilio number? You can buy one through PolyAI instead, without a Twilio account of your own.
Before you start
In the Twilio Console, collect:- Your Account SID
- An API key and API secret (create a Standard key under Account > API keys & tokens)
Connect your account
In Agent Studio, go to Integrations, open the Telephony tab, click Add number, and choose Connect Twilio account. Then:- Enter your Api Key, API Secret and Account SID, and click Continue.
- Under Inbound routing, add your Twilio numbers to each environment in E.164 format (for example,
+441234567890). Leave Sandbox empty, since Sandbox has no channel connections. - Click Connect. PolyAI creates the SIP trunk in your Twilio account and routes each number to the environment you chose.
Test the connection
Call one of your routed numbers and confirm the call reaches your agent. Review the call in Conversations, filtered to Voice, to check it was handled correctly.Handoffs
Twilio transfers calls to your human agents with a SIP REFER. You don’t choose the handoff method for Twilio. Set up your transfer destinations in Handoffs. See Call handoffs.Next steps
SMS messaging
Set up SMS messaging with your Twilio account
Handoff integration
Configure call transfers to live agents
Twilio setup in Integrations
Full steps to buy a Twilio number or connect your Twilio account
Telephony overview
Explore other phone number integration options

