What you will build
- One shared Dictation client for the chart screen
- A clinical notes field with a stable field id
- In-field Dictation that writes committed text back into that field
Install the Suki developer docs as a skill to get context on Suki's developer tools, APIs, and SDKs. Add the MCP server for documentation search.
DictationClient, wrap the screen with DictationProvider, and mount <Dictation> only while that field is active.
By the end of this tutorial, starting Dictation inserts text into your chart field through onSubmit.
The Dictation SDK is in beta. Confirm package versions and iframe requirements with your Suki contact before production use.
Prerequisites
Before you begin, make sure you have:- Completed Partner onboarding.
- A React 18+ browser app that meets Dictation SDK prerequisites (CSP and iframe hosts).
- Staging
partnerIdandpartnerTokenvalues.
Architecture
Project setup
- Use a React 18+ browser app that meets Dictation SDK prerequisites (CSP and iframe hosts).
- Install the required dependencies:
-
Configure your credentials:
- Keep staging
partnerIdandpartnerTokenready. - Reuse one
DictationClientfor the page. Creating a new client on every render tears the iframe down.
- Keep staging
Tutorial steps
Work through each step in order. Read the explanation, review the code example, then continue to the next step. The full code example is available in the accordion below.1
Create One Auth Manager and DictationClient
Build
SukiAuthManager and DictationClient once inside useMemo. Do not create a new client per render or per field.2
Wrap the Chart Screen with DictationProvider
Pass the shared client into
DictationProvider. Every <Dictation> must be a child of that provider.3
Dictate into a Chart Field in In-Field Mode
Use a stable
fieldId that matches your textarea id. Pass a wrapper with real height as rootElement. Mount <Dictation> only while that field should own the session. Update the field from onSubmit.Full code example
Troubleshooting
Iframe / CSP Issues
Iframe / CSP Issues
Meet Dictation SDK prerequisites for allowed hosts.
UI Tears Down on Typing
UI Tears Down on Typing
Reuse one
DictationClient for the page; recreating it remounts the iframe.Beta Packaging
Beta Packaging
Confirm package versions with your Suki contact before production use.
Summary
In this tutorial, you:- Created one shared
DictationClientfor the chart screen. - Wrapped the screen with
DictationProvider. - Mounted in-field Dictation so submitted text updates the notes field.