How to enable virtual agent support for particular catalog item

manish64
Giga Guru

Hi I need to enable virtual agent for particular item so that it ask question for particular form .If you see below workflow screenshot for order item conversation there is decision whether  there is va support or not??.

 

find_real_file.png

 

find_real_file.png

 

(function execute() {
var results = JSON.parse(vaVars.results);
var index = 0;
if (parseInt(vaVars.count) > 1)
index = parseInt(vaInputs.catalog_item);

vaVars.selected_link = vaVars.portalName +
'?id=sc_cat_item&sys_id=' + results[index].sys_id;
var itemJSON = new sn_sc.CatItem(results[index].sys_id).getItemForVA();
vaVars.itemJSON = JSON.stringify(itemJSON);
vaVars.itemName = itemJSON.name;
})()

how they are making decision that  we need to ask question or just give link of catalog form 

 

6 REPLIES 6

Steve Kelly
Mega Sage

Hi manish,

Did you ever figure this out? Looking into the same thing.

Thanks,

Steve

shashanktonpeka
ServiceNow Employee
ServiceNow Employee

Currently the system will support the following variables as part of catalog item submission on Virtual Agent

- Single Line Text

- Wide Line Text

- Yes/No and

- Reference

 

 If your catalog item has any other variable type apart from the 4 supported then it will return false as part of va_support flag. 

Hope this helps.

Awesome thanks. Hopefully this will be improved in Orlando!

Hi @shashanktonpekar ,

 

Any new rules or conditions in orlando version for this VA support in ordering a catalog?

Or the above 4 fields only in orlando as well?

 

Thanks

Rafi