Universal chat for Mautic Webchat, SMS, Whatsapp, Facebook Messenger, LiveChat, and plugin to any chatbot (Rasa, Google Dialogflow, IBM Watson,...).
- Mautic 3.2
- PHP 7+
- Composer 1+ (Recommended 1.10.22)
- stomp-php/stomp-php: Stomp PHP Client (can be installed by composer command).
- Run
composer require stomp-php/stomp-php
to install stomp-php client. - Run
rm -rf var/cache/*
- Download https://github.com/expertflow/mautic-amq-plugin
- Extract it to
plugins/MauticActivemqTransportBundle
- Delete
app/cache/prod
or runrm -rf var/cache/*
to clear the cache - Go to
Plugins
in the Mautic admin menu (/s/plugins) - Click on the
Install / Upgrade Plugin
button to install plugin or runphp app/console mautic:plugins:install
to install plugin via commandline - Go to Mautic configuration (/s/config/edit) and click on the Text Message Settings, then choose ActiveMQ as the default transport.
After configure the plugin.
- Go to
Channels -> Text Messages
. - Create a text message with any content.
- Add/update contacts with a valid email address and a mobile number.
- Go to
Segments
. - Create a new Segment: Add filter having contacts with valid Mobile numbers in it.
- Go to
Campaigns
. - Create a new campaign: Contact Sources: Campaign Segment.
- Choose the Segment created in step 5.
- In the next step, select Action.
- In the Select box, choose Send Text Messages.
- In the box of Send Text Messages, put a name and choose the message - that you created early.
- Click the publish button and save your campaign.
Execute the following commands.
php bin/console cache:clear
php bin/console mautic:segments:update
php bin/console mautic:campaigns:update
php bin/console mautic:campaigns:trigger
When using Mautic ActiveMQ Plugin.
- +XXXXXXXXXXXX format for the contact phone number including the
+
with country code and no space. - Fulfilled in the mobile contact field.
- Dynamic Variables can be added in the Text Messages like
Hi {contactfield=firstname}