1. In the Chat Deployment, enable “Allow Visitors to Save Transcripts”.

2. Visitors can use Save Chat Transcript to save the Chat Transcript.

Vote for this idea – https://trailblazer.salesforce.com/ideaView?id=0874V000000Lz9MQAS, if you would like to configure the Post-Chat Transcript Download Message.