Skip to content

Instantly share code, notes, and snippets.

@alfredfrancis
Created January 23, 2020 05:29
Show Gist options
  • Save alfredfrancis/08cb5c86e0cc7b5f9ca711bbcaec1991 to your computer and use it in GitHub Desktop.
Save alfredfrancis/08cb5c86e0cc7b5f9ca711bbcaec1991 to your computer and use it in GitHub Desktop.
inject = document.createElement('script');
inject.src = "https://cogniwide.github.io/cogniassist-chat-widget/public/cogniassist-latest.js";
document.getElementsByTagName('head')[0].appendChild(inject);
var div = document.createElement('div');
document.body.appendChild(div);
div.id = 'cogniassist'
CogniAssistWidget.default.init({
selector: "#cogniassist",
initialPayload:"/default/welcome",
botName: 'CogniAssist',
botURL:'https://demo.cogniwide.com/cogniassist-backend/webhooks/rest/webhook',
bannerURL:"https://cogniwide.com/assets/images/background4.jpg",
bannerText:"Cogniwide is a Digital Transformation company that specialises in AI, RPA, Cloud,IOT, Blockchain and Data Analytics."
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment