# Webchat Embedding Example

This is an example of embedded webchat. Try adding your "botId" as a URL parameter.

Example: `/assets/modules/channel-web/examples/embedded-webchat.html?botId=test`

## Custom buttons

You can control the webchat visibility programmatically using the Webchat SDK. Moreover, you can listen for webchat events to detect if the webchat is opened or closed. In this example, the Toggle button changes color when the webchat is open (red).

## Send Messages Programmatically

You can simulate the user typing a message programmatically.

## Update Webchat Configuration

You can change the webchat configuration at runtime.

You can also change language

## Control User Identity

The current user ID is UNKNOWN

## Working with multiple chat windows