.chat.department()
This API would let you specify the departments that you would like to display in your visitors' chat windows (pre-chat form).
Note: Ensure that all departments responsible for this chat are enabled under the brand settings. To do so, navigate to Settings > Brands >Choose your brand > Flow controls > under "Departments responsible for chats", click "Select All".
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>