Enabling/Disabling Structured Content Interactions for Guided Bot Conversations
Structured content enhances conversational commerce by enabling richer interactions, seamless customer journeys, and operational efficiency. While existing behaviors are preserved by default, brands can tailor structured content (SC) configurations to meet their specific conversational needs. Despite some limitations such as current restrictions in the Bot Studio and Agent Workspace, planned updates will expand functionality and address gaps.
This guide provides a comprehensive overview of enabling and disabling SC interactions in LivePerson to create more guided and predictable bot conversations. It empowers brands to control user interactions by:
- Enabling or disabling old SC, including outdated or previously presented content, to streamline conversation flows.
- Restricting or disabling the free text input area when SC is presented, ensuring users interact only with the latest structured options.
By focusing on these capabilities, brands can eliminate conversation disruptions, improve bot flow predictability, and deliver a smoother, more consistent user experience. These features address key challenges in conversational design, allowing for highly effective and tailored bot interactions.
Key Benefits
- Control Over Structured Content Availability: Enables or disables user interaction with structured content (SC) that is not the latest or freshest, ensuring the bot only presents actionable options. This prevents users from engaging with outdated SC and avoids disruptions to the conversation flow.
- Disable Free Text Input for Guided Interactions: Restricts user input to the latest SC options, eliminating the risk of bot flows breaking due to unexpected free text inputs.
Customer Benefits
- Enhanced Flow Control: Enforces response patterns that align with bot or agent expectations, maintaining a smooth conversational flow.
- Minimized Errors: Reduces unintended user interactions by guiding users to appropriate responses.
- Improved User Experience: Provides clear, structured pathways, ensuring seamless and predictable interaction.
To achieve these controls, LivePerson introduces a dual-level configuration approach:
- Brand-Level Settings: Applied across all flows unless overridden, these settings provide high-level management for SC interactions via the management console.
- Component-Level Flags: Embedded directly in the JSON of each SC component, these flags offer granular control, taking precedence over brand-level settings when defined.
This guide equips the following audience with the tools to implement SC effectively while adhering to LivePerson’s best practices:
- Developers: Implementing SC configurations.
- Product Teams: Defining user interaction flows.
- Administrators: Managing brand-level settings.
Feature Capabilities
Disabling Old Structured Content
Objective: Prevent users from interacting with SC that is no longer the latest message.
Behavior: When the flag blockSCWhenNotLastMsg
is enabled:
- Old SC elements are grayed out.
- Action buttons are disabled but remain visible.
- Screen readers indicate these items as disabled.
1. All components, including the image and buttons, are interactive. 2. The image and one button are disabled, while two other buttons remain interactive. 3. All components, including the image and buttons, are disabled and non-interactive.
Locking Text Input Field
Objective: Restrict user responses to SC options, disabling free text input.
Behavior: When the flag blockTextInput
is enabled:
- Text input becomes non-interactive.
- The “Send” button is disabled.
- Users must select one of the SC options.
Configuration Overview
Brand-Level Settings
messaging.web.blockSCWhenNotLastMsgDefault
: Controls the default behavior for structured content (SC) interactivity. If set to true, SC is interactive; if false, it is not interactive. This setting determines the enablement of SC interactivity at the brand level.messaging.web.blockTextInputDefault
: Controls the default behavior for text input interactivity. If enabled, users are restricted from entering free text and are guided to interact only with SC options.
SC-Level Flags
blockSCWhenNotLastMsg
: Overrides the brand-level setting for SC interactivity. This flag is set on the structured content JSON object and can be applied at different levels, from the top level (affecting all components of a structured content group, such as a carousel, buttons, links, or images) to the most granular level (specific to individual components).blockTextInput
: Overrides the brand-level setting for text input interactivity. Like the SC flag, this is set on the structured content JSON object and can be applied at different levels, from the top level to each component.
By using these configuration options, brands can flexibly manage SC and text input behavior to meet specific interaction requirements, ensuring both control and adaptability in bot-guided conversations.
Implementation Details
Example Configurations
JSON schema for enabling SC Non-Interactivity flag:
javascript:
{
"blockSCWhenNotLastMsg": true
}
JSON schema for enabling Lock Text Input flag:
javascript:
{
"blockTextInput": true
}
JSON schema for enabling both flags:
javascript:
{
"blockSCWhenNotLastMsg": true,
"blockTextInput": true
}
UI/UX Behavior for Disabled SC
- Appearance: Disabled structured content (SC) components typically appear grayed out. However, the exact disabled color depends on the browser’s default styling for disabled elements. For example, some browsers might use a color other than gray.
- Screen Reader Support: Screen readers announce disabled SC components as “disabled,” ensuring accessibility compliance.
- Interaction: Users can view the disabled SC components but they cannot select or interact with them.
Enablement Steps
Setting Up Brand-Level Defaults
- Reach out to your LivePerson account team or support team to enable the required features in the backend configuration.
- Work with your account team to set the following parameters:
messaging.web.blockSCWhenNotLastMsgDefault
messaging.web.blockTextInputDefault
Configuring SC-Level Flags
- Modify the structured content JSON to include the required flags:
blockSCWhenNotLastMsg
blockTextInput
- Verify the behavior of the flags by testing the structured content to ensure proper functionality.
Testing and Validation
Verify SC interactivity and text input restrictions in a non-production environment.
Use Cases
- Guided Flows: Use for close-ended questions, e.g., “Yes/No” or “Select an Option.”
- Restricted Input Scenarios: API-driven workflows where free text increases error likelihood.
Limitations
- Drag-and-Drop Support in Conversation Builder: Configuration fields for enabling or disabling structured content and text input are not supported in the drag-and-drop UI of LivePerson’s Conversation Builder, where bot flows are designed.
- Bot Preview Issues: There may be limitations or inconsistencies in previewing bot flows with these configurations in the Conversation Builder preview environment. Always validate in a live testing environment for accuracy.
Missing Something?
Check out our Developer Center for more in-depth documentation. Please share your documentation feedback with us using the feedback button. We'd be happy to hear from you.