Capture user input from Static Choice and redirect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2024 06:05 AM
I am currently working on a Virtual Agent topic in ServiceNow, and I need some help with capturing user input from a "Static Choice" node by enabling the "Conversation Switching" option and then redirecting the user based on their input.
Here is what I am trying to achieve:
- I present the user with a Static Choice node with options like "IT", "Doubts", "Open Calls".
- I have enabled the "Conversation Switching" option to allow users to enter free text.
- I want to capture this free text input and store it in a variable.
- Based on the user’s input, I want to redirect the conversation to different topics using a Decision node.
My question is: Is there a way to capture the user input directly from a Static Choice node by enabling "Conversation Switching" and redirect to another topic based on this input without having to prompt the user again? Any examples or guidance would be greatly appreciated.
Thank you for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2024 06:12 AM
Hi @AleOliveira,
We are also stuck with same requirement. Can you please let us know If you have any solution it would be better to solve the issue.
Regards,
Praveen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2025 05:41 AM
"vaVars.global_search_text = vaInputs.user_input;
And worked perfectly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi @AnaBeatrizA
I too am straggling with this but HOW did you get it to work? Did you set the Decision Branch to "Always" and then pasted your code above into the function?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
"always" on decision branch is going to depend on your conditions. this video has an example: https://www.youtube.com/watch?v=2--Z_2hKA_c&t=160s
