How to hide/remove the "Live agent Support" option in Virtual Agent when there is no agents available or during a weekend to take chats?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-02-2022 06:14 AM
1) Even when there are no live agents available to take live chat, we have "Live agent Support." option available/ clickable as shown:
2) We also need to remove this option on weekends.
Is there any way we can disable this when there are no live agents available to take chats?
Thanks,
Rajat
- Labels:
-
Agent Chat
-
Virtual Agent

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-02-2022 07:29 AM
HI,
It is possible, you can toss in your custom script in the script section of the topic properties.
This script is for Schedule and weekend.
(function execute() {
var now = new GlideDateTime();
if(now.getDayOfWeekLocalTime()<6){
return true;
}
var sched = new GlideSchedule("08fcd0830a0a0b2600079f56b1adb9ae"); //sysid of the schedule
sched.setTimeZone('Europe/London'); //timezome
if (sched.isInSchedule(now)) {
return true;
}
return false;
})()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-10-2023 05:01 AM - edited ā04-10-2023 05:02 AM
Hi,
The way you hide it from the list is by going to Virtual Agent Designer > Click on the "Live Agent Support" (read only) topic > Click on Active (top right) > Uncheck the "Included in list of topics".
Cheers,
Dorian
Unfortunately, SN doesn't provide an example of how to hide it from the list dynamically based on agent availability OOTB. Someone also answered on how you can clone + modify (then disable the original one) in order to hide it based on a schedule or script.