https://discord.gg/botpress logo
Button to trigger event
# 💻developers
e
anyone has an idea how you could add a button for the user to click in order for me to trigger an event ?
w
You want to send data to your bot from your webpage when a use click on a button.?
e
no
i meant inside the botpress
i want to show a button
inside chat
something the user clicks on
w
So a single choice for exemple ?
e
i think yeah , a single choice will do the trick, we can think of them as buttons
i guess
can you edit the design of a specific
single choice?
w
I don’t think so
e
thank you
do you know how to restart the conversation from a main flow?
w
i don't fully understand
when you are at your last node, you can transition to the first
for exemple
e
EXACTly
Botpress is composed of main flow conversation
and another flows
where i want let's say i'm at flow 1. it ends , and i want to restart the conversation, meaning go to flow MAIN. how can i achieve that?
the problem is that in my flows list, main doesn't figure there
see pic
w
so you want to go back to the main workflow at the end of sub workflows ?
e
solved
thanks a lot buddy
❤️
w
nice!
you're welcome
3 Views