> For the complete documentation index, see [llms.txt](https://docs.makerobos.com/frontman-enterprise-chatbot-platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.makerobos.com/frontman-enterprise-chatbot-platform/story-builder/cards/display-cards/user-input.md).

# User Input

### How it Works?

The User Input card empowers you to gather valuable information directly from users within your AI conversations. This card allows you to:

* **Ask Multiple Questions:** Craft a series of questions to collect specific user data tailored to your needs.
* **Real-time Validation:** Implement validation logic directly within the card to ensure users provide valid responses according to your defined criteria. This helps maintain data accuracy and streamlines the conversation flow.

<figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FJusJr1cehpUHoinuB8gc%2Fuser%20input.png?alt=media&amp;token=80e13c0d-20f5-4553-b2ad-1b8e5f426b87" alt=""><figcaption></figcaption></figure>

1. **Multiple Questions:** Craft a sequence of questions to collect the desired user information.

   <figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FPCE8y9jOWYGMOnwPgA9I%2Fuser%20inpur%202.png?alt=media&amp;token=93294dd7-83e1-451d-97dd-838dab87ba7f" alt=""><figcaption></figcaption></figure>
2. **Real-time Validation:** Define validation rules for each question, ensuring data accuracy. You can leverage various validation options including:

   * **Numerical Comparisons:** Validate user input against numerical constraints (less than, greater than, equal to, between ranges).
   * **Data Types:** Specify expected data types (number, text, location, upload, etc.).
   * **Text Matching:** Validate user input using regular expressions or pre-defined options.
   * **External Integrations:** Utilize incoming webhooks to connect to external services for advanced validation.

   <figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FBx6MbalJ9Ee4vuCrhjs5%2Fvalidation1.png?alt=media&amp;token=da2ca7be-6ea4-4e45-a909-125dd4b49591" alt=""><figcaption></figcaption></figure>

### **Validation Options:**

* **Phone:** Validate phone number format.
* **Attribute Name:** Specify a custom attribute name to store user input within the system (use {{ }} syntax).
* **Multiple Options:** Allow users to select from a predefined set of options.
* **Number:** Validate user input as a numerical value.
* **Comparison Operators:** Define comparison rules for numerical data:
  * Less Than (<)
  * Less Than or Equal To (<=)
  * Greater Than (>)
  * Greater Than or Equal To (>=)
  * Equal To (=)
  * Between (user-defined range)
  * Not Between (user-defined exclusion range)
* **Data Types:** Specify the expected data type for user input:

  * Whole Number (integers)
  * Text
  * Geo Location (You can get user's location and with that you can also get latitude and longitude of the location)
  * Upload (file upload)
  * OTP Verification (requires integration with an OTP provider)
  * Regular Expression (advanced validation using custom patterns)
  * Incoming Webhooks (triggers external actions upon user input)

  <figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2Fi0XUZdGgAGCNKU2jV6s2%2Fvalidation%203.png?alt=media&amp;token=d8f95550-0bf5-4b13-bfb1-3a63f3fae3c9" alt=""><figcaption></figcaption></figure>

  ![](https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FM2T1DeBGznwBk7TzY5bC%2Fimage.png?alt=media\&token=29c4871f-2162-40a9-b815-a76852aed28f)
