Hide chat based on departments
BeantwortetIs it possible to hide or display the chat batch according to which department is online?
We have different domains (.de/.com/.it/...) and I'd like that the chat widget only shows up when an agent that speaks the right language is online. For example, I only want the chat widget to appear on our Italian website if an agent that belongs to department "Italiano" is online. Is that possible?
-
Hi Jule,
You can accomplish this by using the Javascript APIs.
You can use the following to get the department status: https://api.zopim.com/files/meshim/widget/controllers/liveChatAPI/Departments-js.html#$zopim.livechat.departments.getAllDepartments
Based on the status, you can use the following to hide the widget: https://api.zopim.com/files/meshim/widget/controllers/LiveChatAPI-js.html#hideAll
Thanks,
Ramin
-
It looks like this thread is a little old, but I thought I'd start here because I think this is the path I need. I need to be able to hide the widget completely at different times throughout the day. Someone from Zendesk suggested that I add some sort of javascript to turn off the widget when the # of agents = 0. I'm not a developer so I don't know how to do this. Can you point me in the direction of this code?
Thanks.
-
Hi Gene,
Have you tried using operating hours already? If you have the offline form turned off, the widget should disappear after the operating hours schedule.
You can learn more about operating hours here: https://chat.zendesk.com/hc/en-us/articles/212016168-Creating-a-schedule-with-operating-hours-Professional-and-Enterprise-
-Ramin
-
Hi Ramin. Thanks for your response. This doesn't exactly fit our needs. What we'd like to be able to do is hide the widget at a moment's notice, pretty much like an on/off switch. Any other ideas are appreciated.
-
Hi Gene,
If you are using the standalone Chat widget, there is a Widget setting to hide the widget under the Settings section.
If you are using the Web Widget, you will need to turn off Chat via the widget settings inside the Support product.
-Ramin
-
We are using the Chat Widget. Where can I find the setting you are referring to? Can this be changed via the mobile app or only in a browser?
-
The setting cannot be changed via the mobile apps, only the web dashboard.
-
OK. Thank you.
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
8 Kommentare