Subject: Issue with Retrieving Call ID and Complete Transcripts After Call Ends with VAPI
Hello everyone,
I'm having trouble with VAPI integration, specifically with:
Retrieving data after a call ends:
Call ID (callId)
Complete transcript (not in real-time, but only once the call has finished)
Syncing this data with my backend to:
Store call history (Call ID and transcript).
Display this information on the frontend after the call ends.
Challenges Faced:
Using the following events:
call-start to get Call ID (didn't work).
call-end to detect call completion but can't link Call ID with the complete transcript.
message for transcripts, but it only works in real-time.
Tried different naming formats:
Kebab case (call-start, transcript-end)
Camel case (callStart, transcriptEnd)
Snake case (call_start, transcript_end)
Questions:
Which event gets the Call ID after the call ends?
How can I get the complete transcript once the call is finished?
Is there an event like transcript-end? If so, what's the exact name?
How to link Call ID with the transcript in the backend?
Should I store the Call ID from call-start and wait for call-end for the complete transcript?
Additional Info:
Using TypeScript with @vapi-ai/web.
Current event model:
ts
Copier
Modifier
type VapiEventNames =
| 'call-end'
| 'call-start'
| 'message'
| 'error';
I only need the complete transcript after the call ends (not in real-time).
Thanks for your help!
Any advice or examples would be greatly appreciated.
Best regards,