SMS Text Messages
With the SMS Channel it’s possible to send text messages from Campaigns in Mautic.
Nota
To use this Channel you must first set up an SMS transport, such as Twilio.
Type of Text Messages
Mautic allows you to create two types of Text Messages, in the same way as you can create different types of Emails.
Template Text Messages
A template Text Message is automatically sent by Campaigns, Forms, Point Triggers etc. You can edit Template Text Messages after creation, but they can’t manually send them to a Contact list.
Segment Text Messages
A Segment Text Message can be manually sent to Contact lists - Segments - in Mautic. Once sent, you can’t edit the Text Message, however you can send it to new Contacts as they join the associated Segment.
Note that these are marketing Text Messages by default, and each Contact can only receive the Text Message once - it’s the same principle as a mailing list.
You must initiate the send of Segment Text Messages with the Send Scheduled Broadcast
cron job. See cron jobs documentation for more information.
Creating a Text Message
To create a Text Message, navigate to Channels > Text Messages and click the “New” button.
Select whether you wish to create a Template or Segment Text Message, which presents the required fields.
Template Text Message fields
The following fields are available:
Internal name - This is the internal name used within Mautic when referring to this Text Message. For example Mautic uses this in dropdown selection lists in the Campaign Builder.
Text Message - This is the actual content of the Text Message which is sent to the Contact. There is a character count below the field which helps you to identify the required number of messages to send the full text. You may use tokens, such as {contactfield=firstname}
. To find the appropriate token, go to Settings > Custom Fields and use the field alias with the token format: {contactfield=fieldalias}.
Category - This allows you to select a Category to help you with organizing your Text Messages.
Language - This allows you to set the language of this Text Message.
Published - This allows you to set the published status of the Text Message. Unpublished Text Messages aren’t sent.
Segment Text Message fields
The following fields are available:
Internal name - This is the internal name used within Mautic when referring to this Text Message. For example, Mautic uses this in dropdown selection lists in the Campaign Builder.
Text Message - This is the actual content of the Text Message sent to the Contact. There is a character count below the field which helps you to identify the required number of messages to send the full text. You may use tokens, such as {contactfield=firstname}
. To find the appropriate token, go to Settings > Custom Fields and use the field alias with the token format: {contactfield=fieldalias}.
Category - This allows you to select a Category to help you with organizing your Text Messages.
Language - This allows you to set the language of this Text Message.
Published - This allows you to set the published status of the Text Message. Unpublished Text Messages aren’t sent.
Contact Segment - This allows you to define the Segment/s who should receive the Text Message.
Publish at (date/time) - This allows you to define the date and time at which this Text Message is available for sending to Contacts
Unpublish at (date/time) - This allows you to define the date and time at which this Text Message ceases to be available for sending to Contacts.
Creating Text Messages from Campaign Builder
It’s also possible to create a Text Message from within the Campaign Builder. To do this, select the Campaign Action of Send Text Message and press the New Text Message button rather than selecting an existing Text Message in the dropdown.
As you plan to use this Text Message within a Campaign, it’s by default created as a Template Text Message and show the relevant fields accordingly.
Sending Text Messages as a Marketing Messages
Mautic allows you to create a single message - for example “Red shoes on offer today!” - in multiple Channels, and have it delivered through the Channel which the Contact prefers. This means that they only receive the message once, and through their preferred Channel. You can create the messages under the Marketing Messages section.
If a Contact’s preferred Channel is Text Messages, Mautic delivers the message through the Text Message Channel when a Marketing Message includes a Text Message.
Managing unsubscribes
Nota
In order for Mautic to process Text Message replies for unsubscribes and replies to messages, you must first configure the Webhook. For more information review the Twilio documentation.
Contacts can unsubscribe from your Text Messages by replying with the word STOP
, or any of the accepted phrases (STOP
, STOPALL
, UNSUBSCRIBE
, CANCEL
, END
, and QUIT
), to your SMS. Once Mautic receives this SMS, Mautic flags the specific Contact as “Do Not Contact” (DNC) for the SMS Channel, and won’t allow messages again via this Channel unless the Contact manually re-subscribes at a later date.
You can also view SMS replies in the Contact timeline:
Working with replies to Text Messages
In a Mautic Campaign, where Mautic has an active Text Message provider, there is a Campaign Action called “Sends a Text Message” which allows you to monitor incoming replies for specific patterns and take action accordingly.
This decision tracks replies to your messages and looks for specified patterns within a message. This isn’t dependent on you first sending the Contact a message.
For example, you can specify “red” in “Pattern the reply should match”. If your message contains language, such as reply from the Contact using the word “Red” to a question of their favourite shoe colour, Mautic looks for incoming Text Messages with that pattern. In this example, you may add an action on the decision’s Yes path for adding a colour preference to the Contact’s profile.
Important notes
Contact phone numbers should be in the format +XXXXXXX including the + and with no spaces
There must be a phone number in the Mobile Phone Contact field
When configuring the Twilio Plugin, the sender number must be in the format +XXXXXXX and this number associated with the Twilio account