Just upgraded to Vancouver and Virtual Agent Flow not working as it is in Tokyo

clyon
Tera Guru

Just upgraded to Vancouver and the 'Get Greeting'  in my VA Flow is not working the same.

Web client url  http://....../sn_va_web_client_app_embed.do?sysparm_branding_key=enact&sysparm_skip_load_history=true&sysparm_email=&sysparm_url=.......

If the user is not logged in, the user should be asked for their name and email. That is not happening. Flow always assumes it has the email data (displays 'undefined' for email) and goes down the 'Logged in User' path. (which is incorrect).

Why is the decision code below behaving differently now?

 

clyon_0-1693521137289.png

If user is logged in the code is:

(function execute() {
/* Return true or false to indicate the branch condition's applicability.
For example:
var applies = vaInputs.first_name == 'Bill' ? true : false;
return applies;
*/
var applies = vaContext.email != '' ? true : false;
return applies;
})()
 
If Anonymous user code is:
(function execute() {
/* Return true or false to indicate the branch condition's applicability.
For example:
var applies = vaInputs.first_name == 'Bill' ? true : false;
return applies;
*/
var applies = vaContext.email == '' ? true : false;
return applies;
})()
 
 
3 REPLIES 3

Hemant Goldar
Mega Sage
Mega Sage

Hi @clyon ,

Could you check if the email context variable is available in the conversation interface>Setting> General> context variables?

Thanks,

Hemant

 

clyon
Tera Guru

Yes, There is a context variable there.

clyon
Tera Guru

Any other thoughts on this. We have since upgraded to CSM Pro and this is still not working.