Virtual Agent scripts issues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 12:19 AM
Dear all,
I found some issues related to Virtual Agent scripts:
I used Script for Choice Value Expression in Reference Choice:
Here, I just return the res for the next query, it works.
Then I tried to assign res value to Script Variables:
Then use this script variable for the next query, it failed:
This is the point that puzzles me:
Actually, they should be the same value (Both from res), the only difference is that they are Input and Script variables respectively. But why did one succeed and the other fail? Can you help me out with this problem?
Also, I would like to clarify why I need Script variables:
As shown in the image above, when there is only one record, it will definitely trigger the Confirmation Message. We want to skip this prompt, so choose to Skip the Node when there is only one record. But at this point, the corresponding Input Variable will be empty, and we need to save the record. If you have a way, please let me know, thanks a lot.
- Labels:
-
Virtual Agent