You can assign a department to a conversation in several ways:
Settings > Miscellaneous > Departments settings > Display in dashboard. This setting will force the user to choose a department when starting a new conversation.Settings > Automations > More.**var SB_DEFAULT_DEPARTMENT = ID;**. Insert the code into the pages where the chat is displayed and replace ID with the department ID. For more details check the API here.