Connect SMS with your own Twilio or MSG91 account
Connect your Twilio or MSG91 account so you can send and receive text messages from your Chatilo inbox.
On this page
Chatilo sends SMS through an account you hold with Twilio or MSG91. Your provider bills you for each SMS; Chatilo does not sell SMS credit. Once connected, text messages appear in your inbox and you can send SMS broadcasts.
Before you start
- You must be a workspace owner or admin.
- Your plan must include Instagram, Messenger, Telegram and SMS.
- An account with Twilio or MSG91 that is allowed to send to your customers' country.
Choose your provider with care, because they work differently:
| Twilio | MSG91 | |
|---|---|---|
| What you can send | Any text you write | Only a template you set up in MSG91. Your text fills one variable in it |
| Checked when you connect | Yes, the Account SID and Auth Token are checked at once | No. MSG91 cannot check a key in advance, so send a test SMS |
| Receiving replies | Yes, after you add the webhook to your number | Only if your MSG91 number supports incoming SMS (Indian long codes do not) |
Connect Twilio
- In the sidebar, under Connect, click More channels, then Connect SMS.
- Leave Twilio selected.
- Optionally fill in Label, for example
Shop SMS line. If you leave it empty, the name of your Twilio account is used. - Paste the Account SID. It starts with
ACand is 34 characters long. - Paste the Auth Token. Both are on the first page of your Twilio console. The token is stored encrypted.
In Send from, enter one of:
- your Twilio phone number with its country code, like
+14155550100, - a Messaging Service SID starting with
MG, - a sender name of 2 to 11 letters and digits, in countries where Twilio allows one.
- your Twilio phone number with its country code, like
Click Connect.
You see "Connected. To receive replies, add the webhook address below to your number in Twilio."
- To receive replies: under Connection details, copy Webhook for incoming messages from the new card. In the Twilio console, open your phone number (or Messaging Service) and set the webhook for incoming messages to that address, with the method HTTP POST.
Delivery reports come back on their own; you do not set anything up for them.
Connect MSG91
MSG91 only sends templates you have created in its panel. In India that must be your DLT-approved template. First make a template with a single variable where your message goes, for example Dear customer, ##VAR1## - MALABR.
- In the sidebar, under Connect, click More channels, then Connect SMS.
- Choose MSG91.
- Optionally fill in Label.
- Paste the Auth key from your MSG91 panel. It is stored encrypted.
- Enter your Sender ID: 3 to 11 letters or digits (6 letters in India).
- Enter the Template ID from MSG91 (SMS → Templates).
- In Variable that holds your message, type the variable name exactly as it is in the template, without the
##marks. Capital letters matter. The field starts withVAR1. - Optionally paste the full Template wording. Your team then sees the whole SMS and the right length when they write. The wording must contain your variable, such as
##VAR1##. Click Connect.
You see "Saved. MSG91 can't check an auth key in advance, so send yourself a test SMS below and make sure it arrives."
Copy the Webhook address from the new card. In MSG91, add it under SMS → Webhook to get delivery reports. If your MSG91 number supports incoming SMS, set the same address as that number's callback.
Keep this address private. The code at the end is how Chatilo knows a request really comes from MSG91.
To send different wording through MSG91, register another template and connect it as a separate SMS account.
Send yourself a test SMS
On the account's card, type your mobile number with its country code (like 919876543210) under Send yourself a test SMS and click Send test. The text reads "Test from" followed by your workspace name. Your provider charges for it like any other SMS.
With MSG91, an accepted test is not proof. If the SMS has not arrived in a minute, the auth key, sender ID or template is wrong: check SMS → Logs in MSG91.
What happens next
- The card shows Connected, and Receiving messages once the provider has called your webhook.
- An incoming SMS opens a conversation in Work → Inbox, marked as SMS. The sender is matched to an existing contact by phone number, or added as a new contact.
- If a customer sends a picture by MMS through Twilio, the picture stays on Twilio and the inbox shows "[Sent a picture or file by MMS]".
- If someone replies STOP, Twilio stops delivering to them and Chatilo marks them as opted out.
- You can now send SMS broadcasts.
Common problems
That doesn't look like an Account SID. It starts with AC and is 34 characters long.
You pasted something else, often an API key SID (which starts with SK). Copy the Account SID from the first page of the Twilio console.
Twilio didn't accept this Account SID and Auth Token. Copy them again from your Twilio console.
The two do not belong together, or the token was changed. Copy both again.
This Twilio account is suspended, so it can't send messages.
Twilio reports the account as not active (the message names the state). Sort this out with Twilio first.
Enter your Twilio number with its country code, like +14155550100, or a Messaging Service SID starting with MG.
The Send from value is not a phone number, a Messaging Service SID or a valid sender name.
Enter the template ID from MSG91 (SMS → Templates). MSG91 can't send without one.
The template ID is 6 to 40 letters and digits. Copy it from the MSG91 panel.
This wording doesn't contain ##VAR1##. Paste the template exactly as it is in MSG91, or leave this empty.
The template wording you pasted does not include the variable you named. Fix one of the two, or leave the wording empty.
That SMS account is already connected.
For Twilio, the same Account SID and sender are already connected. For MSG91, the same sender ID and template ID are.
An SMS shows as sent but never arrived (MSG91)
MSG91 answers "accepted" even for a wrong key or template and reports the problem later. Without the webhook in MSG91, Chatilo never hears about it. Add the webhook address, and remember that in India operators only deliver wording that matches your DLT-approved template and usually allow about 30 characters for a variable.