Get last utterance from user with vaSystem.getSearchText()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2024 01:30 PM
I know that the user's last VA utterance is stored in vaSystem.getSearchText()
I am using this script within a Topic, so I can access that string, and I created the associated script variable. But the variable "desc" is returning "null". This seems straightfoward - what am I doing wrong?
Script:
(function execute() {
var desc = vaSystem.getSearchText();
return desc;
})()
Script Variable
desc
For example, within the topic, I want to save the string "I need admin rights" (typed after the greeting) as a variable:
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 06:38 PM
@madhumithap2209 I don't see a screenshot of your added user_typed script variable. See my other response for screenshots of that!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 04:55 AM
Hi @MB Richards
I am exactly facing the same issue. I am doing some customization in anything else topic. I tried the same way you have given above, but, still I am not getting anything from getSearchText(). Attached all the screenshots for your reference.
Your help would be appreciated.