Hi,
Create a session node where you will capture all information that you need like:
- chat triggered at
- channel:
Make all of those variables as Scope: User.
Create a table to capture transcripts (screenshot).
Record when the chat was triggered and if you have some way to identify user, put that information into table as well.
In the end workflow save the transcript but make sure it's not longer than 4kb, for example, inside the Execude Code Card:
workflow.transcriptLimited = conversation.SummaryAgent.transcript;
if(workflow.transcriptLimited.length > 3000) {
//var transcript = conversation.SummaryAgent.transcript;
workflow.transcriptLimited = workflow.transcriptLimited.substring(Math.max(0, workflow.transcriptLimited.length - 3000));
}
https://cdn.discordapp.com/attachments/1230986160902373448/1231037863047729233/image.png?ex=6635805a&is=66230b5a&hm=3392d51583352bd43417397e8ebd4860429e662c1923e1e844d28d075190d666&