Parameters

When a customer is on the website for a long time, you may have to assume that he cannot decide what product to choose. For operators to have information, you can add your own parameter when he is on the page longer than the specified time.

In the rules settings you will create a new rule in the application administration. You use the “time spent on the website” parameter for more than 120 seconds. At that time, you run a feature named “_clientUndecided.”

In the Application section you also need to set a new parameter and call it “navod_undecided” for example. This will then appear in the waiting queue even after receiving by the operator.

Add a new feature to your “load” event listener on your website as a $owidget object method in which you set the parameter:

$owidget._clientUndecided = function() {
    $owidget.addCustomData('navod_undecided', true);
}

Instructions for implementation

First, you need to define the parameter in your application. Thus go to Settings -> Application -> Parameters -> and then select Add.

Create a name and tag for the parameter - it will be displayed to the operators, and save.

Then add the feature to the widget code

$owidget.addCustomData(PARAMETER NAME , PARAMETER VALUE );

There are two kinds of parameters in the application.

  • Predefined, which are for instance:

    • URL pages

    • Widget

    • Client name

    • Client’s phone number

    • Page title

    • Widget language

    • Client's e-mail

  • Custom, which you can create anytime you want.

It is strongly recommended to avoid sending empty values (null) into the parameters in the mluvii! Saving empty values can cause an error and also prevent the script from initializing on the page!!!

If you need to send "null" value always, use e.g. "-".

Tips

If you want to display e.g. a link to a client record in an external CRM system among the parameters of ongoing sessions, we recommend using the REST API for this purpose. The application detects the URL link and renders it on the operator side among other session parameters.

Last updated