Control the Webchat widget
The following table shows the Proto script that can be used to control the display of the widget:
Script | Description |
---|---|
| To open the widget |
| To close the widget |
| To hide the bot avatar and widget |
| To show the bot avatar and widget |
| To start the webchat directly |
| To check if the widget is open |
| To hide bot avatar |
If you want to check if the widget is open or closed, you can also use the following code:
To hide the bot avatar when the widget loads, you can use the showToggleButton
option to keep it hidden:
Last updated