Overview
After speaker separation, each utterance in a transcript carries a speaker label such asA or B. Use these tools to connect a label to a person, read the suggestions Tiro made, or undo the last assignment.
assign_note_speakers and undo_note_speakers require a credential with a user identity. The recommended order is:
- Call
get_note_transcriptwithincludeEditState: trueto read the speaker labels, their current names, andeditState.etag. - Read suggestions with
get_note_speaker_suggestionand have the user confirm who to assign. - Call
assign_note_speakerswith theetagyou read before the confirmation. - To revert, call
undo_note_speakerswith theeditState.etagfrom the response.
get_note_speaker_suggestion
Reads the speaker suggestions for a note. It is read-only and changes nothing. To apply a suggestion, callassign_note_speakers.
Send exactly one of
noteGuid and noteId.
structuredContent looks like this. suggestions is an empty array when there are none.
For paragraphs locked by the free-plan limit,
evidenceKind and quote are returned as null. To assign the suggested person, send personTag.id as personTagId in assign_note_speakers.
assign_note_speakers
Assigns speaker labels to people across the whole note. Every utterance with that label is reassigned, including utterances a person assigned by hand. Assigned people are also added to the note’s participants.
Each
assignments[] item has:
Each item needs at least one of
personTagId, email, and name. If you send several, only the first present one is used, in that order. People are looked up among this note’s participants first (whoever added them), then among the calling user’s own contacts. Contacts of other users are never used. An email or name that matches nobody creates a contact for the user (name-only if you sent a name).
assigned: the speakers that were assigned.needsDisambiguation: speakers whose name matched several people and were left unchanged. Showcandidatesto the user, then call again with the chosenpersonTagId.editState: theetagand available actions for the next undo. One call is one undo step.
status_code 409 and error_code CONTENT_NOT_EDITABLE, check detail.reason: paragraphs_locked means the label appears in a paragraph locked by the plan limit, and diarization_in_progress means speaker separation is still running. If the etag is stale and the call conflicts, do not retry automatically with a newer etag; read the latest state and confirm with the user again.
undo_note_speakers
Undoes the latest speaker assignment change across the note and keeps later text edits. Tell the user what will change before undoing, and send theetag you read before the confirmation. Assignments made by other users or tools can also be undone.
The response contains only the new state. Read the transcript again after success.
reset_paragraph_contents in Edit and recover note content.
Related tools
get_note_transcript: Reads speaker labels, current names, andeditState.etag.- Edit and recover note content: Edit and undo paragraphs, summaries, and documents.