.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. 

Example

CopiedZohoSalesIQ.setDepartment("Marketing");