SMS
Tavio supports SMS messaging through Africa's Talking and Twilio. Customers send text messages to your shortcode or phone number and receive AI-powered replies.
Supported Providers
| Provider | Best For | Coverage |
|---|---|---|
| Africa's Talking | East & West Africa | Kenya, Uganda, Tanzania, Nigeria, etc. |
| Twilio | Global coverage | 180+ countries |
Webhook URL
SMS Webhook
text
https://bankmind.aihookd.site/api/channels/smsConfigure this URL in your SMS provider's dashboard as the callback URL for incoming messages.
Required Credentials
Africa's Talking
| api_key | Your Africa's Talking API key |
| username | Your AT username (use "sandbox" for testing) |
| shortcode | Your registered SMS shortcode |
Twilio
| account_sid | Twilio Account SID |
| auth_token | Twilio Auth Token |
| phone_number | Your Twilio phone number (E.164 format) |
Message Limits
Standard SMS messages are limited to 160 characters per segment. AI responses are capped at 140 tokens to ensure they fit within a single SMS segment when possible. Longer responses may be split across multiple segments by the carrier.
Message Flow
- Customer sends SMS to your shortcode or phone number
- Provider forwards the message to your webhook URL
- Tavio processes the message through the AI pipeline
- Response is sent back via the provider's API
Africa's Talking inbound payload
json
{
"from": "+254712345678",
"to": "20880",
"text": "Check my balance",
"date": "2024-01-15 10:30:00",
"id": "ATXid_abc123"
}