Transcript

This page contains the API documentation for the Transcript UI module. This module is used to display a live transcript of a voice conversation.

Usage

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

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

Embed the module using the following tag:

<agent-assist-transcript>

Attributes

Property name Type Comment
show-message-time BooleanString Whether to show a timestamp offset next to each message.

Usage

Attributes are string-based component properties which can be set in the following ways:

From your HTML template directly:

<element-selector property-name="value">

From your JavaScript code:

var el = document.querySelector('element-selector');
el.setAttribute('property-name', 'value');

Inputs

No inputs.

Types

See the following section for the custom types used by the component.

BooleanString

"true" | "false"