This Tiledesk example will hide the widget if no agent is available
Agents available:
loading availability...
Discussed on the Tiledesk community forum:
Disable widget when no agent is available