Virtual Agent Designer user input controls
Summarize
Summary of Virtual Agent Designer user input controls
Virtual Agent Designer provides a variety of user input controls to prompt and capture information from users during conversational interactions. These controls are essential for building effective Virtual Agent topics, especially when leveraging Large Language Model (LLM) capabilities. Each input control stores user responses in input variables, which can be accessed throughout the topic for further processing.
Show less
Common Properties
- Input Variable: Each control’s response is saved in a variable named based on the control’s assigned name (lowercase, underscores instead of spaces). These variables can be accessed via getValue and getDisplayValue methods.
- NLU Entity Properties: When Natural Language Understanding (NLU) is enabled, controls like Text, Static Choice, Dynamic Choice, Boolean, Date Time, and Carousel support entity recognition and slot filling to extract and confirm user input values.
- Enable NLU to Switch Topics: This option allows users to enter free text to trigger topic switching based on NLU intent matching, enhancing conversational flexibility.
- Default Value: Input prompts can have preset values defined as strings or scripts.
- Confirmation Messages: Controls can include confirmation prompts to verify user responses at the end of interactions.
Large Language Model (LLM) User Input Controls
Supported input controls within LLM topics include Input Collector, Text, Static Choice, Dynamic Choice, Boolean, Date Time, and Carousel inputs. To maintain response accuracy, it is recommended to use no more than five input controls within a single LLM topic or Input Collector, as excessive inputs can overwhelm the model.
Individual Input Controls
- Input Collector: Gathers multiple inputs for use in LLM-driven conversations.
- Text Input: Prompts users to enter free text.
- Static Choice: Offers a predefined list of options where users select one.
- Grouped Choice: Displays multiple groups of choices in a single message.
- Dynamic Choice: Generates options dynamically by querying tables or scripts.
- Boolean: Presents a simple Yes/No prompt.
- Date Time: Allows users to select dates, times, or both.
- File Picker: Enables users to upload files or images, which display immediately in the Virtual Agent client.
- Carousel: Shows a horizontal series of labeled images for single-item selection.
- Secure Text: Encrypts sensitive information entered as text, suitable for topics using LLM discovery.
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
getValueandgetDisplayValuemethods. 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 isfirst_prompt. The variable name is lowercase, with an underscore character instead of a space. For more information on these methods, see Virtual Agent scripts.
Large Language Model (LLM) user input controls
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 - 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 .
Figure 3. Enable NLU to switch topics property
- 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.
- 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.
- 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.