Hey there,
You can use this code to accomplish that.
window.botpressWebChat.onEvent(
function (event) {
if (event.type === 'LIFECYCLE.LOADED') {
window.botpressWebChat.sendEvent({ type: 'show' })
}
},
['LIFECYCLE.LOADED']
)
You can read more about it here
https://botpress.com/docs/cloud/toolbox/events-triggers/