JockRusky
02/26/2026, 3:17 PMAI Evy
02/26/2026, 3:17 PMAI Evy
02/26/2026, 3:17 PMjavascript
npm install retell-client-js-sdk
2. Set up the client and listen for transcript updates:
javascript
import { RetellWebClient } from "retell-client-js-sdk";
const retellWebClient = new RetellWebClient() ;
3. Listen to the update event for real-time transcripts:
javascript
retellWebClient.on("update", (update) => {
// console.log(update) ;
}) ;
The update event provides live transcript data that you can display in your UI. Note that the transcript contains the last 5 sentences to keep the payload manageable.
4. Start the call:
javascript
await retellWebClient.startCall({
accessToken: createCallResponse.access_token,
}) ;
You can use the JavaScript SDK with any web framework (React, Vue, Angular, etc.) to build your custom interface with a transcript display panel. [(2) ]()
Retell also offers a Chat Widget you can embed directly into your website, though for voice calls with live transcript display, you'll want to build a custom UI using the Web SDK. [(3) ]()AI Evy
02/26/2026, 3:18 PMAI Evy
02/26/2026, 3:18 PM