You can manually open, close, or toggle the Webchat window using JavaScript methods.
If you want to open/close your Webchat at a certain point in your Workflow, you can use the built-in Webchat cards.
You will need:
  • A website with an embedded bot
  • Basic familiarity with JavaScript

Open Webchat

To manually open Webchat:
window.botpress.open()

Close Webchat

To manually close Webchat:
window.botpress.close()

Toggle Webchat

To manually toggle Webchat:
window.botpress.toggle()
This opens Webchat if it’s closed, or closes Webchat if it’s open.