In the Add customer dialog, there is a department field.


You can pick the departments where the customer is belonged.


If a customer is added by a departments. Only the staffs in the department can see the chat messages.