Chat Widget - Custom Buttons & Programmatic Control
Embed the klink.cloud chat widget on your site, hide the default launcher, and open chat from your own buttons or events.
Installation
<head>
<script>
(function (d, t) {
var timestamp = new Date().getTime();
var SCRIPT_PATH = "https://webchat.klink.cloud/widget/klink-chat-widget.umd.js";
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.src = SCRIPT_PATH + '?v=' + timestamp;
g.defer = true;
g.async = true;
s.parentNode.insertBefore(g, s);
g.onload = function () {
window.klinkChatSDK.run({
serverUrl: "https://apigw.klink.cloud",
scId: "YOUR_SC_ID_HERE",
});
};
})(document, 'script');
</script>
</head>Configuration Options
Option
Type
Required
Description
Hide the Default Button & Open Programmatically
Passing Authenticated Users
Notes
Last updated