This API would let you specify the departments that you would like display in the chat windows of your visitors(pre-chat form). 


Do remember that for this API to work you would have to navigate through Settings-> Websites-> Website name -> Live Chat Widget -> Chat Window -> Configurations-> Choose a Specific Department to Assign Chats and choose the option "Allow visitor to select department" from the list of options displayed.


You can also choose to display only the departments in which the operators are available online to assist the visitors hitting your website by specifying online.department as the parameter of the method.  


Copied$zoho.salesiq.chat.department([" < DEPARTMENT1 > " , " < DEPARTMENT2 > "]);