# User Inputs

This block allows you to specify the data you want to collect from users. Define the types of inputs required, such as text, selections, or files, to ensure your AI agent gathers the necessary information effectively and efficiently.

# A. Collect and Customize User Inputs for Your AI Agent

To effectively interact with AI agents, you must define specific inputs that users provide to trigger the AI agent's responses. Different types of inputs serve various purposes, such as:

  • Typing instructions for blog creation.
  • Entering the purpose for data analytics.
  • Selecting different customer segments.

# B. Steps to Configure User Inputs:

  1. Navigate to the User Input block in the AI agent builder.
  2. Click "Add Input."
  3. Select and fill in the desired Input Type, Label Name, Variable Name, and Max Character Length, and specify whether it is a Required field.

    Note: Please refer to Key Input Fields to Customize for detailed explanations of each input field.

  4. Click "Save" to finalize the user input.
  5. To add more user inputs, repeat from step 2.

# C. Key Input Fields to Customize:

  1. Input Type: Specify the type of input (e.g., Text, Paragraph, Dropdown Selection).
  2. Label Name: Add a clear label to guide users (e.g., "Enter Blog Instructions").
  3. Variable Name: Define a short, identifiable name for programming (e.g., blog_instruction).
  4. Max Character Length: Set the maximum allowed length for the input (e.g., 250 characters).
  5. Required: Indicate whether the input is mandatory or optional.

# D. Query Variable

TIP

You only need to configure this section if you've added knowledge for your Web App agent.

In knowledge base retrieval scenarios, the query variable represents the user's question or input. This variable is used to search the knowledge base for the most relevant text or information related to the user's query.

By leveraging the query variable, the system ensures it retrieves accurate and relevant answers from the knowledge base, which serves as the foundation of your AI agent's responses. To maximize precision, it’s important to include all relevant elements of the user's query in a single input field. This ensures the system can analyze the input context effectively and provide comprehensive answers.

# Sample User Input Configuration

If you have a form that lets users ask about product features, warranties, and support, you can configure a single input field like this:

  • User Input: Features, warranty, and support of the product

# Steps to Configure Query Variable

Before configuring the query variable, please ensure that you have added knowledge for your Web App agent, and there is at least 1 user input configured.

  1. Click the "Select Query Variable" button.
  2. Choose the specific user input for which you would like your AI agent to retrieve knowledge.
  3. Click "Save".