/twilio
command enables you to make phone calls and send SMS messages through Twilio. Perfect for:
- Making automated phone calls
- Sending SMS notifications
- Voice messaging
- Phone number verification
- Customer communications
Basic Usage
Use the command to interact with Twilio:Key Features
Voice Calls
- Make outbound calls
- Use text-to-speech
- Play pre-recorded messages
- Use TwiML for complex flows
SMS Messaging
- Send text messages
- Bulk messaging
- International SMS
- Delivery tracking
TwiML Support
- Custom call flows
- Interactive voice response
- Call forwarding
- Voice recordings
Example Commands
Simple Phone Call
SMS Message
Call with TwiML
Voice URL Call
Phone Number Format
Always use E.164 format:- Start with + and country code
- No spaces or special characters
- Example: +14155551234
TwiML Basics
Common TwiML verbs:<Say>
: Text-to-speech<Play>
: Play audio file<Gather>
: Collect digits<Record>
: Record voice<Dial>
: Connect calls
Tips
- Verify phone numbers are in E.164 format
- Test with Twilio test numbers first
- Keep messages concise for SMS (160 character limit)
- Use TwiML for interactive voice flows