Clara Widget

EHR integration: drop the Clara AI scribe into your existing clinical system

EHR integration without rebuilding: one script tag adds Clara Widget to your record page and fills your existing fields by id while the clinician speaks.

Result Simulation Open in playground

Loading the preview…

Simulation: no voice and no AI are involved. The replay shows what the integration does with synthetic data.

HTML
<!-- Your existing clinical record page. Field ids = the htmlFieldId of your Clara template. -->
<main class="demo ehr">
  <header class="ehr-head">
    <div>
      <h1>Visit note</h1>
      <p class="ehr-patient">Patient: <b>Ana Lucía Pérez</b> (synthetic) · 42 y · MRN 00-4821</p>
    </div>
    <button type="button" id="replay">Replay simulated consultation</button>
  </header>
  <p class="demo-note">
    Simulation: a scripted consultation fills the fields the way Clara Widget would. No voice or AI is used here.
  </p>

  <form class="ehr-form" onsubmit="return false">
    <label for="reason_for_visit">Reason for visit</label>
    <input id="reason_for_visit" name="reason_for_visit" autocomplete="off">

    <label for="history">History of present illness</label>
    <textarea id="history" name="history" rows="3"></textarea>

    <label for="exam">Physical exam</label>
    <textarea id="exam" name="exam" rows="3"></textarea>

    <label for="plan">Plan</label>
    <textarea id="plan" name="plan" rows="3"></textarea>

    <p class="ehr-log" id="log" role="status"></p>
  </form>
</main>

<!-- Clara Widget: one script tag. Key and template come from Clara Platform (Integrate). -->
<script
  src="https://cdn.clara.care/widget/latest.js"
  data-clara-api-key="PUBLISHABLE_KEY"
  data-clara-template="TEMPLATE_ID"
  data-clara-lang="en"
  data-clara-position="bottom-right"
></script>

Every value on this page is synthetic. Never paste real patient data into a public page.

How it works

  1. Give your fields stable ids

    The widget fills inputs, textareas and selects by id (or name). Those ids are the htmlFieldId of the fields in your Clara template.

  2. Add the script tag

    Paste the Clara Widget tag with data-clara-api-key and data-clara-template before </body>. The button appears bottom-right; position, color and language are attributes.

  3. Listen to the events

    clara:session-started, clara:field-filled and clara:session-stopped fire on window. Use them to mark fields, lock them, or save the visit when the session ends.

  4. Register your site

    In Clara Platform, Integrate, create the publishable key and add your EHR's origin as a widget site so the API answers it. Allow cdn.clara.care and the Clara API in your CSP.

Most EHR integrations start with the same question: how do we add AI documentation without rebuilding the record? Clara Widget answers it with one script tag. It adds the Clara button to the page you already have, and as the clinician talks with the patient it writes each value into your existing inputs, matched by id, and dispatches an event your application can react to.

The page below is a mock clinical record with its own fields. The widget tag is the real one your customers would copy; because the voice service is not called from public pages, a replay button plays a scripted consultation and performs the same fills and events the widget would. Real sessions need your organization's publishable key.

What the clinician sees

The record they already use, plus a floating Clara button. They start the consultation, talk normally, watch the fields fill in and correct anything before saving. A field the clinician edits by hand is not overwritten by later voice values. Nothing is saved until they decide.

The widget runs under your organization's key and brand. Inside an iframe it works as a listener for the top page instead of drawing its own interface, which is why this sandboxed preview shows a placeholder button.

Alternatives to the script tag

React and Next.js apps can install @clara.care/widget and mount <ClaraWidget apiKey templateId lang /> once in the layout. Clinics that cannot change their system at all can use the Clara browser extension, which brings the same assistant from a side panel.

React
import { ClaraWidget } from '@clara.care/widget/react';

export function App() {
  return (
    <>
      <MyMedicalRecord />
      <ClaraWidget apiKey="PUBLISHABLE_KEY" templateId="TEMPLATE_ID" lang="en" />
    </>
  );
}

Questions about this example

Do I need an EHR integration API to use Clara Widget?

No. The widget works on the page itself: it fills your existing inputs by id and emits window events. You keep saving the record exactly as you do today. An API is only involved if you also want to read the consultation stream from your server.

Which fields can the widget fill?

Inputs, textareas, selects and checkboxes on the page whose id or name matches a field of the template, including fields inside iframes of your own origin or of trusted origins you list. The odontogram has its own event.

Does the widget change my EHR's data model?

No. The template mirrors the fields you already have, with their ids. Values land in your inputs; your application saves them as always. The template lives in Clara Platform and can be created from the form on screen.

Why is the button a placeholder in this preview?

Clara Widget renders its interface only at the top level of a page. Inside this sandboxed frame it would run as a silent listener, so the preview shows a placeholder and replays the consultation with a script. On your own page the real button appears.

What does the clinician's browser need?

A modern browser with microphone access for the real session, and your site's CSP allowing cdn.clara.care for scripts plus the Clara API and voice proxy for connections. The Clara Widget guide lists the exact directives.

Can we try it before an agreement?

This page and the playground show the integration with synthetic data. For a pilot with your real system and users, request a demo and we set up a development organization with a publishable key for your origin.

Planning an integration?

Tell us about your system and your forms. We run small pilots with technology partners.

Cookie settings

Choose which optional cookies Clara Care may use. They stay off until you turn them on, and you can change your choice at any time from Cookie settings in the footer. Privacy policy