Display message "Agent is not available after scheduled time" after chat queue is closed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi Experts,
I have a question regarding Agent Chat.
Is there an out-of-the-box way to display a message such as "All agents are currently offline" when the chat queue is outside its configured working hours?
If this isn't supported out of the box, what is the recommended approach to determine agent availability and display a custom offline message in the chat?
Has anyone implemented a similar solution? Any guidance, best practices, or examples would be greatly appreciated.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @nmenon5,
There's no hidden "queue is closed" flag to flip. Out of the box, a schedule-closed queue and a queue with zero available agents both fall through to the same generic no-agents message, so if you want distinct wording for off-hours you have to branch for it yourself before the chat ever hits Advanced Work Assignment.
- Confirm the Schedule field on the awa_queue record, an empty schedule means the queue is treated as 24x7
- Check the queue's Max wait time and its timeout message, that's the text end users actually see today
- Add a step in your Virtual Agent topic or Flow that calls GlideSchedule.isInSchedule() against that same schedule before handing off to Live Agent, and route to a custom "all agents offline" response when it comes back false
Doing the schedule check server-side ahead of the handoff is the cleanest way to get your own copy instead of the default fallback text.
References
- With agent chat, how can I inform the end user when all agents are offline
- Show message when no agents are available during scheduled queue time in Virtual Agent
- Custom Message for Off-Hours in Live Chat
- GlideSchedule isInSchedule not working
Thank you,
Vikram Karety
Octigo Solutions INC