high-cpu-79286
07/13/2023, 4:20 PMsteep-bird-24487
07/17/2023, 4:58 AMhigh-cpu-79286
07/17/2023, 5:40 PMhigh-cpu-79286
07/17/2023, 5:42 PMsteep-bird-24487
07/17/2023, 10:35 PMsteep-bird-24487
07/17/2023, 10:35 PMsteep-bird-24487
07/17/2023, 10:38 PMhigh-cpu-79286
07/17/2023, 10:41 PMhigh-cpu-79286
07/17/2023, 10:43 PMhigh-cpu-79286
07/17/2023, 10:49 PMhigh-cpu-79286
07/17/2023, 10:53 PMsteep-bird-24487
07/18/2023, 5:43 AMsteep-bird-24487
07/18/2023, 5:45 AMsteep-bird-24487
07/18/2023, 5:50 AM//@ts-ignore
window.botpressWebChat.sendEvent({ type: botpressWebChat.webchatOpen ? 'hide' : 'show' });
high-cpu-79286
07/18/2023, 3:27 PMhigh-cpu-79286
07/18/2023, 3:29 PMhigh-cpu-79286
07/18/2023, 3:32 PMhigh-cpu-79286
07/18/2023, 3:35 PMconst handler = () => {
// @ts-ignore
window.botpressWebChat.sendEvent({
type: 'custom-event',
channel: 'web',
});
};
high-cpu-79286
07/18/2023, 3:39 PMconsole.log('HELLOOOOO')
if (event && event.type === 'custom-event') {
botpressWebChat.webchatOpen ? 'hide' : 'show'
console.log('bye')
}
The console log "HELLOOO" is being displayed in the visual studio code console, but in the browser it gives me the warning that "Cannot send data until the webchat is ready"steep-bird-24487
07/18/2023, 9:28 PMsteep-bird-24487
07/18/2023, 9:43 PMhigh-cpu-79286
07/19/2023, 1:23 AMhigh-cpu-79286
07/19/2023, 1:26 AMhigh-cpu-79286
07/19/2023, 1:27 AMsteep-bird-24487
07/19/2023, 1:30 AMsteep-bird-24487
07/19/2023, 1:32 AMsteep-bird-24487
07/19/2023, 1:32 AMsteep-bird-24487
07/19/2023, 1:33 AMconst bot1 = window.botpressWebChat.init(config1);
const bot2 = window.botpressWebChat.init(config2);
high-cpu-79286
07/19/2023, 1:59 AMhigh-cpu-79286
07/19/2023, 2:00 AMsteep-bird-24487
07/19/2023, 2:08 AMsteep-bird-24487
07/19/2023, 2:10 AMhigh-cpu-79286
07/19/2023, 2:25 AMhigh-cpu-79286
07/19/2023, 2:27 AMsteep-bird-24487
07/19/2023, 3:33 AMhigh-cpu-79286
07/19/2023, 5:30 PMhigh-cpu-79286
07/19/2023, 5:42 PMconst handlerLicenses = () => {
setOpen(!open);
// @ts-ignore
window.botpressWebChat.sendEvent({ type: 'message', text: 'Licenses' });
};
And then in the bot, in the first node of the main.flow, in the part of the transitions I ask if the event.preview is === "Licenses", if this condition is true, opens the bot in that flow!high-cpu-79286
07/19/2023, 5:58 PMsteep-bird-24487
07/20/2023, 4:48 AMsteep-bird-24487
07/20/2023, 4:48 AMsteep-bird-24487
07/20/2023, 4:49 AMsteep-bird-24487
07/20/2023, 4:50 AMsteep-bird-24487
07/20/2023, 4:50 AMsteep-bird-24487
07/20/2023, 4:50 AMsteep-bird-24487
07/20/2023, 4:53 AMhigh-cpu-79286
07/20/2023, 4:07 PMhigh-cpu-79286
07/20/2023, 4:09 PMhigh-cpu-79286
07/20/2023, 4:12 PMhigh-cpu-79286
07/20/2023, 4:20 PMhigh-cpu-79286
07/20/2023, 6:37 PMsteep-bird-24487
07/22/2023, 1:28 AMsteep-bird-24487
07/22/2023, 1:28 AMsteep-bird-24487
07/22/2023, 1:28 AMsteep-bird-24487
07/22/2023, 1:29 AMhigh-cpu-79286
07/22/2023, 4:40 PMhigh-cpu-79286
07/22/2023, 4:41 PMUncaught (in promise) DOMException: Permission denied to access property "webchat_store" on cross-origin object
steep-bird-24487
07/23/2023, 9:43 PMsteep-bird-24487
07/23/2023, 9:43 PMsteep-bird-24487
07/23/2023, 9:43 PMhigh-cpu-79286
07/24/2023, 9:51 PMsteep-bird-24487
07/27/2023, 1:36 AMsteep-bird-24487
07/27/2023, 1:36 AM