https://discord.gg/botpress logo
#🤝help
Click on images and retain the information
# 🤝help
s

steep-quill-83165

01/09/2024, 10:24 AM
I just want to know how to offer a choice with several images and text, the user then clicks on their choice and their choice is kept by the bot and then brought out at the end to validate the user's choices
f

fresh-fireman-491

01/09/2024, 10:54 AM
You can use a single choice card and save their choice in a variable. Then reference that variable later
s

steep-quill-83165

01/09/2024, 1:04 PM
than k you but with signle choice card i can't put image to click on
I can do it with carroussel card but i don't jnow how to save the informations then
f

fresh-fireman-491

01/09/2024, 8:50 PM
What is your way of doing it with the carousel card?
If your way of doing it sends a message in the chat from the user you can save it from the event.preview variable.
workflow.variableName = event.preview
Will save the latest message from the user in the desired variable
s

steep-quill-83165

01/10/2024, 9:55 AM
How can we ensure that when the user clicks on a certain image, it sends a message in the chat?
f

fresh-fireman-491

01/10/2024, 1:52 PM
I don't think you can use images as buttons. What you could do is adding buttons like "Image 1", "Image 2" etc.
s

steep-quill-83165

01/10/2024, 10:45 PM
Yes but don't really good
f

fresh-fireman-491

01/11/2024, 5:38 AM
Maybe a @User knows how to make the images buttons?
b

bumpy-addition-21507

01/11/2024, 2:40 PM
Is this web or other platform? @steep-quill-83165
s

steep-quill-83165

01/11/2024, 3:18 PM
Yes maybe ? @User @cold-motherboard-82208
i don't undesrtand your question
b

bumpy-addition-21507

01/11/2024, 4:55 PM
Are you building this bot so it works on web, telegram, WhatsApp ?
s

steep-quill-83165

01/11/2024, 4:55 PM
web @bumpy-addition-21507
b

bumpy-addition-21507

01/11/2024, 5:36 PM
Ok so I don't have a great deal of experience with using the bots on web but I would suggest saving the clicked value on a variable and send it to the bot. Have you tried that?
q

quick-musician-29561

01/12/2024, 6:33 AM
I believe that currently, users can only interact with the carousel if we add an action button there. And after some testing and debugging, action button only works if you specify a web address to redirect to after clicking. Storing all the image details in a variable when clicking the carousel image would make for an excellent feature request 💎 (if it doesn't already work using some advanced Botpress magic that we're not aware of but would like to learn!) 🪄
Something similar is already in feature requests https://discord.com/channels/1108396290624213082/1138100213731557376