How to allow the user to download the Virtual Agent Transcript?

oelrafik
Mega Guru

Hello! 

We are currently working on customizing some aspects of the Virtual Agent. One of those aspects is to allow the user to download a transcript of the virtual agent conversation prior to ending the conversation. 

I am aware that the user can choose to download the transcript of a Live Agent Conversation, is there something similar just for the Virtual Agent conversation? I am aware of vaSystem.getTranscript, but i don't know how to use it in the context that I am specifying. 

Any advice would be greatly appreciated! 

-------------------------------------

The solution provided by Tim worked perfectly. Thank you very much for the effort and guidance. For future reference and additional things that need to be created prior to running the topic in VAgent can be found in the reply to Tim's post. 

1 ACCEPTED SOLUTION

Tim Deniston
Mega Sage
Mega Sage

You could easily build out the Closing Topic to include an option to have the transcript emailed to the user. In addition to the VA topic, you would need to register an event and create an email notification.

find_real_file.png

 

Static Choice User Input:

find_real_file.png

 

Email Transcript Script Action:

find_real_file.png

The transcript is passed in the event (as is the user) and then the event would be processed by an email notification.

View solution in original post

6 REPLIES 6

Thanks so much for your response, it's exactly what I needed. By changing the notification to use the sys_user table it allowed me to pull the first name by using ${first_name} meaning I can now use Parm2 to store the user's e-mail address instead of first name! 🙂 

In case anyone needs it in conjunction with the above post, here is my updated script for the VA topic that passes through the user to Parm2 (it is the addition of "vaInputs.user" in line 6 that is passed through to Parm2).

 

(function execute() {
var user = new GlideRecord('sys_user');
user.get(vaInputs.user);

if (user) {
    gs.eventQueue('sn_hr_va.va.email_transcript', user, vaSystem.getTranscript(),vaInputs.user);
}
})()

Hi both,

 

Thanks for such a thorough guide

I have followed the same path and its working fine but is there any way we can send the transcript as an attachment. Currently its in HTML format.

 

Is it possible to send transcript via attachment ?