Skip to main content
These examples accompany the JavaScript SDK reference. Use them to see a complete, working integration end to end — from loading the SDK and detecting connection, to sending commands in response to user actions.

SDK Playground Example

You can take a look at a running example at SDK Playground Example.
SDK Playground Example This example demonstrates how to cleanly initialize the integration, detect when it is successfully connected, and execute specific commands — such as starting a conversation, listing favorites, conversations, or assistants, posting a new message, and more.

API Class Example

This example is provided AS IS to demonstrate how you can cleanly integrate a Digital Twin in your web application and send various commands programmatically in response to user actions on the page. It is extracted from the playground example code.