Patient-facing agents: send a patient a secure form

A patient-facing agent is AI software that talks to patients for a practice: a website chatbot, an AI receptionist, a voice agent. Instead of asking a patient for their details in the conversation, the agent asks hipaaform.ai for a one-time link to one of the practice's forms and sends it to the patient. The patient fills in the form on hipaaform.ai, and the answers go to the practice's inbox only.

This keeps patient information out of the agent, its AI model and its vendor's logs.

hipaaform.ai calls all outside AI software AI agents. There are two kinds: builder agents (such as Claude, ChatGPT or Cursor, connected over MCP) build and install a practice's forms, and patient-facing agents, described here, send those forms to patients. Neither ever sees what a patient submits.

What the agent can and cannot learn

The practice's account owner connects each agent under Settings → AI agents → Patient-facing agents and chooses what it may learn.

SettingThe agent canIt never gets
Private (the default)List the forms it may send, and create linksWhether a link was opened or completed, any count, any answer
Status updatesAlso see a link's status: sent, opened, completed or expiredAnswers, files, signatures, or when the patient opened or submitted

A private agent needs no agreement with the practice, because nothing about a patient reaches it.

An owner can turn on status updates only when both of these are true:

  • The practice's signed Business Associate Agreement with hipaaform.ai includes the clause Disclosures directed by Covered Entity.
  • The owner records the agent vendor's legal name and the date of the practice's own business associate agreement with that vendor (or, for a practice that HIPAA does not cover, a data processing agreement), and confirms a statement that is stored word for word.

Whether a named person completed a practice's form is protected health information, which is why status needs those agreements and why answers are never available at all.

Authentication

The owner gets a key when connecting the agent. Send it with every request:

Authorization: Bearer hf_assist_…

The key is shown once. The owner can replace it or disconnect the agent at any time; the old key stops working at once. Requests are limited to 60 a minute.

Endpoints

Base URL: https://app.hipaaform.ai/api/agents/v1. Agents set up with the original address, /api/assist/v1, keep working.

GET /me

Who this key belongs to and what it may do.

{ "agent": "Website chat", "practice": "Harbor Dental", "mode": "private", "can_check_status": false }

mode is private or status_updates.

GET /forms

The published forms this agent may send, with the questions it may fill in on the patient's behalf (details). Signatures, consent, files and payments are never in that list: they are the patient's to give.

{ "forms": [{ "id": "k7m2xq9pd4tw", "name": "New patient intake",
  "details": [{ "id": "f_name0001", "label": "Full name", "type": "text" },
              { "id": "f_kind0001", "label": "Visit type", "type": "radio", "options": ["New patient", "Follow-up"] }] }] }

POST /links

Create a one-time link.

{
  "form_id": "k7m2xq9pd4tw",
  "reference": "conv-8f2a91",
  "details": { "f_kind0001": "Follow-up" },
  "expires_in_hours": 72
}
  • reference is your own id for the conversation: 1–100 letters, digits or . _ : @ -. Do not put a patient's name in it. It is stored only as a keyed hash (HMAC with a server secret, so it cannot be recovered by guessing) and used only to find the link again. A new link for the same reference and form replaces an unused older one.
  • details is optional: things the agent already knows. They are shown to the practice's team with the submission, marked as coming from the agent. They are never shown on the form, so a link sent to the wrong person shows an empty form.
  • expires_in_hours is optional: 1 to 168, default 72.

Response (201):

{
  "link": { "id": "hl_4x8m2q7k9pz1", "url": "https://app.hipaaform.ai/h/hl_…", "form_id": "k7m2xq9pd4tw", "expires_at": "2026-11-29T15:04:05.000Z" },
  "message": "Harbor Dental has sent you a secure form to fill in: https://app.hipaaform.ai/h/hl_…",
  "status_available": false
}

Send message as it is, or your own words. Do not add the form's name or the reason for the visit to a text message or email.

A link works once. After the patient submits, or once it expires, it shows only "This link is no longer active".

Agents with status updates only. Optional form_id narrows a reference to one form.

{ "link_id": "hl_4x8m2q7k9pz1", "form_id": "k7m2xq9pd4tw", "status": "completed" }

A private agent gets 403 with the code status_not_available, whatever it asks for.

Errors

Errors are JSON: { "error": { "code": "…", "message": "…" } }.

StatusCodeMeaning
401unauthorizedMissing, wrong, replaced or disconnected key
403workspace_inactiveThe practice cannot take submissions right now (no signed BAA, suspended, or trial ended)
403status_not_availableThis agent is private: status updates are off
404form_not_foundNot a published form this agent may send
422invalid_reference, invalid_details, invalid_expiryFix the request as the message says

What the practice sees

  • Each submission made through a link is labelled with the agent that sent it, with anything the agent passed along.
  • The agent's page lists the links it sent, with their status, and its key.
  • Every link created, every status check and every change to the agent is in the practice's audit log.

View this page as Markdown · All docs in one file