Quick summary
After submitting an ambient session, Suki generates a clinical note in the background. Once ready, you can retrieve the note content and save it to your EHR.
Receive note content using either the
Receive note content using either the
onNoteSubmit prop (React only) or the note-submission:success event (React and JavaScript). The SDK provides the note ID, contents organized by sections, and LOINC codes for each section. Generated notes title will have titles that match the visitType value passed during session init.Overview
After submitting an ambient session, Suki generates a clinical note in the background. Once ready, you can retrieve the note content and save it to your EHR.Note generation
Note generation happens automatically after session submission. Generation time depends on connectivity:- Online: Faster generation since audio is processed in real-time during the conversation
- Offline: Slower generation since the entire audio file must upload first after connection is restored
Receiving note content
When a note is successfully submitted, the SDK provides the note content to your application. Receive it using either method:onNoteSubmitprop (React only, recommended)note-submission:successevent (React and JavaScript)
- JavaScript
- React
JavaScript
Note titles in the Web SDK UI
When you passvisitType in ambientOptions at session init (for example in mount, ambientOptions on SukiAssistant, or setAmbientOptions), the Web SDK uses that value as the title for the generated note in the in-product patient note list. The generated note title will match the visitType value. This helps clinicians distinguish multiple notes created on the same day.

The generated note will have Created At Timestamp instead of Today date.
visitType is omitted, the UI keeps the previous generic title behavior and the note title will show as Note.
Response structure
When a note is successfully submitted, you receive a response object with the following structure:JSON
Response fields
Unique identifier for the generated note
Unique identifier for the encounter associated with the note
Array of note sections. Each section contains:
title: Section title (e.g., “History of Present Illness”)content: Section content in plain textloinc_code: LOINC code for the section (optional)diagnosis: Diagnosis information if applicable (optional). Refer to Diagnosis for complete structure.
Next steps
- Learn about Token refresh to keep sessions alive
- Explore Error handling for note submission failures