geneysis widgets webchat office hours

Hi guys

I wonder if there’s ny example to do the following:

  • webchat button to be visible only during the times agents connected to the system.

Is there settings for that? API calls available to check if chat service is available? I could not find anything on https://docs.genesys.com/Documentation/GWC/8.5/WidgetsAPI/WebChatService available

Thanks for any help.

no…maybe in the jscript that loads the widget itself, just a function to control the hours at load event

In case you are using GMS, you can call GMS API for Working Hours (Calendar API) and show the button based on that condition

yeah can do that, but we operate in different time zones over few countries and that solution was not perfect in the past.

Thanks, I asked admins to check if we are working with GMS and if working hours are set-up.

We have a server running in between of the website and Genesys, that is grabbing the ParameterGroup data from GAX/SQL to check what the openinghours are. Based on this, the widget button is shown on the website or not.