Message error in the console (URGENT)
# 🤝help
n
In the console, I saw this message : [webchat] Cannot send data until the webchat is ready How to resolve it ?

https://cdn.discordapp.com/attachments/1142219774319935530/1142219774860988476/Capture_decran_2023-08-19_001000.jpg

I use this script in order to open automatically the widget of the chatbot when the page is loaded : document.addEventListener("DOMContentLoaded", function() { window.botpressWebChat.onEvent( function (event) { if (event.type === 'LIFECYCLE.LOADED') { window.botpressWebChat.sendEvent({ type: 'show' }); window.botpressWebChat.sendPayload({ type: 'trigger', payload: { event: 'webchatLoaded', }, }); } }, ['LIFECYCLE.LOADED'] ); });
@rich-battery-69172
21 Views