Pre chat survey and routing to a queue possible bug?

RodGallegos
Tera Guru

I am setting up a pre chat survey that will help to route my users to a queue. After watching the "Virtual Agent Academy: Complement your agent chat experience with a pre-chat survey" from Oct 2021, I followed all of these steps to a "T" but not getting the same experience as shown in the video. Right now, the pre chat survey kicks off when a user opens a new chat, but after their selection, instead of being routed to a chat queue as I would expect, they are shown the Topic Picker in the "Greetings." VA topic; which is a poor end user experience. So what has changed since Oct 2021? My instance is on build glide-sandiego-12-22-2021__patch4-05-25-2022. My Configuration is as follows:

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

 

I should mention that when the user chooses IT, they should get the Topic picker. So that experience is fine. At this point, it seems like I will have to customize a VA topic that routes my end user to a live agent when they choose HR from the pre chat survey, and displays the Topics if they select IT. Really hoping to avoid this. Has anyone found a no code way of achieving what I am looking to do?

1 ACCEPTED SOLUTION

RodGallegos
Tera Guru

I found my solution in customizing the OOTB "Greetings." VA topic and in the Pre-chat executed decision branch, I added another decision that splits off into either one of two directions, HR or IT. I added a Script variable LiveAgent_ec_pre_chat which is the exact same name I gave my context when setting up my Pre Chat survey question. Next, in the Script condition of my HR decision branch I added:

var applies = vaVars.LiveAgent_ec_pre_chat == 'HR' ? true : false
 
return applies;
 
and for the IT decision branch:
 
var applies = vaVars.LiveAgent_ec_pre_chat == 'IT' || 'Skip' ? true : false
 
return applies;
 
Lastly, I configured a new Chat experience record (Custom greeting & settings) which calls my new greeting VA Topic. The end result is, the end user is first prompted with the Pre Chat survey where they select HR, IT, or Skip. When the user chooses HR, they are routed to a live agent. If they choose IT or Skip, they are shown the Topic picker (Show me everything + Promoted topics). 

View solution in original post

2 REPLIES 2

RodGallegos
Tera Guru

I found my solution in customizing the OOTB "Greetings." VA topic and in the Pre-chat executed decision branch, I added another decision that splits off into either one of two directions, HR or IT. I added a Script variable LiveAgent_ec_pre_chat which is the exact same name I gave my context when setting up my Pre Chat survey question. Next, in the Script condition of my HR decision branch I added:

var applies = vaVars.LiveAgent_ec_pre_chat == 'HR' ? true : false
 
return applies;
 
and for the IT decision branch:
 
var applies = vaVars.LiveAgent_ec_pre_chat == 'IT' || 'Skip' ? true : false
 
return applies;
 
Lastly, I configured a new Chat experience record (Custom greeting & settings) which calls my new greeting VA Topic. The end result is, the end user is first prompted with the Pre Chat survey where they select HR, IT, or Skip. When the user chooses HR, they are routed to a live agent. If they choose IT or Skip, they are shown the Topic picker (Show me everything + Promoted topics). 

I have configured this and working as expected but for other languages this is not working for example finnish language