Virtual Agent Designer user input controls

  • Release version: Washingtondc
  • Updated February 1, 2024
  • 2 minutes to read
  • Summarize
    Summarized using AI
    This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.

    Summary of Virtual Agent Designer User Input Controls

    The Virtual Agent Designer provides various user input controls that enhance the conversational capabilities of ServiceNow's AI platform. These controls are designed to prompt users for information and capture their responses efficiently during interactions.

    Show full answer Show less

    Key Features

    • Input Variable: Each control stores user responses as input variables, accessible via getValue and getDisplayValue methods. The variable name is automatically generated based on the control's name.
    • NLU Entity Properties: When enabled, Natural Language Understanding (NLU) allows the extraction of recognized entity values from user inputs, facilitating slot filling and topic switching.
    • Default Value: Input prompts can have preset values defined by strings or scripts, set in the Advanced options.
    • Confirmation Messages: These messages confirm user responses and signal the end of an interaction node.
    • Input Controls: Various input controls include:
      • Input Collector: Collects data for AI chat systems.
      • Text Control: Prompts for text input.
      • Static Choice: Provides a list of predefined choices.
      • Grouped Choice: Lists multiple groups of choices.
      • Dynamic Choice: Generates choice lists dynamically from queries or scripts.
      • Boolean Control: Offers a Yes/No prompt.
      • Date Time Control: Lets users select dates and times.
      • File Picker: Allows users to upload files or images.
      • Carousel Control: Displays a horizontal selection of labeled images.
      • Secure Text Control: Encrypts sensitive information for secure handling.

    Key Outcomes

    Utilizing these input controls allows ServiceNow customers to create more interactive and responsive virtual agents, improving user engagement and data collection. The implementation of NLU enhances the agent's ability to understand user intents and manage topic transitions seamlessly, ultimately leading to a more efficient and intuitive user experience.

    Use the collection of input controls provided by Virtual Agent Designer to prompt and capture information from the user in a conversation.

    Common input control properties

    In addition to data pills and condition controls, each input control has the following common properties:

    Input variable for the user response
    Each control stores the user response in an input variable that is accessible from other controls within the same topic using the getValue and getDisplayValue methods. The variable name is based on the name that you assign to the input control. For example, if you assign the name First prompt to an input control, the variable name is first_prompt. The variable name is lowercase, with an underscore character instead of a space. For more information on these methods, see Virtual Agent scripts.
    Figure 1. The Variable name field is populated automatically
    The Variable name field is populated automatically under Text input.
    Natural Language Understanding (NLU) entity properties
    If NLU is enabled, the following properties are displayed in the property sheet for the Text, Static Choice, Dynamic Choice, Boolean, Date Time, and Carousel input controls. To view or enable these properties, go to the Advanced options section.
    • NLU entity: The entity that corresponds to the input variable for the control. You select the entity from the list of entities associated with the topic intent, as defined in the NLU model that you’re using for the topic. When Virtual Agent recognizes the entity value in user utterances and if the value meets the entity prediction confidence threshold, then Virtual Agent extracts the value. The value is stored in the input variable for the node. This storing action is called slot filling. Slot filling recognizes when multiple values for the same NLU entity occur in a conversation. Users are prompted with a list to confirm which node value to select when multiple nodes are tied to the same NLU entity. This property is available only for NLU topic discovery.
      Figure 2. NLU entity property
      Slide the NLU entity toggle to select an NLU topic when topic discovery is enabled.
    • Enable NLU to switch topics: Enables NLU prediction for the node. If enabled, users can enter text to answer questions, regardless of the type of input control being used. Virtual Agent uses this utterance to match another existing intent, letting the user switch topics. To enable this property on a node, navigate to Advanced options > Topic switching.
      Figure 3. Enable NLU to switch topics property
      Under Advanced options - Topic switching, slide the Enable NLU to switch topics toggle to switch topics property.
    Default value
    An input prompt can have a preset value that you define. This value can be either a string or a script that returns a string. This property is in the Advanced options section.
    Figure 4. Default value property
    Default value property under Advanced options to predefine a value for user input.
    Confirmation messages
    These bot response messages signal the end of the node interaction and ask the users to confirm their response. This property is in the Advanced options section.
    Figure 5. Confirmation messages properties
    Confirmation messages properties under Advanced options for input completion and default value confirmations.