Twilio lets your app send SMS and WhatsApp messages, verify phone numbers with one-time codes and place voice calls.
What you can ask for#
Text a verification code to a user's phone when they sign up.
Send an SMS to a test number to confirm the setup.
Send a WhatsApp reminder the day before an appointment.
Connect Twilio#
Step 1: Find the connector
Open Tools, then Connectors, and search for Twilio. You can also go to Settings, then Connectors, in your dashboard.
Step 2: Select Connect
Select Connect to open the secure form.
Step 3: Enter the details
Fill in Account SID, API Key SID and API Key secret. Hidden fields show as dots; use the eye icon to check what you typed.
Step 4: Save
Select Save connection. Swarmz encrypts the credentials and only decrypts them to call Twilio for you. Everyone in your workspace can then use the connection.
Where to find your credentials#
In the Twilio console, create a Standard API key and copy the key SID and its secret straight away. Also copy your Account SID. Use the API key, not your account Auth Token. Phone numbers use international format, such as +12025550123.
What the AI can and can't do#
- Send SMS and WhatsApp messages and check their delivery status.
- Start and check phone verifications, and place voice calls.
- Callback and media addresses must use HTTPS.
- Twilio charges apply to your Twilio account.
- Apps you publish can call this connector too, not just the builder.
- Changes ask for your approval by default. You can adjust this under Agent permissions on the connection. See What an integration can access.
Troubleshooting#
A message does not arrive.
Check the number format, the sender and your Twilio balance, and that trial accounts can only message verified numbers.
The secret is hidden.
Twilio shows the secret once. Create a new key if you lost it.
WhatsApp fails.
WhatsApp needs an approved sender in Twilio, and addresses look like whatsapp:+12025550123.
General steps for any connector are in Connect an integration. Keys and secrets are covered in Secrets and API keys. To remove it, see Disconnect an integration.
What Swarmz can do with it
SMS messaging
Send and receive text messages programmatically. The AI generates send functions with proper phone number formatting, message status tracking, and delivery receipts.
Phone verification (Verify)
Add phone-based 2FA and OTP verification to sign-up and login flows. The AI scaffolds the full flow, send code, verify code, handle expiry, and rate limiting.
Voice calls
Make outbound calls and handle inbound calls with TwiML-based call flows. The AI generates IVR menus, call forwarding, and voicemail recording logic.
WhatsApp messaging
Send WhatsApp messages through the Twilio API using approved message templates. The AI generates template selection, variable substitution, and delivery tracking.
More in Messaging & email
Still stuck?
A person from Swarmz Support can take a look.