# Number

## **Ask Number Card**&#x20;

Ask Number is specifically designed to collect numeric input from users. It's a common and valuable tool in BizMagnets Bots. The collected input can be stored in a designated variable, enabling you to utilize that data in your Bot Flow.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FZnHXiqSTU5mxtqPQKlmF%2FScreenshot%202025-09-18%20154221.png?alt=media&#x26;token=373f78f9-20e9-4bea-a35c-4a51a705f66f" alt=""><figcaption></figcaption></figure>

## Question Text

This is the question you want to ask users. Keep it clear and concise so they understand what you're asking.

You can format the text using **Bold**, *Italic*, or ~~Strikethrough~~. Use asterisks (\*) for Bold, underscores (\_) for Italic, and tildes (\~) for Strikethrough.

Imagine you are asking your customers how many times they have used your service this month. The Ask Number question type with validation settings will ensure users provide helpful responses within a specific character limit.

For the Question Text you can enter: How many times have you used our service this month?

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FOIAT78hDGVIgAP0TXukA%2FScreenshot%202024-06-24%20145357.png?alt=media&#x26;token=1d0a6377-db58-4223-85eb-82742702e6fc" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
PRO TIP: Use Variables in the **Question Text** and in the **Validation Error Message** to make it more personalized.
{% endhint %}

## Advanced Settings

For the validation settings, you can set the attempt limit to 1. The Validation Error Message is optional. Specify the Action on Invalid Response, and enable the Additional Validation Settings.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FjwQapF8r9aV0GUSHHiLL%2FScreenshot%202024-06-24%20145708.png?alt=media&#x26;token=976f57f1-8937-4d46-b9e9-724591741396" alt=""><figcaption></figcaption></figure>

## Validation settings

In the additional validation settings, specify the **Minimum character, Maximum character, and Regex.** Since we're asking for the number of times the service was used, the minimum character would be 1 and the maximum character would be 2. For Regex, we could use `^[1-9]\d?$` to ensure the user enters a valid count between 1 and 99.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FOYoRE0lkHAVjm95ufY8m%2FScreenshot%202024-06-24%20150117.png?alt=media&#x26;token=1eb9ef39-b392-41a2-9e1d-74745bec915a" alt=""><figcaption></figcaption></figure>

## Save Response in the Variable

You have the option to store the user response in a variable. For example, you can create a variable called `usage_count` to store the user response.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FPzNJH5ZqEDq85ohKHJlC%2FScreenshot%202024-06-24%20150432.png?alt=media&#x26;token=b78b69c7-d715-4b7a-9559-60d2f66225e4" alt=""><figcaption></figcaption></figure>

Once you have set all the fields required and click on **SAVE.**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bizmagnets.ai/bot-flows/ask-questions/number.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
