company logo

Help center

Go to Loyally.ai
Login
HomepageRoadmapFeature RequestBlogCreate an accountGet in touch
All collectionsMailings: Push, SMS, & EmailSMS CampaignSMS Setup with Twilio

SMS Setup with Twilio

Connect your Twilio account with Loyally.ai to send text messages (sms) to your customers.

Enable SMS Communication with Your Customers

Connect your Twilio account for direct SMS communication with your customers!

Step 1: Create/Log in to Your Twilio account

Log in to your account at console.twilio.com. If you don't have an account yet, you will need to sign up and verify your email and phone number first.

2. Locate Account Info

Once you are on the Console Dashboard’, scroll down to the Account Info pane. This is usually located right in the center of the home screen.

3. Copy Your Credentials

You will see two specific strings of characters:

  • Account SID - This is your "username." It is public-facing and identifies your account.

  • Auth Token - This is your "password." Copy the API key in your clipboard.

Step 4: Identify Your Sender Number or Service SID

Now that you have your credentials, you must tell the app which "Sender" to use. You will either use an individual phone number or a Messaging Service.

Option A: Use a Specific Phone Number

If you are starting out or have a single local/toll-free number:

  • In the Twilio Console sidebar, go to Phone Numbers > Manage > Active Numbers.

  • Copy the number you want to use.

  • Format - Ensure you include the plus sign and country code (e.g., +15551234567).

info icon
Note: If you do not see any numbers listed, you will need to purchase one before proceeding. You can do this by clicking Buy a Number within the Phone Numbers menu.

Option B: Use a Messaging Service SID (Recommended for Scaling)

If you have a Messaging Service configured for better deliverability and high-volume sending:

  • In the Twilio Console, go to the Messaging menu and select Services.

  • Select the specific service you created for this loyalty program.

  • Locate the Messaging Service SID (a 34-character string starting with MG).

info icon
Note: If you haven't set this up yet, you will need to click Create Messaging Service first. This allows you to group multiple numbers together and handle opt-outs more effectively.

Copy the Sender Number or Service SID in your clipboard.

4. Connect your Twilio Account with Loyally.ai

  1. Sign in to Loyally.ai and go to 'Settings' in the Menu Panel.

  2. Navigate to 'Services' section.

  1. Under "Twilio SMS", click 'Connect account' fill in with the same details from your Twilio account

    1. Twilio SID

    2. Twilio Auth Token

    3. Sender phone number

After filling up the details, click ‘Connect‘.


Sending a Test Message via Twilio

Once you have connected your Twilio account, it is a good idea to send a test message to ensure your integration is working correctly and your sender ID is properly configured.

  1. Navigate to the ‘Settings’ gear icon located at the bottom of the left-hand sidebar menu.

  2. Click on the ‘Services’ tab at the top of the settings page.

  3. Twilio SMS section within your active services.

  4. Click ‘Send test message’ button located under your Twilio settings.

  5. A pop-up window will appear titled Send test message. Enter the Phone or Email address where you would like to receive the test.

  6. Click the ‘Send’ button to dispatch the message.


How to Disconnect Your Twilio Account

If you need to change your Twilio settings or stop using the SMS service, you can disconnect your account at any time. This will stop all automated SMS communications until a new account is linked.

  1. Click on the ‘Settings’ gear icon located at the bottom of the left-hand sidebar menu.

  2. Select the ‘Services’ tab from the top navigation menu.

  3. Find the Twilio section where your current Sender number is displayed.

  4. Click the ‘Disconnect account’ button located directly below the test message option.

info icon
Once disconnected, any features relying on Twilio SMS (such as reward notifications or verification codes) will cease to function immediately.
success icon
You can reconnect a Twilio account at any time by following the initial setup instructions and entering your Account SID and Auth Token again.

Related Articles

Creating an SMS campaign

How to create your SMS campaign

Did this answer your question?
😞
😐
😁