LiveChat webhook script for WHMCS

Tips and Guides/ 07th Sep 2015/Chris James

Some may have noticed that we have been using a new live chat system on our website to handle any sales questions from site visitors.  After testing a lot of different systems (which is for another blog post!) we settled on LiveChat.

One of the great features of this excellent chat system is that of Webhooks whereby information from a chat can be sent to a third party script or application to gather additional data to put into the staff chat console.

For any clients (or non clients) using LiveChat along with the WHMCS client management system I thought I’d put the instructions here on how to integrate the two by grabbing client details from WHMCS to show in the LiveChat window.

1.  Make sure the chat “Pre-chat survey” is enabled in LiveChat to ask for an email address from the visitor when starting a new chat.

2.  Add a new webhook:

livechat1

 

3.  Put the following script into a file of the same name and uploaded to the same location entered in the web hook config.  Make sure to modify the variable at the top called ‘$path_to_whmcs’ which should contain the path to your WHMCS root folder.

 

4.  When a new chat comes in, if the visitors email address is found in WHMCS either as a direct client or additional contact these details will be shown to the staff member handling the chat.

livechat2

 

Enjoy!

Finally, please note that we don’t guarantee this script in any way or provide any support for it.  I ask that any questions or comments are made to this blog post below where I will try to help.

Hailing from Preston, Chris is the company founder and has always had an interest in computers, particularly internet technology. When not working he spends time with his family which is never quiet with a 3 year old running around!
We have a very strong team here at Clook and we build on everyone's strengths and weaknesses, you have to be able to make a good brew too!

Chris James

Customer Login

Forgot Password? Cancel