New Feature: Chat APIs

12 Comments

  • Tomasz Eitner
    Comment actions Permalink

    Morning Daniel, 

     

    I got problem with that, I have tried both methods, and i still get the choose department field visible..

     

    Because i'm not literate with JS - would you be able to help me with some example code how to hide choose department option?

     

    Cheers

    0
  • Ramin Shokrizadeh
    Comment actions Permalink

    You will need to use the following: https://jsbin.com/qufixid/edit?html,output

    -Ramin

     

    0
  • Tomasz Eitner
    Comment actions Permalink

    Hey Ramin .!

     

    Great , that did actually work and have hidden the list,  but it have set customer with "no department " is there a way to set the default department? 

     

    I can see this :

     

    zESettings.webWidget.chat.departments.select

     

    but not sure how to use it in new API system.

     

     

    I got this:

     

    0
  • Ramin Shokrizadeh
    Comment actions Permalink

    You can look at the code example in the docs to see how you can use both the enabled/selected option: https://developer.zendesk.com/embeddables/docs/widget/settings#departments

    If you still need assistance, please email chat@zendesk.com and our advocates will help you with the code.

    0
  • Gabriele Sannicandro
    Comment actions Permalink

    Hi everyone!

    I have a problem with the new widget: the function $zopim.livechat.clearAll(); it’s not supported.

    Have you some idea?

    0
  • Ramin Shokrizadeh
    Comment actions Permalink

    Hi Gabriele,

    For the new experience, you should be using:

    zE('webWidget', 'logout')

    This is listed in the migration guide here: https://developer.zendesk.com/embeddables/docs/widget/chat_api_migration

    -Ramin

     

    0
  • Gabriele Sannicandro
    Comment actions Permalink

    i'm sorry Ramin, but i don't have the same experience with "logout": the method $zopim.livechat.clearAll() clear the session, remove tag, endchat.

    Logout function only in logged chat and it's not my case...

    0
  • Ramin Shokrizadeh
    Comment actions Permalink

    Hi Gabriele,

    There is a defect with the logout API and the team in Melbourne are working on resolving it now. Will update you when the fix has been released. If you need to use the API right now, would recommend opting out of the new experience until the issue is resolved.

    Thanks,

    Ramin

    0
  • Kristin Z.
    Comment actions Permalink

    Hi,

    We previously used $zopim.livechat.window.show(); to show the chat window on button click if chat is available, but now it triggers the main help search window and we dont want that - it confuses our customers.

    can someone point me to how to trigger the chat window where users would initiate the live chat? i want it to open immediately instead of having to click "Help" > "Contact Us" (at the bottom where our users would miss it) > "Live Chat". I want it to expose "Live Chat" on button click.

    I hope that's clear! :) 

    0
  • Ramin Shokrizadeh
    Comment actions Permalink

    Hi Kristin,

    Thanks for posting your question. You will want to use the suppress API to filter the Web Widget to just Chat and then use the activate API to open the widget on button click.

    You can learn more about the suppress API here: https://developer.zendesk.com/embeddables/docs/widget/settings#suppress

    -Ramin

     

    0
  • Gabriele Sannicandro
    Comment actions Permalink

    Hello Ramin,

    some news about your post... https://support.zendesk.com/hc/en-us/community/posts/360004380367/comments/360002228788

    ?

    0
  • Ramin Shokrizadeh
    Comment actions Permalink

    Hi Gabriele,

    I have responded to your email, the problem should be resolved now. If you are still experiencing the problem, please let us know in the existing email thread.

    Thanks,

    Ramin

    0

Please sign in to leave a comment.

Powered by Zendesk