Use custom toggle to open/close Webchat

You can toggle Webchat open/closed using a custom HTML element. This hides the default chat bubble that usually loads with Webchat.

Get your Webchat element ID

First, get your Webchat element ID:

  1. Select your bot from your Workspace.
  2. Go to Webchat > Deploy Settings.
  3. Under Chat Launcher, select Custom element.
  4. Copy the contents of the Element Selector field.
  5. Select Publish Changes.

Add the element to your website

Next, add an element to your website’s HTML. Set the id attribute to the ID you copied earlier:

<button id="bp-toggle-chat">Toggle chat</button>