HCl
02/18/2025, 4:06 PMSlaviSavanovic
02/18/2025, 4:07 PMKyle
02/18/2025, 8:57 PMHCl
02/22/2025, 4:07 AMHCl
02/22/2025, 4:08 AMShubham Bajaj
02/24/2025, 7:49 AMjson
{
"artifact": {
"transcript": "Full conversation transcript",
"recordingUrl": "https://storage.url/recording.wav",
"stereoRecordingUrl": "https://storage.url/stereo-recording.wav",
"messages": [
// Array of conversation messages
]
}
}
2. Using server messages during the call:
You can receive real-time transcripts and call artifacts by configuring serverMessages
to include:
- "transcript" - For real-time transcriptions
- "end-of-call-report" - For final transcript and recordings
Configure your assistant's serverMessages
to include:
json
{
"serverMessages": [
"transcript",
"end-of-call-report"
]
}
Your server will receive real-time transcripts and recordings via webhooks:
json
{
"message": {
"type": "transcript",
"transcript": "User's speech text",
"role": "user",
"transcriptType": "final"
}
}
And at the end of call:
json
{
"message": {
"type": "end-of-call-report",
"artifact": {
"transcript": "Complete conversation",
"recordingUrl": "https://storage.url/recording.wav",
"stereoRecordingUrl": "https://storage.url/stereo-recording.wav"
}
}
}