Chat EAP - Set chat department

Completed

10 Comments

  • Daniel Aron

    Hi Russell,

    The Chat APIs ($zopim.livechat) are not supported in the EAP yet. However we are actively working on it, including the set departments API. 

    If this is critical to your setup, I recommend waiting until we release the APIs (ETA October).

    If you would like to continue using the EAP and set departments in the interim you can achieve this using the following:

    <script>

    window.zESettings = {

     webWidget: {

       chat: {

         visitor: {

           departments: {

             department: 'Sales'

           }

         }

       }

     }

    };

    </script>

    Please note that this is subject to change, although we'll warn you when it does. 

    1
  • Russell Ransom

    Thank you, Daniel! The script works. Very helpful to have some options at our disposal!

    I had incorrectly assumed these functions didn't work along with the API: https://developer.zendesk.com/embeddables/docs/widget/zesettings

    The webpage above doesn't mention setting department, is this documented anywhere else? 

    0
  • Daniel Aron

    Not yet, we're working on supporting a wide range of Chat APIs in the Web Widget and will publish official documentation at the time of release.

    0
  • Tobias Hermanns

    Hi Daniel,

     

    we can´t get set Department up and running, anything changed?

    window.zESettings = {webWidget:  {chat: {visitor: {departments: {department: 'Deutscher Support'}}}}};

     

    All other settings like moving the widget still work.

     

    Can we also have tags set can you share the script?

    Thanks!

    1
  • Tobias Hermanns

    HI Daniel,

     

    any news here?

    0
  • Ramin Shokrizadeh

    Hi Tobias,

    The team are still working on completing the Javascript APIs for the new experience, you should hear some good news near the end of the month.

    -Ramin

     

    0
  • Tomasz Eitner

    HI Daniel, 

     

    Unfortunately this tip does not work with our account, I've checked it with few departments, our widget have already some  windows settings - I've tied both ways, just your code, and to add it to existing code, failed in both cases.

     

    This:

     

    <script type="text/javascript">
    window.zESettings = {
      webWidget: {


        launcher: {
          label: {
            'en-US': 'Need help?',
             'fr': 'Besoin d\'aide?'
          }
        },

        contactOptions: {
          enabled: true,
          chatLabelOnline: { '*': 'Chat with one of our experts' },
          contactFormLabel: { '*': 'Send us a message' }
        },
        contactForm: {
          enabled: true,
          ticketForms: [ { id: XXXXXXXXXX } ]
        },
        chat: {
          visitor: {
            departments: {
              department: 'test'
            }
          }
        }
      }
    };

    </script>

    Works on everything except of chat,  your code alone - also does not work at all

     

     

    0
  • Tobias Hermanns

    Any news here?

    0
  • Ramin Shokrizadeh

    @Tobias should hear some good news by next week, team is spending more time on testing to ensure everything is working correctly. 

    0
  • Daniel Aron

    @Tobias, Chat APIs are now released. Developer docs are here.  

    0

Please sign in to leave a comment.

Powered by Zendesk