# Text

## Ask Text Card

Users can express their thoughts, opinions, or provide information in response to these questions. The responses are captured and stored in a designated variable, enabling you to utilize this data throughout your Bot Flow.

Familiarize yourself with the 'Ask as Text' feature within the Ask Text Card to enhance interactions with users.

## Question Text&#x20;

This field is where you pose your question to the users. Keep it concise and clear to ensure users understand what is being asked.

You can format the Question text to be Bold, Italic, or Strikethrough using the provided formatting options. For Bold, add an asterisk (\*) before and after the text; for Italic, use an underscore (\_) before and after; and for Strikethrough, enclose the text with a tilde (\~).

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FdWZDqPas1GepNhL7GGnF%2FScreenshot%202025-09-16%20153406.png?alt=media&#x26;token=f59d04c3-d3d8-43aa-bd0e-105427e01d33" alt=""><figcaption></figcaption></figure>

## Implementation Example:&#x20;

Suppose you need to collect your customers' Aadhar Card details to assess their identity. The Ask Text question type with validation settings ensures that responses are useful and adhere to a defined character limit.

For the Question Text, you could use: Please enter your Aadhar Card details to verify your identity.

Additionally, you can save the user's response in a variable. For instance, create a variable named `user_identity` to store the response.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2F9Ofnqw4tDB96D02Pg6hI%2FScreenshot%202024-06-09%20150153.png?alt=media&#x26;token=8a405b83-8623-4517-9df9-4e877c823aae" alt=""><figcaption></figcaption></figure>

For the validation settings, you can set the attempt limit to 1, with the Validation Error Message being optional. Specify the Action on Invalid Response and enable the Additional Validation Settings.&#x20;

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FYrN7n1QH2hWRNDdlDbvr%2FScreenshot%202024-06-09%20150311.png?alt=media&#x26;token=832335ae-cf95-4437-b02b-52199ee0f987" alt=""><figcaption></figcaption></figure>

Within these settings, set the Minimum and Maximum character limits to 12, and provide a Regex pattern for validation. Since the Aadhar card number consists of 12 digits, this ensures the input precisely matches the expected format.

The Aadhar card number consists of 12 digits. To ensure the correct format is captured, you could use the following regex: `^\d{12}$`. This pattern verifies that the user inputs a valid Aadhar number, which adheres to the criterion of being exactly 12 numeric characters.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FztnZ38lmcidCjfKX21Tk%2FScreenshot%202024-06-09%20150605.png?alt=media&#x26;token=16eab2ff-79bf-4c8b-9cc2-5f045c28cd72" alt=""><figcaption></figcaption></figure>


---

# 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/text.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.
