This might be more of a WordPress programming question, but I give it a shot.

At https://telescopicmast.com we have a (commercial) human chat service. On mon – fri 8 am – 10 pm (GMT +1) and in weekends sat – sun 9 am – 5 pm (GMT +1)

This service works with a code in our WordPress website, PD Chatbot works with a plugin.

My question is, how can I automatically make Chatbot active when the human chatter is off duty? Anyone has experience with setting this up?