Overview
Corti Assistant uses a real-time event system to communicate state changes and important updates from the embedded application to your integration. Events enable you to build responsive integrations that react to user actions, recording states, and document lifecycle changes without polling.Event Structure
All Corti Assistant events follow a consistent schema:Structure Components
event: A dot-notation string identifier for the specific event type (e.g.,'recording.started','document.generated','interaction.loaded')confidential: A boolean indicating whether the payload contains sensitive patient or user datapayload: An object containing event-specific data. The structure varies by event type and confidentiality level.
Confidential vs Public Events
Events can contain two types of payloads:- Public Payload: Contains metadata and identifiers (IDs, states, durations) without sensitive information
- Confidential Payload: Contains full interaction context including transcripts, documents, facts, and other protected data
confidential field indicates which payload type is included.
Integration Transports
Events are delivered through different transport mechanisms depending on your integration method. For details on how to receive and handle events in your specific integration:- PostMessage API - For iframe/WebView integrations
- Window API - For same-origin integrations
- Web Component (coming soon) - For simplified component-based integration