Chat priority

Priority defines how hight in pending chat list chat will be presented. The higher the priority the faster chat will be auto assigned automatically. Chat priority can be set three ways.

  1. Via embed code
  2. Heritage from department priority
  3. Define priority condition in System configuration > Live Help configuration > Chat priority

Via embed code

While heritage from department does not require any additional actions from admin except set desirable priorities. Embed code requires additional attribute. Here is example of embed code with priority set to 5. It overrides department priority.

New widget

In this case priority is set to 5

<script>var LHC_API = LHC_API||{};
LHC_API.args = {
mode:'widget',
lhc_base_url:'//demo.livehelperchat.com/',
wheight:450,
wwidth:350,
pheight:520,
pwidth:500,
leaveamessage:true,
priority:5
};
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
var date = new Date();po.src = '//demo.livehelperchat.com/design/defaulttheme/js/widgetv2/index.js?'+(""+date.getFullYear() + date.getMonth() + date.getDate());
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>

Old widget

In this case priority is set to 5

<script type="text/javascript"> (function() {
var po = document.createElement('script');
po.type = 'text/javascript';
po.async = true;
var refferer = (document.referrer) ? encodeURIComponent(document.referrer) : '';
po.src = 'http://demo.livehelperchat.com/index.php/chat/getstatus/(click)/internal/(position)/bottom_right/(priority)/5?r='+refferer;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(po, s); })();
</script>

Heritage from department priority

Please refer to department priority attribute

Define priority condition

This can be defined in

System configuration > Live Help configuration > Chat priority

Example. Means all visitors with Europe/Helsinki timezone should get 101 as priority.

Chat priroity by attribute

There is in total three types of variables you can try to check against

  • lhc.<variable> - you can find possible attributes definition in https://api.livehelperchat.com under Models section.
  • additional_data.<custom_variable_passed> - E.g additional_data.gender
  • chat_variable.<extension_variable>

Permissions

Required permission

'chat','administratechatpriority'

Last updated on by Remigijus Kiminas