Assistant Designer user input controls
Summarize
Summary of Assistant Designer user input controls
Assistant Designer provides a variety of user input controls to capture information during Virtual Agent conversations. These controls facilitate interactive, dynamic data collection within topics, especially those leveraging Large Language Models (LLM) and Natural Language Understanding (NLU) capabilities. Each input control stores user responses in variables accessible throughout the conversation, enabling flexible and contextual dialogue flows.
Show less
Common Properties of Input Controls
- Input Variables: Each control saves user responses in a uniquely named input variable, derived from the control’s assigned name (lowercase, underscores for spaces). These variables can be accessed by other controls using
getValueandgetDisplayValuemethods. - NLU Entity Integration: For Text, Choice, Boolean, Date Time, and Carousel inputs, NLU entities can be linked to enable automatic value extraction and slot filling from user utterances.
- Topic Switching: Enabling NLU prediction on a node allows users to switch topics by entering text that matches another intent, improving conversational flexibility.
- Default Values: Input prompts can have preset values defined as static strings or scripts.
- Confirmation Messages: Optional bot responses can confirm user inputs at the end of a node interaction.
Large Language Model (LLM) User Input Controls
LLM topics support specific user input controls designed for efficient data collection and user interaction:
- Input Collector: Gathers multiple user inputs within LLM topics for Now Assist conversations.
- Text: Prompts users to enter free-form text strings.
- Static Choice: Presents predefined single-choice lists.
- Grouped Choice: Displays multiple grouped choice lists in one message.
- Dynamic Choice: Creates choice lists dynamically by querying tables or using scripts.
- Boolean: Offers a simple Yes/No prompt.
- Date Time: Allows users to select dates and/or times.
- File Picker: Enables file or image uploads, with immediate display of images within the client.
- Carousel: Shows a horizontal series of labeled images for single-item selection.
- Secure Text: Encrypts sensitive text input to protect confidential information.
Important: Limit the number of user input controls to five or fewer per LLM topic or Input Collector to prevent overwhelming the LLM and risking inaccurate responses.
Practical Implications for ServiceNow Customers
By leveraging these input controls, ServiceNow customers can design conversational topics that efficiently capture and manage user-provided data, enhance dialogue flexibility with NLU and LLM capabilities, and secure sensitive inputs. The ability to dynamically generate choices and confirm responses improves user experience and data accuracy. Proper use of these controls ensures conversations are engaging, relevant, and seamlessly integrated with backend processes.
Use the collection of input controls provided by Assistant 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.
- 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 .
- 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.