I am getting this error message in the chat. I have a custom trigger set up using the following code, is there something I am missing?
Code:
//Open the chatbot window as soon as the page finishes loading
window.addEventListener("load", function() {
//Open the chatbot window before triggering the chatbot greeting
window.botpressWebChat.sendEvent({ type: "show" });
//Trigger the chatbot initial greeting, but give it some time after the "show" event to load first
//TODO: Detect when the bot is ready in a tight loop to improve reliability and load speed
setTimeout(function() {
window.botpressWebChat.sendPayload({
type: "trigger",
type: "CONVERSATION_START",
payload: {
}
});
}, 5000);
}, 10000);