Virtual Agent Card Response Properties

Michael Lee1
Tera Expert

The Card response has a hyperlink in the title of the card that links to the default service portal "/sp"

We do not use the default value however, so I need to change that. However, I can't find where the link is generated in order to change the property that it grabs. Anyone have any idea where I can find it?

Thanks!   

find_real_file.png

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Small update:

Which portal you want the record to opened in is controlled by "sn_itsm_va.com.snc.itsm.virtualagent.portal_url" property.
Unfortunately, this is not dynamic as the VA is not able to get users session information.

Steps to resolve the issue are as follows:

  1. Go to sys_properties.list
  2. Find "sn_itsm_va.com.snc.itsm.virtualagent.portal_url" property
  3. Change the portal as per your business requirements. Now the bot cards will open in that portal.

I just checked this for Incidents. Haven't checked the behavior yet for other cards generated.
Also, if you would have the Virtual Agent on multiple portals, this does affect the Virtual Agent on all of those portals.

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

View solution in original post

24 REPLIES 24

Ahhh interesting.
In London what I described does work for the 'Create IT Ticket' topic, In Madrid... no go!

Difference is, in London, the Bot Response Card is scripted in this topic. In Madrid it's no code. Obviously still you can code it in Madrid.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

Ok part of this makes sense then, because I'm running Madrid in both my PDI and my Dev instance and neither are working. I had a chance to test your solution in my PDI just now and no dice. See below.  The only thing I question is scripting it, because I attempted to script it and it still didn't work. There's also a chance that my script had an error so I'll check it again.

 

find_real_file.png

find_real_file.png

Maybe this helps, the London script on Incident Card:

(function execute() {
      var incident = new GlideRecordSecure('incident');
      incident.get(vaInputs.create_incident);

      var title = {
            url: gs.getProperty('glide.servlet.uri') + '/' +
                  gs.getProperty('sn_itsm_va.com.snc.itsm.virtualagent.portal_url') + 
                  '?sys_id=' + incident.sys_id + '&id=ticket&table=incident',
            label: incident.number
      };

      var fieldList = ['category', 'assignment_group', 'short_description', 'state'];
      var cardRenderer = new global.VaRecordCardRenderer(true);
      var fields = cardRenderer.createFields(fieldList, incident);
      var html = cardRenderer.renderCard(title, fields);
      return html;
})();

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

Thanks as always for this - reworked it to support RITM submissions for the ESC in a similar way. I'm betting I need to work backward and just rework the Req Item topic block to respect the sys property instead, but this got me by in the meantime.

Your posts are awesome and you're hugely appreciated!

I also received input from Hi:

"I have created an enhancement request on your behalf with our development team regarding the bot response card to have an option to allow redirection to another portal. The enhancement request number is as follows: FTASK42971. I have also added the Enhancement request number to this incident for your future reference ".

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn