.chat.department()
This API would let you specify the departments that you would like display in the chat windows of your visitors(pre-chat form).
Note:
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.
Tip:
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.
Syntax
Copied$zoho.salesiq.chat.department([" < DEPARTMENT1 > " , " < DEPARTMENT2 > "]);
Example
Copied<script>
$zoho.salesiq.ready=function()
{
$zoho.salesiq.chat.department(["Sales","Support","Marketing"]);
}
</script>