logo

NJP

Enabling end conversation button in VA, if disabled

Import · Aug 17, 2020 · article

I encountered a challenge where I needed to redirect users to a specific topic, even when they didn't select it themselves.

There are several methods to achieve this, some with their potential drawbacks.

vaSystem.topicDiscovery( , true/false)

  • This performs a search on the name/keyword and returns the most appropriate topic.

vaSystem.switchTopicById( )

  • Well documented and the sysid should be passed from - sys_cs_topic table

vaSystem.switchTopicByName( )

  • Just works as above and pass in the name of the topic instead of sysid

vaSystem.switchTopic( )

  • un-documented version but it works. The end conversation button used to be disabled but seems not happening anymore. Better to avoid it as we have better options

Using the direct link to the topic disables the 'end conversation' button. This issue seems to occur because the class of the div element includes '', which is likely causing the disablement. But there is an alternative

Using this URL will display a disabled end conversation button

https://instace.service-now.com/$sn-va-web-client-app.do?sysparm%5Ftopic=

Insert a different parm to the URL to enable the button - sysparm_default_topic

https://instace.service-now.com/$sn-va-web-client-app.do?sysparm%5Fdefault%5Ftopic=

This should do the trick.

Thanks,

Murali

View original source

https://www.servicenow.com/community/virtual-agent-nlu-articles/enabling-end-conversation-button-in-va-if-disabled/ta-p/2307648