Considering the agent workspace is active
Good afternoon, imagine a scenario where I have 3 brands, consequently, 3 widgets different from each other. I have 3 departments responsible, each department to one of the brands, imagine department 1, department 2 and department 3 serving each brand. Also, I want to make the dropdown department list disappear from the pre-chat form, which I do by script. So since the pre-chat form no longer has a department drop-down list, how do I assign the tickets to the exact department, without the customer choosing the department, which of course, there would be no way once I removed it by script.
You can also set the department via the api/your custom script – see this command: departments.select.
Alternatively, you can user chat triggers, or a combination of Web Widget API and triggers to route chats accordingly.