Ask Number

Discover the power of "Ask Number" in Gallabox Bots. This allows you to collect numeric input from users and store it in a designated variable.

Understanding "Ask Number"

"Ask Number" is specifically designed to collect numeric input. Asking users for numeric input is a common and valuable tool of Gallabox Bots. This user input can be stored in a designated variable, allowing you to use that data in your BotFlow.

You can ask the customer a question as a Text or as a Voice.

Ask as Text Essentials:

Question Text

This is the question you want to ask users. Make it clear and short so users know what you're asking.

The Question text can be made Bold, Italic, or strikethrough using the options provided. The text will add the asterisk(*) for Bold, Underscore(_) for Italic text, and Tilde(~) for Strikethrough around the text.

Ask as Voice Essentials

The Ask as a Voice feature in Gallabox's Ask Text Bot Card lets users talk to submit their answers, making it easy and fun to interact.

You can either choose AI voice or a Record option.

For generating AI voice, you have to type in the Question Text, select the desired voice from the drop-down, and click on Generate Voice Button.

The Question text will be changed into voice. You can listen to it, change playback speed before saving the card to be used in the bot.

If you want to send a message in your voice, use Record option. Just press the record Button to record. To stop recording, click on Stop Recording.

PRO TIP: Use Variables in the Question Text and in the Validation Error Message to make it more personalized.

Implementation Example:

Imagine you are asking your customers to rate your services out of 10. The Ask Number question type with validation settings will make sure users give helpful responses within a specific character limit.

For the Question Text you can enter: On the range of 1 - 10, how would you rate our service? (1 being the worst).

You have the option to store the user response in the variable. You can create a variable - user_feedback for example to store the user response.

Now for the validation settings, you could provide the attempt limit as 1, Validation Error Message is optional. Provide the Action on Invalid Response, and turn on the Additional Validation Settings.

In the additional validation settings, provide the Minimum character, Maximum character, Regex. The feedback we are looking is on a scale of 1-10, so the minimum character would be 1 and the maximum character would be 2. For regex, we could use - ^[1-9]\d?$ to make sure that the user enters a rating must between 1 and 9.

Publish & Test the Card

To publish the flow, connect the card with the starting button and then click on Publish Button. To test the flow, click on Test Bot button to test on a WhatsApp Web Application or on your device.

In WhatsApp:

This is how "Ask Number" card would be on the WhatsApp Platform.

The above sample flow is for you to understand how "Ask Number" Card works and it's usage. It is not a representation of what can be achieved with Gallabox.

Last updated