Coder Social home page Coder Social logo

ramstorage / mattermost Goto Github PK

View Code? Open in Web Editor NEW

This project forked from livehelperchat/mattermost

0.0 0.0 0.0 248 KB

Live Helper Chat and Mattermost integration. Chat with your site visitors directly on Mattermost without touching Live Helper Chat back office completely.

License: MIT License

PHP 100.00%

mattermost's Introduction

This extension allow making conversations directly on Mattermost platform without touching Live Helper Chat back office completely.

Mattermost is a Slack, Rocket.Chat alternative.

Requirements

Min 3.62v Live Helper Chat version.

Youtube video can be found here https://youtu.be/MnJHuHXbiXY

See image

How it works

  1. customer requests a chat from your website
  2. Live Helper Chat will send a message into a specified channel with a button to accept this chat request
  3. One operator will click the button to accept the request (the message now disappears)
  4. Live Helper Chat will now create a new channel for this chat and invites the operator
  5. 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
  6. (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

Install instructions for Mattermost part

  1. I would suggest creating a new team dedicated just for your customers.
  2. Create a user under which Live Helper Chat will be sending messages, creating channels and webhooks. It should be a user with admin permissions.
  3. Create one channel in this group where live chat request will appear.
  4. Invite few operators to this group.

Install instructions for Live Helper Chat

  1. Clone github repository
  2. Move mattermost directory in extension/ directory
  3. Activate extension in main Live Helper Chat settings file lhc_web/settings/settings.ini.php file
'extensions' => 
    array (          
        'mattermost'
    ),
  1. Install composer requirements with. You have to download composer or just have it installed already.
cd extension/mattermost && composer.phar install
  1. Clean cache. Just click clean cache in Live Helper Chat back office.
  2. 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
    
  3. Navigate to back office of Live Helper Chat, under module you will find Mattermost section.
  4. To delete old Mattermost chats you should be having this cronjob
    php cron.php -s site_admin -e mattermost -c cron/archive
    

Troubleshooting

  • 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

Tips

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.

https://docs.mattermost.com/administration/config-settings.html#enable-api-channel-deletion

mattermost's People

Contributors

remdex avatar mech01nc01 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.