.Chat.isEnabled
The get-only property can be used to check if a visitor can initiate a new chat. This property changes based on the business hours and hide embed when offline configurations. The property will also be false if the visitor's IP is blocked by an operator. You may use this property if you have implemented a custom support UI where the ZohoSalesIQ.Chat.show(new: true) API is used to allow the visitor to start a new support conversation.
Usage:
Copiedlet supportChatEnabled = ZohoSalesIQ.Chat.isEnabled
if supportChatEnabled{
//your code goes here
}else{
//your code goes here
}