Skip to content

Instantly share code, notes, and snippets.

@dzabrzenski
Last active January 14, 2019 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dzabrzenski/6032045e00c04c9a0750acc587947072 to your computer and use it in GitHub Desktop.
Save dzabrzenski/6032045e00c04c9a0750acc587947072 to your computer and use it in GitHub Desktop.
<!-- Start of BotEngine (www.botengine.ai) code -->
<script type="text/javascript">
window.__be = window.__be || {};
window.__be.id = "5bf1c94058b7d56896764446";
(function() {
var be = document.createElement('script'); be.type = 'text/javascript'; be.async = true;
be.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.botengine.ai/widget/plugin.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(be, s);
})();
var BE_API = window.BE_API || {};
// open chat widget after 10 seconds
BE_API.onLoad = function () {
var time = 10 * 1000; // 10 seconds
setTimeout(function() {
BE_API.openChat(); // put your action here
}, time);
};
</script>
<!-- End of BotEngine code -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment