https://discord.gg/botpress logo
#🌎general
Title
# 🌎general
g

gray-breakfast-23855

07/15/2023, 2:38 PM
Does anyone know how to make the bot send the message first ? This didnt work so well
Copy code
const interval = setInterval(() => {
                if (window.botpressWebChat) {
                    window.botpressWebChat.sendEvent({
                        type: 'proactive-trigger',
                        channel: 'web',
                        payload: {
                            text: 'fake message'
                        }
                    });
                    clearInterval(interval);
                }
}, 1000);
r

red-computer-62375

07/15/2023, 2:52 PM
Same question
g

gray-breakfast-23855

07/15/2023, 3:25 PM
Answer: 1. ) go to this thread: https://discord.com/channels/1108396290624213082/1121833577659768893 2. ) fill out this form https://docs.google.com/forms/d/e/1FAIpQLSe3RG8KLvszMtjSVskqHi0XOgFnfmzp15TA1WvnUYyqMpVwWg/viewform 3.) Once you have access to Triggers, follow this video:

https://www.youtube.com/watch?v=3XgDAhYgApw