Workaround for transcript max Lines.
# 📖tutorials
f
Hi there👋 This is a workaround for the maximum amount of transcript lines. What you want to do is create a string variable called newTranscript. Create a number variable called lastIndexProcessed and make sure that the default value is 0. Go into hooks Create a new After Incoming Message hook Paste in this code: iif (conversation.SummaryAgent.transcript != null && workflow.newTranscript.length < 100) { let newContent = conversation.SummaryAgent.transcript.substring(workflow.lastIndexProcessed) workflow.newTranscript += newContent workflow.lastIndexProcessed = conversation.SummaryAgent.transcript.length console.log('newTranscript: ' + workflow.newTranscript) console.log('Transcript: ' + conversation.SummaryAgent.transcript) console.log('newTranscript length: ' + workflow.newTranscript.length) console.log('Transcript length: ' + conversation.SummaryAgent.transcript.length) } else if (conversation.SummaryAgent.transcript != null) { console.log('New code') let searchString = workflow.newTranscript.slice(-100) let lastIndex = conversation.SummaryAgent.transcript.lastIndexOf(searchString) + 100 if (lastIndex !== -1) { workflow.newTranscript += conversation.SummaryAgent.transcript.substring(lastIndex) console.log('newTranscript: ' + workflow.newTranscript) console.log('Transcript: ' + conversation.SummaryAgent.transcript) console.log('newTranscript length: ' + workflow.newTranscript.length) console.log('Transcript length: ' + conversation.SummaryAgent.transcript.length) } else { console.log('The text wasnt found') } } Test it out in the emulator. If you prefer a video walkthrough here you go:

https://youtu.be/GrumKXQfhq8

c
New YT channel !!! I love it 😉 congrats
b
You just got a new subscriber
f
Eyy, thanks a lot
j
Same
I also subbed
w
Amazing @fresh-fireman-491 , I will be opening one as well soon! But for beginners mostly, not as good as you😅 😂
q
Liked, subscribed, shared & commented ⚡
f
I have been hearing some stuff about yours. Can't wait to see it🙈
Best Community
This new version works. Sry about that The YouTube video and the code has been updated. Here is the updated file.
I am sorry @better-honey-40119 but the version from yesterday doesn't work. I have now updated it
q
What was the issue, or do you explain it in the YouTube video?
f
I don't think that I fully explain it in the video. The issue was that with the code from yesterday it didn't get all of the bots messages because the way I had set it up. When I tested it it looked like it was fine but after going thru the code today I just couldn't understand how it worked so I tested it again and I was right, it didn't work.
This new version makes the transcript in a new way
q
🔥 🔥 🔥
b
i'm going to implement it right now🙏 thank you for the update!
t
hi everyone what is the principle of max transcript lines I'm not sure I understood
f
Hi there The principle of the max transcript lines is that its mainly being used in a context setting where you wouldn't need more than 100 lines.
4 Views