wide-umbrella-5226
10/31/2025, 5:23 PMhtml
<script>
window.addEventListener('load', () => {
setTimeout(() => {
if (window.botpress) {
window.botpress.open();
}
}, 30000);
});
</script>
just paste this code snippet below your webchat embed! 30000 is the default value in milliseconds, but feel free to change it.
you can also modify window.botpress.open to .close to close it, or .toggle to close it if it's open, and open it if it's closedwooden-pillow-32756
11/20/2025, 5:09 PMnice-twilight-90450
01/27/2026, 1:49 PMloud-crowd-60573
01/29/2026, 3:57 PMawait new Promise(resolve => setTimeout(resolve, 5000));
> (1000 = 1 second, 10000 = 10 seconds etc) (avoid going over 30 seconds to avoid crashing)
Shoutout to @wide-umbrella-5226 for this solution.
https://cdn.discordapp.com/attachments/1466462267548897444/1466462268521840752/image.png?ex=697cd4ea&is=697b836a&hm=bafbc668aaf97c174f617e2153a9aae032655ab87bb7368295b500e636c44962&
https://cdn.discordapp.com/attachments/1466462267548897444/1466462269008511108/image.png?ex=697cd4ea&is=697b836a&hm=402a85e4265feeb51dafd074e36563f037d5016c8cfb6d6e6f7513da9682a1f7&wide-umbrella-5226
01/29/2026, 4:04 PMthrow new Error("Error");
the line above will throw an error in your workflow, which can be used to quickly test your error workflow (like the "simulate timeout event" does for the timeout workflow)echoing-notebook-80704
02/19/2026, 5:50 PMbig-angle-81332
04/26/2026, 4:53 PMloud-crowd-60573
04/30/2026, 6:42 PM<@APPLICATIONIDHERE> or <@!APPLICATIONIDHERE>.
- If the bot is not explicitly mentioned, do not reply at all.
Behavior rules:
- If a message does not contain a direct mention of the bot, remain silent.
- Do not answer general channel conversation.
- Do not react to messages just because they seem relevant.
- Do not continue old conversations unless the new message also explicitly mentions the bot.
- If a user replies to one of the bot’s earlier messages but does not mention the bot again, do not reply.
- If multiple users are chatting and the bot is not directly mentioned, do not participate.
- If the bot is mentioned together with a question or request, respond normally and helpfully.
- If the bot is mentioned with no clear request, ask a brief clarifying question.
- Keep responses concise and relevant to the user’s request.
Priority:
1. Follow the explicit-mention rule above all else for Discord channel replies.
2. If not mentioned, output nothing.
3. Never infer that you should speak; only speak when directly mentioned.
Failure prevention:
- Do not treat nearby conversation as permission to answer.
- Do not assume the bot should join a discussion automatically.
- Silence is the correct behavior when not mentioned.`
https://cdn.discordapp.com/attachments/1499480991977181366/1499481300656984266/image.png?ex=69f4f449&is=69f3a2c9&hm=95959aee0cf4239b5b5336215976c4ca2db12b41c669351eaf9bc72e878da74f&nice-twilight-90450
06/02/2026, 12:48 PMsparse-ram-76198
09/06/2026, 10:26 PM