[Virtual Agent] - Is there a way to automatically open virtual agent topics?

jacque3
Kilo Guru

Hello everyone,

I'm currently implementing virtual agent in our service portal and I would like to load a topic once I clicked a button.I know that we can use this URL  https://instance.service-now.com/$sn-va-web-client-app.do to load the virtual agent frame but I want to know if it's possible to add something like a parameter there that will load the topic

btw: I don't want to manually select the  topic in the menu 🙂 

 

Thank you

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

You can open a topic directly thru adding to your URL:
sysparm_topic=<sys_id>

Example:
/$sn-va-web-client-app.do?sysparm_nostack=true&sysparm_stack=no&sysparm_topic=2a10809ddb593f40ceed9ce8db9619f4&sysparm_skip_load_history=true'

An example of this is in one of my Virtual Agent articles:
https://community.servicenow.com/community?id=community_article&sys_id=8fba850ddb6d3f84a39a0b55ca961...

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

View solution in original post

9 REPLIES 9

Thanks I'll post something there and also try to get something sent directly to our ServiceNow reps for some more explanation.

I was planning to use sysparm_topic to auto-start a conversation after searching for it in the normal portal search (i.e. new search source on the sys_cs_topic table), but New York will effectively neuter the Virtual Agent if I do this. I can't direct users to a one-trick Virtual Agent - it defeats the purpose of VA and would utterly confuse users.

To be honest, I'm not sure what the "context menu" is that it's referring to (because the top-right corner menu still works), but if you just open up any conversation via the direct URL (https://abc.service-now.com/$sn-va-web-client-app.do?sysparm_topic=xyz), you'll see that the End Conversation button is disabled and then when the conversation ends, "Click here to start a new conversation" is still visible and clickable but does nothing. It'd make for a awful user experience if actually utilized.

find_real_file.png

Wow that last one concerning the "Click here to start a new conversation" is nasty! Just reproduced this on my PDI, really bad.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

Community Alums
Not applicable

Hi Mark, 

I have a same requirement to open VA with a default topic. I followed the steps suggested by you but for some reason it is not working for me. Please have a look at the screenshot given below. 

Steps I followed

1. Created a module where type is "URL from Arguments" and value that I put in under arguments is "/$sn-va-web-client-app.do?sysparm_nostack=true&sysparm_stack=no&sysparm_topic=6f449f192f7f1110f165c886f699b698&sysparm_skip_load_history=true"

2. Upon clicking on module it opens up the VA window but always with dotted line and shows nothing else. Same can be seen in the attached screenshot. 

 

Not sure what I am missing but I'll be highly obliged for this timely help. 

Kim Sullivan
Tera Guru

Anyone know a way to load a specific branding with $sn-va-web-client-app?  Or is there a list of all the sys_parm options available?

The parameter is "sysparm_branding_key=<brandingkeyvalue>"

 

🙂 Hope that helps!