Virtual agent not allowing new conversation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 05:45 AM - edited 06-16-2023 06:03 AM
I created custom LIVE AGENT and configured the Chat window connecting End Customer directly to the Live Agent while opening from the below community but I face the issue when End Customer requesting Live Agent where they are OFFLINE status then it is giving 'no agents available' message but it is not allowing to open New conversation instead the End Customer needs to refresh the whole page for that
https://www.servicenow.com.mcas.ms/community/virtual-agent-nlu-forum/how-do-i-bypass-disable-virtual...
@Community Alums
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 06:23 AM
Hi @Kri ,
Before transferring to the Agent, use the following piece of code to check, if the live agents are available or not. Then, use decision utility to transfer the chat to live chat if the agents are available.
(function execute() {
var flag = 0;
if (vaSystem.isLiveAgentAvailable()) {
flag =1;
} else {
flag =0;
}
})()
Please mark this comment as Correct/Helpful if it helped you.
Cheers,
Hardit Singh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 06:29 AM
I tried the same but it still greyed out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 06:53 AM
Can you share the screeshot of the chat when it ends this topic?
Also share screenshot of this workflow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 07:09 AM
Please find the screenshot. I have a query do I need to publish the Workflow everytime I do the change?