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.

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

  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.

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)

Last updated