Twilio integration
XUNA AI configures your Twilio number automatically when you link it in the dashboard. You don’t need to set up webhooks or TwiML manually.- Inbound calls
- Outbound calls
Connect a Twilio number for inbound calls
1
Open the Phone Numbers tab
In the XUNA AI dashboard, go to Phone Numbers.
2
Add a new number
Click Add phone number and fill in the following fields:
3
Save the number
Click Save. XUNA AI automatically configures the Twilio number to route inbound calls to the platform.
4
Assign an agent
Select the agent you want to handle calls on this number. Click Assign agent.
5
Test the number
Call the number from any phone. Your agent answers and the conversation appears in the Conversations tab.
Number types
XUNA AI supports two types of Twilio numbers with different capabilities:Batch outbound calls
Use the batch calls API to trigger large volumes of outbound calls programmatically — for appointment reminders, surveys, or sales campaigns.variables to inject dynamic values into your agent’s prompt for each recipient. Configure these variables in your agent’s system prompt.
SIP trunking
Connect XUNA AI to your existing telephony infrastructure using SIP (Session Initiation Protocol). This lets you route calls from a PBX, contact center platform, or PSTN gateway to your XUNA AI agent.1
Open the Phone Numbers tab
Go to Phone Numbers in the XUNA AI dashboard.
2
Add a SIP trunk
Click Add SIP trunk and enter your SIP endpoint details.
3
Configure your PBX
Point your PBX or PSTN gateway to the XUNA AI SIP endpoint provided in the dashboard.
4
Assign an agent
Select the agent to handle calls that arrive on the SIP trunk.
5
Test the connection
Place a test call through your existing infrastructure and verify it routes to your agent.
SIP trunk availability depends on your XUNA AI plan. Contact support if you don’t see the SIP trunk option in your dashboard.
Next steps
- Trigger outbound campaigns programmatically with the batch calls API reference.
- Review conversation transcripts and outcomes in analytics.
- For web or app deployment, see the React SDK or mobile SDKs.

