Chatilo
USDPrices shown in US dollars Sign in Start free trial

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.

Last updated

On this page
  1. Before you start
  2. Connect Twilio
  3. Connect MSG91
  4. Send yourself a test SMS
  5. What happens next
  6. Common problems

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:

TwilioMSG91
What you can sendAny text you writeOnly a template you set up in MSG91. Your text fills one variable in it
Checked when you connectYes, the Account SID and Auth Token are checked at onceNo. MSG91 cannot check a key in advance, so send a test SMS
Receiving repliesYes, after you add the webhook to your numberOnly if your MSG91 number supports incoming SMS (Indian long codes do not)

Connect Twilio

  1. In the sidebar, under Connect, click More channels, then Connect SMS.
  2. Leave Twilio selected.
  3. Optionally fill in Label, for example Shop SMS line. If you leave it empty, the name of your Twilio account is used.
  4. Paste the Account SID. It starts with AC and is 34 characters long.
  5. Paste the Auth Token. Both are on the first page of your Twilio console. The token is stored encrypted.
  6. 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.
  7. Click Connect.

    You see "Connected. To receive replies, add the webhook address below to your number in Twilio."

  8. 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.

  1. In the sidebar, under Connect, click More channels, then Connect SMS.
  2. Choose MSG91.
  3. Optionally fill in Label.
  4. Paste the Auth key from your MSG91 panel. It is stored encrypted.
  5. Enter your Sender ID: 3 to 11 letters or digits (6 letters in India).
  6. Enter the Template ID from MSG91 (SMS → Templates).
  7. 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 with VAR1.
  8. 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##.
  9. 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."

  10. 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.

Cookies on this site

We use the cookies needed to run the site and keep you signed in. With your OK we also remember choices you make here, such as the currency for prices. We don’t use advertising or tracking cookies. Cookie policy