Transcript history and queries
Query the conversation turn timeline from code — read committed turns, detect interruptions, and build post-session exports or live analytics.
Access patterns
Subscribe to Changed
Changedusing Convai.Domain.Models;
using Convai.Runtime.Components;
using UnityEngine;
public class TranscriptReactor : MonoBehaviour
{
private void OnEnable()
{
ConvaiManager.ActiveManager.Transcripts.Changed += OnTranscriptChanged;
}
private void OnDisable()
{
ConvaiManager.ActiveManager.Transcripts.Changed -= OnTranscriptChanged;
}
private void OnTranscriptChanged(TranscriptUpdateBatch batch)
{
foreach (string turnId in batch.CompletedTurnIds)
{
TranscriptTurnSnapshot turn = batch.Timeline.TurnsById[turnId];
Debug.Log($"[{turn.Participant.DisplayName}] {turn.DisplayText}");
}
}
}Poll CurrentTimeline
CurrentTimelineCore data structures
ConvaiTranscripts — the facade
ConvaiTranscripts — the facadeMember
Type
Description
TranscriptTimelineSnapshot
TranscriptTimelineSnapshotProperty
Type
Description
TranscriptTurnSnapshot
TranscriptTurnSnapshotProperty
Type
Description
TranscriptParticipantRef
TranscriptParticipantRefProperty
Type
Description
TranscriptLifecycle
TranscriptLifecycleValue
Description
TranscriptUpdateBatch
TranscriptUpdateBatchProperty
Type
Description
Filter turns with TranscriptQuery
TranscriptQueryField
Type
Default
Description
Usage examples
Post-session report — export committed turns
Live analytics — track player word count
Interruption detection — training scoring penalty
Troubleshooting
Symptom
Likely cause
Fix
Next steps
Transcript UISettings panelLast updated
Was this helpful?