helpful-vr-6699
08/10/2023, 12:20 PMjs
window.botpressWebChat.onEvent(
(event) => {
if (event.type === "UI.OPENED") {
window.botpressWebChat.sendEvent({ type: "trigger" });
}
},
["UI.OPENED"]
);