Agent chat message based on Schedule hours

Kri
Tera Guru

I want to show a no agent available message based on the Schedule time

if it is falling during the Schedule time then the message should display 'No agents available to take the chat, all are busy in other chat'

if it is falling outside the Schedule time then the message should display 'All agents are offline now, please contact during the working hours 8AM-5PM Mon-Fri'

@Mark Roethof 

1 ACCEPTED SOLUTION

Remove lines 2,9 and 10. Sorry about that as I should have noticed that when you added that directly in the workflow.

View solution in original post

35 REPLIES 35

Yeah and where are you using that Live Agent? Through Virtual Agent web client? Teams? Something else?

 

Based on your previous questions, I would think Virtual Agent web client.

 

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

its through Virtual Agent web client

Krishna124_0-1686854296328.png

 

Yeah indeed, that was what I was mentioned already.

 

So you have to create to logic in a Topic. Several ways you could do so, here just an example to start with:

 

live agent.png

 

On the decision transitions I just applied what I mentioned earlier about vaSystem.isLiveAgentAvailable(). On the Script Action I just applied what I mentioned earlier about vaSystem.connectToAgent().

 

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

I duplicated Live Agent support and I created a custom Virtual Designer as per you design but when I click on Test I'm not getting the output it says  error message 'Your test phrase triggered a different topic. Go back to the NLU Settings tab and make sure this phrase is tied to the correct intent.' 

Krishna124_0-1686860162963.png

 

Krishna124_1-1686860181130.png

 

Krishna124_2-1686860252826.png

 

Krishna124_3-1686860293494.png

 

 

Uncheck Use Topic Discovery

 

johndoh_0-1687108871519.png