Twilio

Mautic - Twilio Plugin

Before you start to send text messages from your Mautic instance, it needs to connect to the service which can send them.

The first and default implemented service is Twilio.

In order to configure the text messages correctly, follow these steps:

  1. Create an account at Twilio.

  2. In Mautic, go to Settings (cog icon) > Plugins.

  3. Open Twilio Plugin and activate it.

  4. Log into your Twilio account and go to Dashboard.

Screenshot of the SID and Auth Token fields
  1. Copy the Account Sender ID (SID) from Twilio account and paste it to Account Sender ID field in the Twilio Plugin configuration.

  2. Unlock and copy the Auth Token and paste it to Auth Token field in the Twilio Plugin configuration.

  3. Go to Phone Numbers > Active numbers in Twilio, add a phone number if you haven’t already commissioned one.

  4. Go to Messaging > Services in Twilio, and create a new Messaging Service. Select the appropriate settings from the dropdown in the first step as relevant to your usage of SMS messages with Mautic, then click ‘Create Messaging Service’ at the bottom right.

Screenshot of the Messaging Services interface
  1. Click the button to add your phone number as a Sender for this Messaging Service, then select the box and click ‘Set up Integration’ at the bottom right to move on to the next step.

  2. Select ‘Send a Webhook’ under the Integration settings.

  3. Configure the Request URL and Fallback URL to use the callback URL of https://example.com/sms/twilio/callback where example.com is your Mautic instance domain. Also enter this in the ‘Delivery Status Callback’ field.

Screenshot of the Messaging Services interface
  1. Click the ‘Add Compliance Info’ button to proceed to the next step, where you can register to send Application to Person (A2P) messages using a 10 digit long code phone number. Otherwise, click the button in the bottom right to complete setup. Click on ‘View my new Messaging Service’ to see the details of the service you just created. Once created you can view the SID from the Messaging > Services screen.

Screenshot of the Messaging Services ID field on Twilio.
  1. Copy the Messaging Service ID and paste this into the ‘Features’ tab of your Mautic Twilio Plugin settings

Screenshot of the Messaging Services ID field in Mautic.
  1. Configure the global frequency rules for the SMS Channel as appropriate for your business.

  2. Select the Published? switch to Yes in the Enabled/Auth tab in Mautic and save the Plugin configuration.

Alphanumeric Sender ID

Alphanumeric Sender ID allows you to send SMS messages using a personalized sender name, in supported countries see International Support for Alphanumeric Sender ID.

Instead of using an E.164 formatted Twilio Phone number for the ‘From’ value, you can use a custom string like your own business’ branding.

Note

You can’t reply directly to messages sent out with an Alphanumeric Sender ID.

Alphanumeric Sender ID requirements

Alphanumeric Sender ID is automatically supported on all new upgraded (paid) Twilio accounts. It’s not supported for Free Trial accounts.

You can verify if your account has Alphanumeric Sender enabled by following these steps:

  1. Login to your account at Twilio.

  2. From the left side navigation bar, click Messaging > Overview.

  3. Click Settings.

  4. From the General Messaging Settings page, Verify the ‘Alphanumeric Sender ID’ setting.

Screenshot of the Alphanumeric settings on Twilio.

Adding alphanumeric sender ID to a Messaging Service

  1. Open your Messaging Service via your Twilio Dashboard

  2. Under the Senders section, click the Add Senders IDs button

  3. From the Add Senders IDs dropdown, select Alpha Sender and enter the alphanumeric sender ID that you want to add to the Sender Pool.

Read more info about Alphanumeric Sender ID on Twilio site.