Virtual Agent scripts issues

Junyu
Tera Contributor

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.

find_real_file.png

find_real_file.png

find_real_file.png

Then I tried to assign res value to Script Variables:

find_real_file.png

Then use this script variable for the next query, it failed:

find_real_file.png

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.

 

0 REPLIES 0