Feat(templates): add ehr typescript template #105
+2,233
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
EHR System Automation Template
This template demonstrates how to run an agentic browser workflow on Kernel to automate an Electronic Health Records (EHR) portal. It uses an Anthropic Computer Use loop with Kernel's Computer Controls API.
Logic
The automation performs the following steps:
https://ehr-system-six.vercel.app/login).Quickstart
Deploy:
kernel deploy index.ts -e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEYInvoke:
View logs:
Notes
pkg/templates/typescript/ehr-system/index.tsif you host the portal elsewhere.Requirements
Note
Low Risk
Changes are additive and confined to new template assets plus README updates, with no modifications to existing CLI/runtime code paths.
Overview
Adds two new app templates under
pkg/templates:python/lead-scraper(Google Maps lead scraper built onbrowser-use, with Pydantic input/output models and robust LLM-output-to-JSON parsing) andtypescript/ehr-system(Anthropic computer-use style loop with a Kernel browser session manager and tool abstractions for mouse/keyboard/screenshot/scroll actions).Updates the top-level
README.mdto list the new templates and show examplekernel createcommands for both.Written by Cursor Bugbot for commit d9e7624. This will update automatically on new commits. Configure here.