Hide chat based on departments | Community
Skip to main content

Hide chat based on departments

  • July 26, 2017
  • 8 replies
  • 0 views

Is 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?

This topic has been closed for replies.

8 replies

  • July 26, 2017

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


  • September 12, 2017

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.


  • September 13, 2017

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


  • September 20, 2017

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.


  • September 21, 2017

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


  • September 21, 2017

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?


  • September 22, 2017

The setting cannot be changed via the mobile apps, only the web dashboard.


  • September 25, 2017

OK. Thank you.