https://discord.gg/botpress logo
Email Transcript from website
# 🤝help
b
Hi, I have a bot deployed for customer support on a company website, is there a way I can let a customer download their conversation transcript or email it to themselves?
l
you can enable Summary Agent and use conversation.SummaryAgent.transcript to be send to customer via email using an email integration
b
Thanks @limited-pencil-78283 , but how can I present a button in webchat so a user can do that without having to specifically ask the chatbot
l
you can give a single choice for the customer to get an email transcript and write the logic on button click
b
Hey @limited-pencil-78283 thanks are you able to explain how to do this?
Hey @limited-pencil-78283 just following up on this, Im still trying to figure out how to do what you described
l
> `const transcript = conversation.SummaryAgent.transcript > > const lines = transcript.split('\n') > let markdownTranscript = '# Conversation Transcript\n\n' > lines.forEach((line, index) => { > markdownTranscript +=
**Line ${index + 1}:** ${line.trim()}\n
> }) > > console.log(markdownTranscript) > user.summaryReport = markdownTranscript` https://cdn.discordapp.com/attachments/1409765060540239913/1411984039140790292/image.png?ex=68b6a41c&is=68b5529c&hm=1d2a74f81ec10e48b23620d4ddce33a958388cef579d8032be80cbb91d30d155&
l
can you share your bot - i will check
wait here you go
but that is for the whole chatbot
l
what i meant is that, for me the workflow did not reach the node where it has to show the download option
3 Views