Container V2

The container V2 offers significant improvements from the initial container and will continue to have the most up-to-date features and changes. To ensure the most impactful suggestions and key tools are always accessible to the agent, version 2 uses a reactive display with dynamic panels and a unified feed of suggestions.

Usage

Import the module in your HTML page with the following code:

<script src="https://www.gstatic.com/agent-assist-ui-modules/v2/container.js"></script>

Embed the module with the following tag:

<agent-assist-ui-modules-v2>

UI module connector

Unlike V1, you must initialize the UI module connector separately in V2. Decoupling the connector from the container allows for greater integration flexibility. For the set up, refer to UI modules connector. Many of the properties on the V1 container apply only to the UI module connector.

Properties

Following are the V2 container properties:

Property name Type Comment
features string Comma-separated list of Agent Assist suggestion feature keys to render. Supported list: CONVERSATION_SUMMARIZATION, SMART_REPLY, KNOWLEDGE_SEARCH, Proactive generative knowledge assist.
session-id string Optional session ID for use that is not conversation based, like with Generative knowledge assist.
show-header BooleanString Whether to show the Agent Assist branding header.
show-dark-mode-toggle BooleanString Whether to support showing the toggle for dark mode versus light mode.
namespace string Not recommended, but available if multiple instances of UI modules are required.