Hide chat based on departments

답변함

8 댓글

  • Ramin Shokrizadeh
    Zendesk Product Manager

    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

    0
  • Gene DiPaula

    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.

    0
  • Ramin Shokrizadeh
    Zendesk Product Manager

    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

    0
  • Gene DiPaula

    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.

    0
  • Ramin Shokrizadeh
    Zendesk Product Manager

    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

    0
  • Gene DiPaula

    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?

    0
  • Ramin Shokrizadeh
    Zendesk Product Manager

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

    1
  • Gene DiPaula

    OK. Thank you.

    0

댓글을 남기려면 로그인하세요.

Zendesk 제공