Quick summary
After submitting an ambient session, the Headed Web SDK 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, encounter ID, contents organized by sections, and LOINC codes for each section. When medication orders are enabled, the same payload includes an orders object. Generated notes will have titles that match the visitType value passed during session init.orders. Refer to Medication orders JSON schema for the orders payload structure and field definitions.
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 Headed Web SDK provides the note content to your application. When Medication orders are enabled, the same response includes anorders object. Receive the payload using either method:
onNoteSubmitprop (React only, recommended)note-submission:successevent (React and 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.
Structured orders returned when medication orders are enabled. Refer to Medication orders JSON schema for field definitions.
orders is included only when Medication orders are enabled for your organization and you pass the Medications LOINC code 52471-0 in ambientOptions.sections. Refer to Medication orders integration to configure medication orders.