https://discord.gg/botpress logo
#🤝help
Configure widget appearance before its opened
# 🤝help
b

better-crayon-85046

02/14/2024, 5:48 AM
Does anyone know how to do this? I can't find it in the documentation or in the integration settings.
f

fresh-fireman-491

02/14/2024, 3:26 PM
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

better-crayon-85046

02/14/2024, 9:34 PM
Thank you so much!
f

fresh-fireman-491

02/15/2024, 6:05 AM
You are very welcome