ratty-blush
ratty-blush14mo ago

How to capture the user´s choice from a set of buttons.

Hello everyone, I am new to Voiceflow and I have run into a problem that I believe is basic. I want to capture the user's response when they select a button. Is this possible? If anyone can guide me, I would greatly appreciate it.
No description
7 Replies
Steve B. | IntelleSync.ai
Hey @SebastiánAMG, Yes this is straight forward. First you have to setup a variable called {choice}, this will be the variable that stores the which button choice is chosen. For each button you need to add a set variable after and set the choice, in my example the user is choosing the colour, so each button is set to the colour. when the button is pushed it will then update the main variable to the button choice. Make sense?
No description
No description
ratty-blush
ratty-blushOP14mo ago
Thank you very much @Steve B. | IntelleSync.ai, your help was very useful to me.
Steve B. | IntelleSync.ai
@SebastiánAMG great, you figured it out?
ratty-blush
ratty-blushOP14mo ago
@Steve B. | IntelleSync.ai With your help, I got very close, but I think I'm missing a step because my flow doesn't advance when capturing the choice.
No description
Steve B. | IntelleSync.ai
OK, this is because you have added a capture step just after the buttons, the capture step is waiting for an input. what where you aiming to do after the buttons? If you take a text step and add the Choice_colour varibale into it, it will display the colour choice.
ratty-blush
ratty-blushOP14mo ago
@Steve B. | IntelleSync.ai After the buttons, I wanted to add the capture step to capture the button, but I just realized that being a variable, it already stores that information. Thank you very much, now I was able to solve it.
Steve B. | IntelleSync.ai
Excellent!

Did you find this page helpful?