This is one of the reasons why we created a chat widget package that includes this functionality. Amongst others like: easily embed on any website (compatible with Google Tag Manager, Opening/Closing Hours, customized waiting in queue messages and a fully customizable widget all through configuration.
In essence, you would need to create some custom logic through the API if you just want to add this.
------------------------------
At 3Fiftynine impossible is just a challenge
We provide kick-ass products on top of Genesys platforms
------------------------------