How to initiate Live chat on clicking on button

Neeta1
Tera Contributor

Hi Experts,

Is there any way to initiate the Live chat on button clicking  ?

Already Virtual agent has been configured on portal and now the requirement is on particular form button in portal Live agent chat should start.

Can someone please suggest how to implement this requirement ?

Thanks in advance.

11 REPLIES 11

Hi Murali,

Thanks for your response. 

We are using agent chat and URL is not working as expected. 

There is a function "vaSystem.connectToAgent()" which initiates Live chat , however I am not sure how can I pass this function in Virtual agent flow.

Any suggestion here please? 

Thank you.

 

Hi Neeta,

Try this method, 

Go to sys_cs_topic.list, check for a topic called - Live agent.

find_real_file.png 

Then substitute the sys id from either in the url after sysparm_topic= 

https://instace.service-now.com/$sn-va-web-client-app.do?sysparm_topic=ce2ee85053130010cf8cddeeff7b12bf

 

in my case it is 9d384761b3633300dbbf6030c6a8dcaa or ce2ee85053130010cf8cddeeff7b12bf

 

Make sure there is no active conversation when testing. When I hit this url then it will route you to live agent based on your Advance work assignment setup, I dont have agent online so below info msg.  

find_real_file.png

 

Hi Murali ,

 

Thanks for your response. 

I have tried with this URL, this view is totally different don't want it in this view.

Also when agents are available then also getting response "There is no agents available error".

 

I got it, but I dont think there is any option to do that easily. 

Hi Murali,

I have enabled NLU and by passing the keyword Live agent flow is initiating.

Could you please suggest if I can pass the keyword from the button to start the Live agent flow , currently passing the URL https://<> /$sn-va-web-client-app.do.

Is there any way to also pass the keyword e.g. "Live" ?

Thank you.