.setDepartment()

This API lets you set a default department to which you would like to route all the chat requests placed by the visitors.

Note: If you opt to use this API the department field in the pre-chat window will automatically be hidden. 

Syntax

CopiedZohoSalesIQ.setDepartment(departmentName: string)

Example

CopiedZohoSalesIQ.setDepartment("Zylker Sales");