Demo project · Healthcare · Agentic AI · 2026

Front desk agents for a physical therapy group

A working demo, with made-up patients, modelled on the front desk of a group of outpatient physical therapy clinics. Agents turn faxed referrals into draft patient records and answer routine patient texts. Staff approve anything that matters.

Role

Designed and built end to end

Stack

Python · FastAPI · OpenCV + RapidOCR · MCP (stdio and OAuth HTTP) · Claude, OpenAI or Bedrock (pluggable) · SQLite

The problem

What we built: how it works

Each request moves left to right through these stages.

Step 1

Fax or text arrives

Faxed referral PDFs and patient SMS or web chat

Step 2

Agent reads and checks

Fax clean-up and OCR, field validators, policy search, safety rules

Step 3

Shared tool layer

One MCP server with scoped, audited tools for agents and staff

Step 4

A person approves

Staff approve or edit drafts; patients confirm their own bookings

Step 5

EMR updated once

An idempotent executor writes each approved action exactly once

Key design decisions

Highlight what is uncertain

Every field gets a confidence score after validation (NPI check digit, ICD-10, dates, payer ID formats). Uncertain fields are highlighted for the reviewer.

Safety rules before the model

Clinical, upset, urgent and billing messages always go to a person. These rules are deterministic and staff can edit them.

Answers only from policy

Replies come only from the clinic's policy documents, and every time, price and number must appear in the source, or the message goes to staff.

Nothing runs twice

Each approval creates exactly one action, so a crash, retry or double click never creates a second record.

Patient data stays out of logs

Logs are redacted and hold record IDs only. Patient data only goes to model providers covered by a data agreement.

Release gates

Test sets with hand-checked answers run before every release. A failed check blocks the release.

Results

  • 93% of fields read correctly on 60 test faxes by OCR alone, before any AI model, and every misread field was highlighted for review: none slipped through
  • 88% of routine patient messages handled without staff on the development set, with no wrong answers
  • On unseen test messages the release gate caught 2 bad replies from the rules-only version and blocked the release, as designed
  • 5 of 5 forced-restart and retry tests pass: no duplicate records, messages or bookings
  • Demo project with made-up patients and providers: no real health data

See it working

Review screen: the faxed referral on the left, extracted fields on the right, with uncertain fields highlighted
A handwritten, poor-quality fax. The agent could not read the date of birth, so it left it empty and highlighted it instead of guessing.
Patient messages: the assistant offers three open slots and books the one the patient picks
A patient reschedules by text. The assistant offers real open slots and books only the one the patient confirms.

Have a process like this? Let's talk.

Book a free 30-minute call. We'll go through your workflows and tell you honestly whether AI is worth building.

Book a call