Text user input control

  • Release version: Washingtondc
  • Updated April 3, 2024
  • 7 minutes to read
  • The Text user input control in a Virtual Agent topic prompts the user for a text string.

    Text user input control properties for LLM topic discovery

    Property Description
    Node name Name that identifies this Text user input control node in the topic flow.
    Detail description

    The one piece of information needed from the user. For example, Ask the user which service catalog item they need.

    Input format

    Text format that is validated when a user enters certain text items. If the user doesn't enter the expected format, an error message indicates that the format is not valid and asks the user to reenter the text.

    Choose the format of the text item to be validated:
    • Text: Any text string (no validation)
    • Email: Format that consists of an email prefix (user name), the @ symbol, and domain.
    • IP address (IPV4, IPV6): Data communication delivery format for Internet Protocol version 4 or version 6.
    • Phone number (E.164): Internationally recognized standard phone number format.
    • URL: Web address format
    • Custom: A script that provides a validation rule for a custom text format. The script should include related error messages that are displayed when the expected format is not entered.

    For phone and IP address format examples, see E.164 phone formats and IP address field types.

    Advanced
    Enforce user prompt

    Toggle to open a field for a custom message shown to the user instead of the message generated by the LLM. You can create custom messages in plain language, input a script, or define conditions with the data pill picker.

    Additional instructions for LLM

    Further instructions to the LLM, such as adding data formats, restrictions, or default values for user responses. You can create additional instructions in plain language, input a script, or define conditions with the data pill picker.

    Hide or skip this node
    Conditionally use this node if No-code condition statement or low-code script that specifies a condition for presenting this node in the conversation. The condition must evaluate to true.
    Allow user to skip this node if

    No-code condition statement or low-code script that specifies a condition for letting users skip this node in the conversation. The condition must evaluate to true. You can set this field using either the condition builder or a script. When this field is active, the node presents the user with a Skip option in the Virtual Agent conversation. Alternatively, in an LLM topic, you can reply with an utterance such as I want to skip this question. Virtual Agent chat window with Skip button following a query from the Virtual Agent.

    Example Text user input control for LLM topic discovery

    Table 1. LLM topic input control properties
    Input properties Input prompt

    Text user input properties include node name, detail description, and input format. Advanced options include Enforce user prompt, additional instructions to LLM, and Hide or skip this node.

    Figure 1. Web UI Text user input prompt
    Web client showing input prompt. The text reads, "Could you please provide your first service catalog item?"

    Text user input control properties for NLU topic discovery

    Property Description
    Node name Name that identifies this Text user input control node in the topic flow.
    Variable name Name of the variable that stores the user response to this prompt. The variable name is automatically created from the Node name property.
    Prompt

    Prompt or question for the user. The prompt can be either a text string or a script that returns text. This value is used only when the default value is not specified. For example: What's your name?

    Input format

    Text format that is validated when a user enters certain text items. If the user doesn't enter the expected format, an error message indicates that the format is not valid and asks the user to reenter the text.

    Choose the format of the text item to be validated:
    • Text: Any text string (no validation)
    • Email: Format that consists of an email prefix (user name), the @ symbol, and domain.
    • IP address (IPV4, IPV6): Data communication delivery format for Internet Protocol version 4 or version 6.
    • Phone number (E.164): Internationally recognized standard phone number format.
    • URL: Web address format
    • Custom: A script that provides a validation rule for a custom text format. The script should include related error messages that are displayed when the expected format is not entered.

    For phone and IP address format examples, see E.164 phone formats and IP address field types.

    NLU entity

    Option to associate an NLU entity with the node. If an NLU entity is associated with the input variable for this node, Virtual Agent can slot-fill the specified value based on the user's utterance. Select an entity from the list of entities associated with the topic intent.

    When you specify an entity for the node, the Do not ask users to confirm recognized entity toggle switch displays. When enabled, users are not prompted to confirm the extracted entity.

    Advanced
    Make this input secure
    Enable Toggle switch that encrypts the Text bot user input. When enabled, the user input is masked and appears as a series of dots in the chat window.
    Hash function

    [Visible when Make this input secure is enabled]

    The method digest algorithm based on the standard WS-security standard. Choose one of the following:
    • SHA-256 (lower case)
    • SHA-1 (lower case)

    For more information about the WS-security standards, see WS-Security properties.

    Encryption salt

    [Visible when Make this input secure is enabled]

    Random data that is used as an additional input to a one-way function that hashes data.
    Default value
    Predefine a value for user input

    Predefined value for the user response to the question or prompt. The response defined in the Default value confirmation field asks the user to confirm the default value. If the user responds with no, the value becomes null. The default value can be either a text string or a script that returns text. For example, if you're using dot-walking, the default value might be: Script Variables > Last username. Or if you're using a script, the default value might be: {{vaScripts.lastUsername}}.

    Confirmation messages
    Input completion confirmation

    Bot response shown to the user when the node interaction is complete. The message can be either a text string or a script that returns text. For example, if you're using dot-walking: Thanks, (Input Variables > Username)! Or if you're using a script, the acknowledgement might be: Thanks, {{vaInputs.username}}!

    Default value confirmation

    Message that asks the user to verify that the value in the Default value field is correct. This message is used instead of a value in the Prompt field. It can contain either a text string or a script that returns text. For example, if you're using dot-walking: Are you (Input Variables > Username)? Or if you're using a script, the confirmation message might be: Are you {{vaScripts.lastUsername}}?.

    Conversation switching
    Turn on to let users change the subject

    Option to enable NLU prediction for this 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.

    Hide or skip this node
    Conditionally show this node if

    No-code condition statement or low-code script that specifies a condition for presenting this node in the conversation. The condition must evaluate to true.

    Allow user to skip this node if

    No-code condition statement or low-code script that specifies a condition for letting users skip this node in the conversation. The condition must evaluate to true. You can set this field using either the condition builder or a script. When this field is active, the node presents the user with a Skip option in the Virtual Agent conversation. Alternatively, in an LLM topic, you can reply with an utterance such as I want to skip this question. Virtual Agent chat window with Skip button following a query from the Virtual Agent.

    Skip reprompting if

    No-code condition statement or low-code script that specifies a condition for letting users skip reprompting in the conversation. When a preceding node is revisited through a topic loopback or Dialog Act, the Virtual Agent bypasses this node and automatically retain its original value.

    Example Text user input control for NLU topic discovery

    Input properties Input prompt
    Figure 2. Text input control basic properties
    Text user input properties include the node name, prompt, input format, and optional NLU entity.
    Figure 3. Make this input secure (Advanced properties)
    Under Make this input secure, slide the toggle switch to enable the feature. The Hash function and Encryption salt fields display.
    Figure 4. Web UI Text user input prompt
    The input prompt is shown in the web client. The text reads, "Please enter a short description of what you're looking for."
    Figure 5. User input prompt on a mobile app with the Make this input secure toggle switch enabled
    A secure user input on a mobile app displays dots in place of the password.

    Channel support

    Note:
    Virtual Agent Designer controls may display and function differently in other channels.
    Table 2. Channel support for the Text user input control
    Channel Support Constraints
    Web UI Supported None
    Mobile UI Supported None
    Now Assist panel Supported None
    Microsoft Teams Supported None
    Slack Supported Slack users can edit text previously entered in a conversation. However, Virtual Agent processes messages as they are first entered. If a Slack user edits text input, such as a comment to update a case, then Virtual Agent does not evaluate the edited update.
    Workplace Supported None
    Facebook Messenger Supported The maximum character limit is 5000 characters.
    SMS Twilio Supported None
    LINE Supported The maximum character limit is 5000 characters.
    WhatsApp Supported None
    Apple Messages for Business Supported None
    Alexa (Voice) Supported For screen devices, character limits may apply. For more information, see the Alexa developer documentation.