Awell Health Developer Hub
Dev Hub
  • React
  • JavaScript

1. Generate a publishable key

In CareOps, create a publishable key (pk_test-...). You’ll use it in your app.

2. Install packages

01

3. Wrap your app with the provider

Add NaviProvider at the root of your React app and pass your publishable key.

01

4. Render your first care flow/activity

Use NaviEmbed where you want the experience to appear. Provide a careflowDefinitionId (and optionally stakeholderId, branding, etc.).

01

5. Run your app

01

That’s it — your React app will load Navi with your publishable key and render the care flow.

Notes

  • Replace cfdef_12345 with your actual care flow definition ID (Copy the care flow list in Awell Studio).
  • For React, prefer storing the publishable key in NEXT_PUBLIC_NAVI_PK (or similar) and passing it to NaviProvider.
  • Customize your styling, including colors, fonts, border radius, and spacing inside of CareOps Settings.