Document speaker names on call transcript turns - #675
Open
AAnkudovich wants to merge 1 commit into
Open
AAnkudovich wants to merge 1 commit into
AAnkudovich wants to merge 1 commit into
Conversation
Adds the optional speaker_name field to transcript turns and corrects the call transcript response type, which has always been a JSON array rather than a plain-text attachment. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why?
Call transcript turns now carry an optional speaker name, so readers can tell who was talking instead of decoding labels like
Teammate 1andUser. While documenting that, I found the transcript endpoint described as a plain-text file download — it has always returned JSON, so the reference was simply wrong.How?
Adds a shared schema for a transcript turn, used by both endpoints that return transcripts, and corrects the documented response type on the transcript endpoint.
Notes for reviewers
The name is optional on purpose. It is left out when the speaker cannot be resolved or has no name — a contact whose record was scrambled by a deletion request is the main case — so the description tells clients to fall back to the diarization label.
Only the documented response type changes for the transcript endpoint; the endpoint's actual behaviour is unchanged and always returned a JSON array.
Generated with Claude Code