Displaying or hiding the chat bubble based on status

Note: This guide applies only to the Chat widget from Chat-only accounts, not from Chat+Support accounts. See About Chat account types in the Chat Help Center.

There are two APIs that manipulate the chat bubble's visibility:

  • API to make the bubble visible:


  • API to hide the bubble:


The following API, which detects the status of the widget, is useful with the above APIs:


 Paste the following code right beneath your Zopim live chat script and it'll start working instantly.

The script above shows the bubble if the chat status is online only. It will hide the bubble if the chat status is either offline or away.