Skip to main content

Overview

After speaker separation, each utterance in a transcript carries a speaker label such as A 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:
  1. Call get_note_transcript with includeEditState: true to read the speaker labels, their current names, and editState.etag.
  2. Read suggestions with get_note_speaker_suggestion and have the user confirm who to assign.
  3. Call assign_note_speakers with the etag you read before the confirmation.
  4. To revert, call undo_note_speakers with the editState.etag from the response.

get_note_speaker_suggestion

Reads the speaker suggestions for a note. It is read-only and changes nothing. To apply a suggestion, call assign_note_speakers. Send exactly one of noteGuid and noteId.
The 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. Show candidates to the user, then call again with the chosen personTagId.
  • editState: the etag and available actions for the next undo. One call is one undo step.
On any other failure nothing changes. If the error has 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 the etag 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.
To return both speaker assignments and text edits to the originally generated content, use reset_paragraph_contents in Edit and recover note content.