white-nest-40686
10/31/2025, 11:00 AMzxMultiChoice](https://studio.botpress.cloud/?install=hsk-656c83dd07) lets you show a user a single-choice card with the option to select multiple items.
After each selection, the bot asks whether the user wants to choose another option.
You can also define a maximum number of selectable items, and the workflow will stop automatically when that limit is reached.
If the maximum is set to 0, there is no limit to how many options the user can select.
The workflow returns the selected values in an array called choices.
## Workflow Logic
The zxMultiChoice workflow uses the following logic:
* The bot shows the first choice card.
* When the user selects an option:
* If the maxSelectableCount is not reached, the bot asks:
> “Do you want to choose another option?”
* If the user says Yes, another selection round starts.
* If the user says No, or the maximum is reached, the workflow ends and returns all chosen options.
* If the user doesn't choose a valid choice or an error occurs, the OnFailure path is triggered.
## Add the Workflow Card
In your Botpress Studio Explore Hub and select [zxMultiChoice](https://studio.botpress.cloud/?install=hsk-656c83dd07) as the card name.
https://cdn.discordapp.com/attachments/1433772654418202795/1433772655017857155/image.png?ex=6905e857&is=690496d7&hm=f05c18a1e0e08c7a70cfdbfdb27753a71b1c1f18db95f7b417daec4a12b9573f&white-nest-40686
10/31/2025, 12:37 PMwide-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 PM