Skip to product menu
Skip to main content

.isChatEnabled()

This method can check if a visitor can initiate a new chat. This property changes based on the business hours and hide embed when offline configurations. 

If an operator blocks the visitor's IP, the property will also be false. You may use this property if you have implemented a custom support UI where the ZohoSalesIQ.openChat() API allows the visitor to start a new support conversation.

Syntax

CopiedZohoSalesIQ.isChatEnabled(callback: (isEnabled: boolean) => void)

Example:

CopiedZohoSalesIQ.isChatEnabled((isEnabled)=>{
     //your code goes here
 });