https://retellai.com/?utm_source=discord&utm_medium=seo logo
Getting the full transcript: Using Frontend SDK
# ❓・bug-report
x
Is there a way to get the full transcript of a conversation using the frontend JS SDK?
Requesting your support here
Any workarounds? I would've merged the transcript chunks myself but the messages don't have any unique identifier or timestamp
Hey @NJ, would you be able to help?
n
Hey @xinnshu11 can you tell me your use case. When you say a full transcript, do mean to retrieve post call or you want a live transcript?
x
Hi @NJ , I want to show the complete transcript of a call while it's on.
s
We get the full recording from twilio and transcribe it. Im not sure there is a way to get the post call transcript an other way.
b
We send webhooks to our API server, which then sends them to a SQL DB that we send to our clients
x
Thanks @swimleftproducts @bit_flip But, I want to show a live transcript in my app while the call is ongoing.
n
@xinnshu11 There are docs around listening to events in the web sdk - https://docs.retellai.com/make-calls/web-call You can listen to the "update" event for transcript updates and render it onto your UI Does this help?
x
Yes @NJ . But it gives only the last 5 messages. And they have no unique identifiers. So it'll be error-prone to merge these chunks of 5 messages each.
n
Hmm so you want a full live transcript? I think thats not supported yet. As a workaround you can try to pick only the last sentence in the transcript and show that "live", with some margin for duplicate/corrected sentences
x
Correct. Yeah, I guess i'll have to do that,
s
Hi @xinnshu11 , have you implemented the live transcribe ?
s
hi @xinnshu11 Yes, you can get the full transcript using the frontend JS SDK. The SDK provides real-time transcript updates through the "update" event.