Twilio Integration Guide

Connect your AI agent to Twilio for SMS messaging, voice calls, phone number management, and call recording using your Account SID and Auth Token.

What your agent can do

Full SMS and voice capabilities through the Twilio API.

SMS sending and receiving

Send text messages to any phone number and receive incoming messages. Your agent can handle customer communication, appointment reminders, and two-way text conversations.

Voice calls

Initiate outbound calls and handle inbound call routing. Your agent can make follow-up calls, run phone trees, and manage call flows programmatically.

Phone number management

List, search, and manage your Twilio phone numbers. Your agent can check which numbers are active and route messages to the right destination.

Call recording

Record calls for compliance, training, or quality assurance. Your agent can start, stop, and retrieve recordings through the Twilio API.

Prerequisites

What you need before connecting Twilio to your agent.

  • A Twilio account (free trial available at twilio.com)
  • Your Account SID and Auth Token from the Twilio Console
  • At least one Twilio phone number with SMS and/or Voice capability
  • A ClawTrust agent on any plan (Starter, Pro, or Enterprise)

Step-by-step setup

Connect Twilio to your agent in about 5 minutes.

1

Log into the Twilio Console

Go to console.twilio.com and sign in. If you do not have an account, create one. Twilio offers a free trial with test credits.

2

Copy your Account SID and Auth Token

On the Twilio Console dashboard, you will see your Account SID and Auth Token. Click "Show" to reveal the Auth Token, then copy both values. These are your API credentials.

3

Get a phone number (if needed)

If you do not have a Twilio phone number yet, go to Phone Numbers > Manage > Buy a Number. Choose a number with SMS and/or Voice capability depending on what you need.

4

Add the credential in ClawTrust

In your agent's dashboard, go to Credentials > Add Credential. Select "Username & Password" as the type. Enter the Account SID as the username and the Auth Token as the password. Set allowed domains to *.twilio.com.

5

Test the connection

Click "Test" on the credential card. ClawTrust will authenticate against the Twilio API and verify access. You can then ask your agent to send a test SMS to confirm end-to-end functionality.

Credential details

Reference for the credential configuration fields.

Credential typeUsername & Password
Username fieldAccount SID (starts with AC...)
Password fieldAuth Token (from Twilio Console)
API endpointhttps://api.twilio.com/2010-04-01/
Allowed domains*.twilio.com
Auth methodHTTP Basic Auth (SID:Token)
Token storageAES-256-GCM encrypted

Security note

Your Auth Token is encrypted with AES-256-GCM before storage. The credential proxy restricts all outbound requests to *.twilio.com domains only. You can rotate the Auth Token from the Twilio Console at any time. For additional security, consider using a Twilio API Key (secondary credential) instead of the main Auth Token.

Example actions

Things you can ask your agent to do once Twilio is connected.

Send an SMS to +1-555-0123 with the appointment confirmation for tomorrow at 3 PM

Check for any incoming text messages in the last hour

Call the customer at +1-555-0456 and play the voicemail greeting

List all active phone numbers on our Twilio account

Send a bulk SMS to all customers with upcoming appointments this week

Ready to give your agent a phone number?

SMS and voice in 5 minutes. Encrypted credentials, domain-locked proxy, full audit log.