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.
  • Location - Captures the user’s location based on the user input.
  • Dynamic rich media - Displays interactive options like cards with images and action buttons that are generated dynamically.

Create input

To create a input, follow these steps:

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

image

  1. Click + Create input.

    drawing
  2. 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 input

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 input

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

Location

Use the Get Location input action to collect and store a user’s location during a conversation. The collected location is stored as an object variable and can be used for tasks such as coordinating delivery services, suggesting nearby options, or validating service availability based on the user’s area.

The table below describes the fields available in the Location action:

Field nameDescription
Variable name (Mandatory)Define the variable where the user’s location will be stored. Example: user_Location.
Data typeDefault data type is displayed. For quick reply input, it is set as Object.
DescriptionAllows the user to provide additional details about the purpose of collecting the Location. Example: "Please share your current address for delivery".
Select allowed countriesAllows you to restrict the location input to specific country codes. Useful when services are limited to certain regions.
Add custom instructionOptionally add more specific instructions or hints to guide the user in providing their location.
Mark user input as optionalIf this option is selected, the user is not required to provide their location. If unchecked, the agent will prompt the user until valid location data is shared.
drawing

Dynamic rich media

Dynamic rich media is used to display interactive, visually rich options to users such as carousels or cards that are generated dynamically. These responses are fetched via APIs or from functions via workflow.

You can use Dynamic rich media when:

  • You want to personalize the experience with updated, real-time data.
  • The options are not static and need to change based on API responses.
  • You want to display content in a more engaging and structured format, such as a carousel or card layout.

Examples:

It is useful in scenarios where user options need to be customized for example:

  • Displaying a list of available resorts or hotels
  • Showing product recommendations
  • Listing support ticket summaries
  • Offering multilingual responses based on user preferences

The table below describes the fields available in the Dynamic rich media action:

Field nameDescription
Input name (Mandatory)Define the name of the input field where the user’s response will be stored.
Data typeDefault data type is displayed. In this case, it is a String, meaning it only accepts text values.
DescriptionProvide details of what this input is about.
Linked workflowSelect the workflow you created to fetch and format the data.

How to configure Dynamic rich media

To configure and display dynamic rich media in your AI agent conversation, follow these steps:

  1. Go to Prompts section and click Actions > Get input.

  2. Select Dynamic rich media action.

    drawing
  3. Define the following fields:

    i. Input name: Enter the Input name.

    ii. Describe what this input is about: Provide details of what this input is about.

    drawing
  4. Click Configure.

    drawing
  5. Click Insert.

    drawing
  6. Click Save.

  7. Click Edit icon of the Get input action.

    drawing
  8. Click View details.

    drawing
  9. Click Define workflow to configure the workflow output.

    drawing
  10. Add an Output node, select Image, and copy the sample variable format to display the dynamic image.

    drawing
  11. Click on the drop-down and select + Create new variable.

    drawing
  12. Enter the variable details:

    i. Variable name: Specify the variable name.
    ii. Data type: Select the data type as object.
    iii. Default value: Paste the copied sample format or enter the image URL to display the dynamic image.
    iv. Click Add.

    drawing
  13. Go to Agent > click Preview to test and display the dynamic image.