Quick Start
Introduction
The Javascript SDK is a completely conversational interface. It renders a complete chat experience that can be easily integrated across different web environments.
It supports SSL, and works asynchronously – so it won’t block your website.
Installation
To initialize a widget add to a site javascript code. Token You can generate on the "Channels / Web" section in the dashboard.
<script type="text/javascript">
(function () {
var kb = document.createElement('script');
kb.type = 'text/javascript';
kb.async = true;
kb.src = ('https:' == document.location.protocol ? 'https://' : 'http://') +
'https://web.eu-pl.koda.ai/web.sdk.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(kb, s);
})();
</script>
<script>
window.initKBWebSDK = function (SDK) {
const bot = SDK.initKBChatbot({
"token": "TOKEN"
});
}
</script>