Skip to main content

Get input

Use Get input to collect and store user responses in variables, this allows the AI agent to reuse the data in future interactions. It ensures that inputs are validated before storing the input.

For example, if a user provides their name, the bot can use it in future intercations.

Types of inputs

When creating an input, different input types can be selected based on the use case:

  • Name – Captures the user’s name.
  • Email – Collects the user’s email address.
  • Phone – Gets the user’s phone number.
  • Quick reply – Provides users with predefined response options.
  • Carousel – Displays multiple options in a scrollable format.
  • Date – Allows users to select or input a date.
  • Custom – Enables a more flexible input type tailored to specific needs.

Create input

To create a input, follow these steps:

  1. Go to Agent > Prompt > click on Actions > Get input.

    image

  2. Click + Create input.

    drawing
  1. Select your preferred input type based on the use case.

    drawing

Get name input

Use Get name input to capture and store the user's name during a conversation. This input remains available throughout the session and can be reused by referencing the same input name in the other conversations.

The table below describes the fields available in the Get Name Input action:

Field nameDescription
Input Name (Mandatory)Defines the name of the input field where the user’s response will be stored. In this case, the field is labeled as Name.
Data typeDefault data type is displayed. In this case, it is a String, meaning it only accepts text values.
DescriptionProvide additional details or context about the input field. This helps define how the AI agent will use the captured input.
ValidationEnter the validation rules to ensure the user provides valid input.
Examples: – Allow upto 50 characters.
– Reject names containing numbers.
OthersEnable Mark User Input as Optional checkbox:
If checked, the user is not required to provide their name.
If unchecked, the bot will prompt the user until a valid name is provided.

Get input name

Email

Use Get Email input to collect and store a user’s email address during a conversation.

The table below describes the fields available in the Get Email input action:

Field nameDescription
Input name (Mandatory)Specifies the name of the variable where the user’s input will be stored.
Data typeDefault data type is displayed. For email input, it is set as String.
Description (Mandatory)Provide context about the input field. Example: "Collect user email ID" to inform the AI agent about the purpose of this input.
ValidationEnsures the user input follows the correct format. The current validation rule requires the email to contain exactly one "@" symbol to be considered valid. Additional validation rules can be added.
Example of User InputProvide an example of a valid email address, such as "[email protected]", to guide users in entering the correct format.
OthersEnable Mark user input as optional checkbox:
If checked, users are not required to provide an email address.
If unchecked, the bot will prompt the user until they enter a valid email.

Email id

Phone

Use the Get Phone input action to collect and store a user’s phone number during a conversation. The collected number is saved in a variable and can be used for tasks such as sending notifications, verifying the user’s identity, or linking to order details.

The table below describes the fields available in the Get Phone Input action:

Field nameDescription
Variable name (Mandatory)Define the variable where the user’s phone number will be stored. Example: mobile_Number.
Data typeSpecify the type of data expected from the user. For phone input, it is set as Number.
DescriptionAllows the user to provide additional details about the purpose of collecting the phone number. This field helps define how the AI agent will use the input.
Examples of expected inputProvides sample responses to help users understand the expected input format. Example: +91 9876543210.
ValidationEnsures the user input follows the correct format. In this case, users must select a country code to ensure proper phone number formatting. Additional validation rules can be added if needed.
Always save number with country codeIf this option is enabled, the system will store the phone number with a country code, even if the user does not provide it.
Mark user input as optionalIf checked, the user is not required to provide their phone number. If unchecked, the bot will prompt the user until a valid phone number is provided.

Phone number

Add Quick reply buttons to the AI agent

Use quick replies to present users with tap-to-select response options. They simplify input, reduce typing effort, and keep conversations on track.

The table below describes the available configuration fields:

Field nameDescription
Input nameSpecifies the name of the input field where the selected quick reply will be stored.
Data typeDefault data type is displayed. For quick reply input, it is set as String.
DescriptionProvide additional context or instructions about the quick reply input.
Dynamic optionsToggle this option to generate quick reply choices dynamically using variables.
OptionsClick + Add to create static quick reply choices for users. More options can be added as required.
OthersEnable Allow users to type input manually (Checkbox) to protect sensitive information by replacing the characters with symbols to maintain privacy.

Refer to the following GIF to see how the Quick reply input will work:

Quick reply

Use a carousel to present multiple options as horizontally scrollable cards. Each card can contain an image, title, description, and one or more buttons for user actions.

The table below describes each field in the carousel configuration:

Field nameDescription
Input nameThe variable name where the selected response from the carousel will be stored.
Data typeDefault data type is displayed. For carousel input, it is set as String.
DescriptionEnter a brief explanation of the input's purpose to provide clarity on what information is being collected.
Dynamic responseToggle this option to generate carousel options dynamically using variables instead of static data.
CardsThe individual items displayed in the carousel, which can include images, text, and buttons.
Image: Allows you to upload an image (less than 10MB) to display the visual representation of the carousel item.
Title: The main heading for the carousel item, giving a quick overview of the option.
Description: Additional details about the carousel item to provide context to users.
Buttons: Click + Add button to add interactive buttons for each carousel item, enabling actions such as selecting an option or opening a link.
OthersEnable Allow users to type input manually (Checkbox) to enable users to type a response instead of selecting a button in the card.
drawing

Date

Use the date input field to collect structured, date-specific responses from users. You can apply validation to ensure the input falls within a defined range or meets formatting requirements.

The table below describes each field in the date configuration:

Field nameDescription
Input nameEnter the name where the user's selected date will be stored.
Data typeDefault data type is displayed. For date input, it is set as "Date".
DescriptionA brief explanation of the purpose of the date input field.
ValidationEnsures that the entered date meets specified constraints.
Range: Min. / Max: Allows setting a minimum and maximum date range to restrict user input within a valid timeframe.
Custom instructions: Specifies the format in which the date should be entered or displayed (example, YYYY-MM-DD, MM/DD/YYYY).
OthersEnable Mark user input as optional to allow users to skip providing a date if they prefer not to share it.

Date input

Custom

Use a custom field to collect user input in a specific format, apply validation rules, and store the response in a variable for later use. This field is ideal for capturing data like order IDs, ZIP codes, or any other input requiring tailored validation.

The table below describes each field in the custom input configuration:

Field nameDescription
Input nameEnter the name of the custom variable where the user's input will be stored. This variable can be used in the conversation.
Data typeSelect the preferred data type based on the custom input such as String or Number.
DescriptionEnter a brief explanation of what the field is used for.
Example of user inputProvides a sample input to guide the user toward the correct format. For example: “CUST1234” for a customer ID.
ValidationEnsures that the user input follows specific rules or formats.
Add custom validation: You can define specific rules that the user’s input must follow. This ensures that the AI agent collects accurate and correctly formatted data based on your business requirements.
OthersUse the Mark user input as optional checkbox to allow users to skip this question if they prefer not to provide the information.

Custom input