- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2022 06:56 AM
Hi Guys,
I have a requirement to add a Back button at the end of the topic list. So when a user reaches the end of the topic list, there is an option to click back:
I created a small topic:
For some reason when I use the Back option and then ask questions, the NLU doesn't work. I get the "Is there anything else I can assist you with?" right away instead of looking for a topic or a KB article.
Thanks in advance.
Solved! Go to Solution.
- Labels:
-
Virtual Agent

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2022 09:08 AM
Hi JLeong,
The first thing I would recommend is to use the out of the box back button available in the Virtual Agent window. This way you avoid unexpected behaviour when developing a back button option yourself.
If this is not a valid solution, you could try adding the following to your Topic:
Before your "Back to Discovery" script action, add a "reset topic script" with the following code:
(function execute() {
vaVars._topic_current = null;
})()
This should reset the conversation and stop the flow from continuing to the "anything else topic".
Let me know if it helps,
Kind regards,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2022 09:08 AM
Hi JLeong,
The first thing I would recommend is to use the out of the box back button available in the Virtual Agent window. This way you avoid unexpected behaviour when developing a back button option yourself.
If this is not a valid solution, you could try adding the following to your Topic:
Before your "Back to Discovery" script action, add a "reset topic script" with the following code:
(function execute() {
vaVars._topic_current = null;
})()
This should reset the conversation and stop the flow from continuing to the "anything else topic".
Let me know if it helps,
Kind regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2022 01:59 AM
I agree with IC. You need to set the current topic to Null. I would also recommend using switchtopic instead of sendtopicpickercontrol I have multiple back buttons which work really well with this .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2022 04:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2022 04:28 AM
Thanks, Andy! I will try this solution.
For the arrow back, I used the ASCII character - alt 27, try that (←)