Virtual Agent pop-up form submission awareness

patrickwu
Tera Contributor

I am customizing the Form Content Topic Block to display a catalog item, which I accomplished by modifying the URL in the script to: 

var uibLink = gs.getProperty("glide.servlet.uri")+ "now/virtual-agent/content/catalog/"+ vaInputs.sysid+ "/"+gs.getUserID() + "/"+ vaSystem.getConversationId()+"/"+vaSystem.getConversationTaskId()+"/"+ vaSystem.getSessionIdOnConversation() + "/synthesized_result/params/value/0/?referrer=popup&engagement_channel=va";

For context, this is the OOTB code.

var uibLink = gs.getProperty("glide.servlet.uri")+ "now/virtual-agent/content/forms/"+ vaInputs.sysid + "/" + vaInputs.table + "/"+ vaSystem.getConversationId()+"/"+vaSystem.getConversationTaskId()+"/"+ vaSystem.getSessionIdOnConversation() + "/form_choice_list";

 In the OOTB topic, the chat displays the record once the form is submitted. Here is how it appears in the OOTB topic: patrickwu_0-1767890748577.png

 

However, in my custom topic the chat is not aware of catalog item submission. 

 patrickwu_1-1767891030076.png

In UI builder, experience "Virtual Agent Popup Content", page "catalog_default" contains client script to "resume conversation" that runs when the catalog item is submitted. I believe configuring this script will solve the issue but not sure how, as g_form, alert(), and console.log/browser dev tools are not debugging options available for me.

 

0 REPLIES 0