Virtual Agent pop-up form submission awareness
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday - last edited 6 hours ago
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:
However, in my custom topic the chat is not aware of catalog item submission.
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.
