Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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