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
crooked-van-25152
01/04/2024, 8:47 PM
New YT channel !!! I love it 😉 congrats
b
better-honey-40119
01/04/2024, 9:38 PM
You just got a new subscriber
f
fresh-fireman-491
01/04/2024, 10:05 PM
Eyy, thanks a lot
j
jolly-policeman-82775
01/05/2024, 1:59 AM
Same
jolly-policeman-82775
01/05/2024, 1:59 AM
I also subbed
w
wide-oyster-38514
01/05/2024, 7:58 AM
Amazing @fresh-fireman-491 , I will be opening one as well soon! But for beginners mostly, not as good as you😅 😂
q
quick-musician-29561
01/05/2024, 8:22 AM
Liked, subscribed, shared & commented ⚡
f
fresh-fireman-491
01/05/2024, 10:46 AM
I have been hearing some stuff about yours. Can't wait to see it🙈
fresh-fireman-491
01/05/2024, 10:46 AM
Best Community
fresh-fireman-491
01/05/2024, 7:29 PM
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
quick-musician-29561
01/05/2024, 7:30 PM
What was the issue, or do you explain it in the YouTube video?
f
fresh-fireman-491
01/05/2024, 7:32 PM
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.
fresh-fireman-491
01/05/2024, 7:32 PM
This new version makes the transcript in a new way
q
quick-musician-29561
01/05/2024, 7:34 PM
🔥 🔥 🔥
b
better-honey-40119
01/07/2024, 9:09 AM
i'm going to implement it right now🙏 thank you for the update!
t
tall-energy-47920
01/13/2024, 7:31 PM
hi everyone what is the principle of max transcript lines I'm not sure I understood
f
fresh-fireman-491
01/15/2024, 5:17 PM
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.