function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
David KuskeDavid Kuske 

Save chat on a post chat page

Hi All,

Is it possible to bring in a save chat button to a post chat page? We was looking for the following outcome once a customer finished a post chat survey:

User-added image

your feedback will be well appreciated.
pconpcon
What you can do is on the post chat page create a link that does not actually link to a resource but is instead an encoded version of the chat transcript [1].  You would have your post chat page be a Visualforce page and you would query the LiveChatTranscript object.  Then using the EncodingUtils, encode the chat transcript to Base64 and return that as a string.  Then you would do the following for your transcript button.
 
<a href="data:text/plain;charset=utf-8;base64,{!base64EncodedChat}">...</a>

This would allow the customer to download a plain text version of their chat transcript
kavitha rama 4kavitha rama 4
I have similar requirement to add save chat button on Post chat page. Could you provide more details on it on how can I query LiveChatTranscript object and Then using the EncodingUtils, encode the chat transcript to Base64 and return that as a string.

Code sample would be great. Thanks.