BotMaker
function getParam(name) {
if (name = (new RegExp('[?&]' + encodeURIComponent(name) + '=([^&]*)')).exec(location.search))
return decodeURIComponent(name[1]);
}
(function () {
var jsScript = document.createElement('script');
jsScript.type = "text/javascript";
jsScript.src = '//go.botmaker.com/rest/webchat/p/' + getParam('id') + '/init.js';
document.body.appendChild(jsScript);
})();