damp-artist-61438
07/21/2023, 12:54 AMhtml
<script>
window.botpressWebChat.onEvent(
function (ev) {
window.botpressWebChat.sendEvent({
type: "loadConversation",
});
},
["LIFECYCLE.LOADED"]
);
window.addEventListener("message", function (event) {
// console.log(event.data.type);
if (event.data.type == "LIFECYCLE.READY") {
window.botpressWebChat.sendEvent({
type: "trigger",
channel: "web",
payload: {
text: "",
},
});
}
});
</script>