Twilio Integration
The Twilio Integration allows your app to use Twilio to send and receive SMS, WhatsApp messages, and voice calls. Once connected, your app can trigger messages or calls directly from workflows, user actions, or automated events.
What You Can Do
With Twilio, your app can:
- Send SMS messages to users or customers globally.
- Send and receive WhatsApp messages.
- Make and manage voice calls programmatically.
- Automate notifications, alerts, and transactional messages.
- Integrate messaging into AI workflows for dynamic, real-time communication.
Step 1: Obtain Twilio Credentials
- Go to your Twilio Console.
- Copy your Account SID and Auth Token from the Account Info panel on the dashboard (click Show to reveal the Auth Token).
- Example Account SID:
ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - Example Auth Token:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Step 2: Configure the Integration in Your App
- In Reflex Build, open the Integrations tab and select the Twilio card.
- Click Add connection and paste your Account SID into TWILIO_ACCOUNT_SID and your Auth Token into TWILIO_AUTH_TOKEN.
- Click Connect to save the connection.
Once connected, your app can send messages or make calls through Twilio directly in workflows and components.
Step 3: Notes
- Keep your credentials secure: Never expose your Auth Token in client-side code.
- Use environment-specific credentials: Separate dev, staging, and production credentials.
- Phone number setup: Ensure you’ve configured a valid Twilio number for sending messages or calls.
- Regulatory compliance: Review Twilio’s messaging and voice compliance requirements for your region.