Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developer.watson-orchestrate.ibm.com/llms.txt

Use this file to discover all available pages before exploring further.

Scrolls the chat view to a specific message by its ID.

Syntax

instance.scrollToMessage(messageId);

Parameters

messageId
string
required
The unique identifier of the message to scroll to.

Returns

void
Returns a void operator.

Examples

The following example scrolls to a specific message:
// Scroll to a specific message
const messageId = 'msg-12345';
instance.scrollToMessage(messageId);

Do you need practical examples?

Learn how to apply the features available for embedded chat into your implementation with guidance and examples.