bumpy-butcher-41910
09/15/2023, 6:21 PMjsx
window.botpressWebChat.onEvent(
function () {
window.botpressWebChat.sendEvent({ type: "show" });
},
["LIFECYCLE.LOADED"]
);
This code:
- Waits for the web chat widget to experience an event called “LIFECYCLE.LOADED”
- Sends an event of type “show” to Botpress
Finally, when you refresh your webpage, the bot should open in fullscreen and speak first after a short delay.
You can find the website used in the video here: https://jsfiddle.net/GordyNumberOne/tej6shv7/jolly-policeman-82775
09/24/2023, 3:05 PMjolly-policeman-82775
09/24/2023, 3:05 PMbumpy-butcher-41910
09/25/2023, 3:20 PMjolly-policeman-82775
09/25/2023, 3:43 PMjolly-policeman-82775
09/25/2023, 3:44 PMjolly-policeman-82775
09/25/2023, 3:44 PMjolly-policeman-82775
09/25/2023, 3:44 PMjolly-policeman-82775
09/25/2023, 3:44 PMjolly-policeman-82775
09/25/2023, 3:44 PMbumpy-butcher-41910
09/25/2023, 3:50 PMbumpy-butcher-41910
09/25/2023, 3:50 PMjolly-policeman-82775
09/26/2023, 1:46 AMfew-crowd-64015
10/17/2023, 4:27 PMicy-translator-93456
01/15/2024, 10:50 PM