Configure widget appearance before its opened
# 🤝help
b
Does anyone know how to do this? I can't find it in the documentation or in the integration settings.
f
Hey You will have to do that on your website. It's just a bit of styling to a button. Make the button and place it so it matches the Botpress chat icon. Then add the text and the desired CSS. Then add this code to the onclick of the button: window.botpressWebChat.onEvent( function (event) { if (event.type === 'LIFECYCLE.LOADED') { window.botpressWebChat.sendEvent({ type: 'show' }) } }, ['LIFECYCLE.LOADED'] ) It will open the chat window when it gets clicked
I hope this can help you
b
Thank you so much!
f
You are very welcome