This extension allow making conversations directly on Mattermost platform without touching Live Helper Chat back office completely.
Mattermost is a Slack, Rocket.Chat alternative.
Min 3.62v Live Helper Chat version.
Youtube video can be found here https://youtu.be/MnJHuHXbiXY
- customer requests a chat from your website
- Live Helper Chat will send a message into a specified channel with a button to accept this chat request
- One operator will click the button to accept the request (the message now disappears)
- Live Helper Chat will now create a new channel for this chat and invites the operator
- All messages from the customer will appear in this new channel and all messages from the operator will apear to the customer on your website, even files can be made aviable for the customer or for the operator
- (optional) The Channel will be deleted after a given amount of time after the chat has been completed. All chats are still aviable in Live Helper Chat Backoffice for the manager
- I would suggest creating a new team dedicated just for your customers.
- Create a user under which Live Helper Chat will be sending messages, creating channels and webhooks. It should be a user with admin permissions.
- Create one channel in this group where live chat request will appear.
- Invite few operators to this group.
- Clone github repository
- Move
mattermost
directory in extension/ directory - Activate extension in main Live Helper Chat settings file
lhc_web/settings/settings.ini.php
file
'extensions' =>
array (
'mattermost'
),
- Modify main
composer.json
file underlhc_web
folder and add
"require": {
...
"gnello/php-mattermost-driver": "dev-master#e4ba6c4db5de05a1ca8685ed54adf8ab13afb448"
},
- Update composer dependencies by executing
composer install
orcomposer update
fromlhc_web
folder - Clean cache. Just click clean cache in Live Helper Chat back office.
- Execute doc/install.sql on database manager or just run. You will have to wait 10 seconds for queries to be executed.
php cron.php -s site_admin -e mattermost -c cron/update_structure
- Navigate to back office of Live Helper Chat, under module you will find
Mattermost
section. - To delete old Mattermost chats you should be having this cronjob
php cron.php -s site_admin -e mattermost -c cron/archive
- Check mattermost server for an error
- Check cache/default.log for an error in Live Helper Chat
- Check audit log in Live Helper Chat back office
Because most of the time you won't be logged to Live Helper Chat back office, system won't know are you online or not. To avoid the offline widget you can set up
For Mattermost to remove completely old chats instead of soft deletes. Mattermost has to have configured permanent deletion. Otherwise you will encounter issue #7
https://docs.mattermost.com/administration/config-settings.html#enable-api-channel-deletion
Make sure you have disabled re-opening old chats. https://doc.livehelperchat.com/docs/chat/configuration#reopen-chat-functionality-enabled
Read issue #8