Using Quriobot and Palmdesk

It is possible to use Palmdesk as a fallback for Quriobot!

Follow those easy steps:

Step 0. Enable developer mode

Step 1. add a chat text where you need to trigger the widget, select its type to be Javascript

Step 2. Put the contents like this:

function() {
/*    here you can add user_data to config object    eg.
var custom_user_data = {
       externalId: "your_id_for_user",
       email: "{{email}}",
       username: "{{username}}",
       firstname: "{{firstName}}",
       lastname: "{{lastName}}",
       additionalFields: "nickname={{nickname}}; phoneNumber={{phone}}"
};
*/
if ("undefined" !== typeof requirejs) window.onload = function(e) {
    requirejs(["https://paldesk.io/api/widget-client?apiKey=<API_KEY>"], function(e) {
      "undefined" !== typeof custom_user_data && (beebeeate_config.user_data = custom_user_data), BeeBeeate.widget.new(beebeeate_config)
    })
};
else {
    var s = document.createElement("script");
    s.async = !0, s.src = "https://paldesk.io/api/widget-client?apiKey=<API_KEY>", s.onload = function() {
      "undefined" !== typeof custom_user_data && (beebeeate_config.user_data = custom_user_data), BeeBeeate.widget.new(beebeeate_config)
    };
    if (document.body) {
      document.body.appendChild(s)
    } else if (document.head) {
      document.head.appendChild(s)
    }
}
}

NOTE:

here <API_KEY> has to be replaced with your own API key

also, optionally, you can uncomment

var custom_user_data = {

       externalId: "your_id_for_user",

       email: "{{email}}",

       username: "{{username}}",

       firstname: "{{firstName}}",

       lastname: "{{lastName}}",

       additionalFields: "nickname={{nickname}}; phoneNumber={{phone}}"

};

which uses Bot Variables to prefill the user context.

Edit this page