Guardrails for AI agents in healthcare operations

Guardrails for AI agents in healthcare operations: bookings and template reminders run free; cancellations, patient messages, prior authorizations and claims wait for the right person; records releases need HIM; chart edits are refused. HIPAA, CMS-0057-F and what each request should carry.

· 10 min read

Build guardrails for a healthcare operations agent by sorting what it does by who it reaches and what it discloses. Lookups, bookings into an open slot and reminders from a fixed template run on their own. Cancellations, free-text messages to patients, prior authorizations and claims wait for the person whose job that is. Releasing records waits for health information management, and two people when they go to anyone but the patient. The agent never writes the chart, never deletes a record and never grants access. And every approval request carries ids and amounts, not diagnoses.

This page is about the front office and the revenue cycle: scheduling, patient messages, prior authorization, billing and records requests. It is not about clinical decisions. An agent that suggests a diagnosis or a treatment needs clinical governance that an approval inbox does not replace. For refunds outside healthcare, see the support refunds guide.

Sort every action by who it reaches

Start with every tool the agent can call, and ask of each: if a faxed form or a portal message steered the agent, who would hear about it, what would leave the building, and could it be taken back? A schedule lookup reaches nobody. A cancellation reaches a patient who may then miss care. A records release cannot be taken back at all.

Healthcare operations agent actions with the action name they ask under, what can go wrong, and the guardrail to put in front of each
OptionAction nameWhat can go wrongGuardrail
Look up the schedule, a patient, coverage or a claimAction nameread.schedule, read.patient, read.coverage, read.claimWhat can go wrongLow, if the scopes are narrow. A message or a fax can carry a prompt injection.GuardrailRuns free within the key's EHR scopes. Portal messages and faxes are input, never instructions.
Book an appointmentAction namecalendar.appointment.bookWhat can go wrongA wrong slot or provider, easy to fix.GuardrailAllow, into an open slot the patient picked.
Cancel an appointmentAction namecalendar.appointment.cancelWhat can go wrongDelayed care, and a slot lost to someone else.GuardrailAsk the front desk; escalate after 2 hours.
Send an appointment reminderAction namereminder.sendWhat can go wrongLow with a template. Free text is a message, not a reminder.GuardrailAllow from fixed templates only.
Message a patientAction nameemail.patient.reply, email.patient.sendWhat can go wrongAnother patient's details, or something that reads as medical advice.GuardrailAsk; clinical questions go to clinical staff.
Submit a prior authorizationAction namepriorauth.submitWhat can go wrongWrong codes or missing documents, and a denial that delays care.GuardrailAsk a prior authorization specialist; escalate fast.
Submit, correct or appeal a claimAction nameclaim.submit, claim.correct, claim.appealWhat can go wrongA bill to a payer with codes nobody checked.GuardrailAsk billing or a coder for each one.
Refund a patient's credit balanceAction namerefund.patientWhat can go wrongMoney to the wrong person, or a payer's overpayment paid to the patient.GuardrailAllow up to $50 within $500 a day; two people above $1,000.
Change an address, phone number or insuranceAction namerecords.demographics.updateWhat can go wrongStatements and results sent to the wrong place.GuardrailAsk the front desk.
Release recordsAction namerecords.release.patient, records.release.third_partyWhat can go wrongA disclosure without a valid authorization, or a patient's request left past 30 days.GuardrailAsk health information management; two people when it goes to anyone but the patient.
Change clinical documentationAction namerecords.chart.amendWhat can go wrongA chart that no longer says what the clinician wrote.GuardrailRefused. The agent opens a task instead.

One family per kind of action lets one rule cover a family. Records changes sit under records.*, so a template’s rule for records catches releases and chart edits too. Template reminders get their own name, reminder.send, so a rule that asks about email.* does not catch them, and cancellations are named apart from bookings for the same reason. The tool picks the name from the EHR’s data, never the model. See naming agent actions.

What the rules and laws ask

HIPAA: the minimum necessary

The Privacy Rule asks covered entities to make reasonable efforts to limit the use and disclosure of protected health information, and requests for it, to the minimum necessary for the purpose (45 CFR 164.502(b), with the details in 164.514(d)). Since the 2013 changes it applies to business associates too. It does not apply to disclosures to a provider for treatment, or to the patient themselves. For an agent that has two sides. The agent’s own access should be the smallest set of records its work needs. And what it writes into an approval request should be the smallest set of facts a person needs to decide: an account number and an amount, not a diagnosis.

HIPAA: business associates

HHS describes a business associate as a person or company that performs functions or services for a covered entity that involve protected health information. Status comes from doing that, not from signing a contract, and a cloud service that stores or transmits electronic PHI for a covered entity is one. So every service that sees what your agent handles, the model provider and an approval service included, should either have a business associate agreement with you or see no PHI. Keeping names and clinical detail out of approval requests keeps the approval step on the second side of that line.

HIPAA: right of access

A patient who asks for their own records must get an answer no later than 30 calendar days after the request is received (45 CFR 164.524(b)(2)). One extension of up to 30 more days is allowed, and only if the patient is told in writing, inside the first 30 days, why and by when. HHS also says the clock keeps running while the format is being agreed, and that sending some records in time and the rest later does not meet it. An agent that prepares releases helps with that clock only if what it prepares is decided quickly, which is why the release rule escalates after a day.

HIPAA Security Rule: audit controls

Section 164.312(b) is a required standard: implement hardware, software or procedural mechanisms that record and examine activity in information systems that contain or use electronic protected health information. The EHR logs what the agent’s integration user did. The approval record adds what that log does not have: what the agent asked to do, who said yes, and when.

Prior authorization: payer clocks

Under the CMS Interoperability and Prior Authorization final rule (CMS-0057-F), impacted payers, such as Medicare Advantage organisations and state Medicaid and CHIP programs, must decide expedited prior authorization requests within 72 hours and standard ones within seven calendar days, generally from 1 January 2026, and give a specific reason for a denial. The rule’s prior authorization API is generally due from 1 January 2027. The time limits do not apply to QHP issuers on the federal marketplaces. For a provider that means a submission which sits in someone’s queue for a day costs a third of an urgent request’s whole window.

AI and medical necessity

On the payer side, California’s SB 1120, in force since 1 January 2025, says that only a licensed physician or qualified health care professional may decide medical necessity, and that AI tools used by health plans and disability insurers may not deny, delay or modify care on that ground. A provider’s operations agent is not covered by it, but the line it draws is the right one for this page as well: the agent fills forms and moves paperwork, and a person decides anything that changes someone’s care.

Prompt injection in portal messages and faxes

OWASP’s LLM01:2025 calls it indirect prompt injection when a model takes input from outside sources such as websites or files. Portal messages, faxed referrals, scanned forms and payer letters are all outside sources. OWASP lists least privilege, human approval for high-risk actions, and marking untrusted content among the mitigations, and the requests below list what the agent read as sources.

Keep PHI out of the approval request

Whoever approves needs enough to decide, and no more. Write requests from ids and amounts: an account number, an MRN, a request id, a date of service, a dollar amount. Leave out names, diagnoses, visit reasons and notes. The person approving can open the record in the EHR, under their own login and its access log, if they need more.

  • The summary is shown in the inbox and goes out in the email to each person who can decide, and in Slack, Teams or Discord messages if the workspace has them on. Write it so you would be content to see it in any of those.
  • Details are not put in those emails and messages. They are shown in the inbox and on the request page a link opens. Keep them to the facts the decision turns on.
  • Push messages carry only the agent’s name, the action and a link, never the summary or details, and the weekly summary email never carries what an agent wrote either. See notifications.
  • To keep requests on your own servers, run VariantGate yourself.

Prior authorization and claims

Paperwork is where an agent saves the most time, and where its mistakes land in someone else’s system. Let it gather the chart notes, fill the payer’s form and pick the codes it thinks fit. Then a prior authorization specialist checks the request under priorauth.submit, and a coder or the billing lead checks each claim under claim.submit, before anything is sent. The request names the payer, the codes, the date of service and the documents attached; the documents themselves stay in the EHR. Because payers now decide urgent requests within 72 hours, the prior authorization rule escalates after two hours to anyone who can decide.

Records requests

A records request arrives as a fax, a portal form or a letter, and the agent is good at reading it, matching the patient and gathering what was asked for. It is not the one to decide whether the requester may have it. A patient’s own request, after their identity is checked, asks under records.release.patient and goes to health information management, with the date it is due. Anyone else asks under records.release.third_party, and only once a valid authorization is on file; two people check it. The request lists the fax or form as an untrusted source, so while it is listed no allow rule can approve the release on its own.

Will the approvals get noisy?

Only if everything asks. Most of a front office agent’s day is lookups, bookings and template reminders, and the rules below answer those at once. Small refunds go through up to $50, until $500 has been approved by rule that day. A refund between those lines asks, but when the agent works through a list in one run, an owner who approves the first can grant the rest of that run up to a number of uses, at no more than the approved amount, for at most 8 hours (run grants). An allow rule can carry a cancel window, so billing sees a refund going ahead in time to stop it without being asked about it. And rule review shows which allow rules were used for far less than they permit, so they can be narrowed later. What still asks every time, cancellations, messages, claims and releases, is the work a person would have checked anyway.

The agent’s own credentials

An approval means little if the agent can go around it.

  • EHR: a backend client with narrow system scopes. For FHIR APIs, HL7’s SMART Backend Services profile is the usual way in: the client signs a JWT with its own key and uses the client credentials grant, and asks for system/ scopes such as system/Appointment.rs (read and search). Ask only for the resources the agent’s work needs, write access on appointments if it books, and no write scope on clinical resources at all. If your EHR vendor has its own integration user instead, give the agent one made for it, never a staff member’s login.
  • Billing and the clearinghouse: a separate agent. The agent that books and messages patients does not also submit claims or refund money. The billing agent has its own clearinghouse credentials and its own approval key, so a rule for one never covers the other.
  • Payments: refund to the original payment only. Give the billing agent a processor key or role that can refund an existing payment and cannot create payouts or new payees. Then a refund can only go back where the money came from, whatever the request says.
  • Portal and fax inboxes: read and draft. The agent may read messages and faxed requests and draft answers. It never takes a sender’s word for who they are; identity checks and authorizations come from your own records.
  • One approval key per agent. In VariantGate a key can be scoped to the actions it may ask about: the front-office agent’s to read.*, calendar.*, reminder.*, email.* and records.demographics.*, the billing agent’s to read.*, claim.*, priorauth.* and refund.*, and an agent that prepares records releases to read.* and records.release.*. A request outside its scope is refused before any rule, and rules match on the key, never on the name the agent gives itself.

The pattern in code

Each risky tool asks, waits, and acts only on allowed: true. Pending, denied, expired and withdrawn all mean no, and so does an approval while agents are paused or still inside its cancel window. One helper holds that for every tool, with the TypeScript SDK:

import { ApprovalClient } from "@variantgate/agent";
import { describe } from "@variantgate/agent/errors";
import type { ApprovalRequest, Decision, Outcome } from "@variantgate/agent/types";

// One client per agent, each with its own key, so a rule for one never covers another.
const approvals = new ApprovalClient({
  agent: "billing-agent",
  apiUrl: process.env.VARIANTGATE_API_URL ?? "https://api.variantgate.com",
  key: process.env.VARIANTGATE_KEY ?? "",
});

type Answer = { go: true; decision: Decision } | { go: false; why: string };

/** Asks and waits. Only an approval without changes lets the agent act. */
export async function askAndWait(request: ApprovalRequest): Promise<Answer> {
  let asked: Decision | undefined;
  try {
    asked = await approvals.ask(request, 30);
    const decision = await approvals.waitForDecision(asked);
    if (!decision.allowed) {
      // Denied, expired, withdrawn, still pending at the end, or approved while paused.
      return { go: false, why: `the request is ${describe(decision)}` };
    }
    if (decision.changed) {
      // A person changed it before approving. This code can only do what it asked.
      await report(decision.id, "failed", "not done: the approval changed the request");
      return { go: false, why: "it was approved only with changes" };
    }
    return { go: true, decision };
  } catch {
    // No answer is not a yes. Take the request back so nobody approves it later.
    if (asked) await approvals.withdraw(asked.id).catch(() => undefined);
    return { go: false, why: "no answer could be had" };
  }
}

/** Reports how it went. Best effort: a failed report never undoes or repeats the action. */
export function report(id: string, outcome: Outcome, note?: string) {
  return approvals.reportOutcome(id, outcome, note).then(() => true, () => false);
}

/** The error's class only. Messages from other APIs can carry tokens and addresses. */
export const kindOf = (error: unknown) => (error instanceof Error ? error.name : "error");

The refund tool reads the credit and where it came from in billing, and hands a payer’s overpayment to a person instead of refunding it. The summary carries an account number and an amount. After the yes it reads the balance again, and the approval’s id is the idempotency key, so one approval makes at most one refund.

/** Refunds a patient's credit balance. Code reads the ledger and picks the action name, never the model. */
export async function refundCreditBalance(accountId: string): Promise<string> {
  // The balance, its source and the payment it came from are read from billing, never from a message.
  const account = await billing.getAccount(accountId);
  const credit = await billing.getCreditBalance(account.id);
  if (credit.cents <= 0) return "Nothing to refund: the account has no credit.";
  if (credit.source !== "patient_payment") {
    // A payer's overpayment may be owed back to the payer. A person sorts that out.
    await billing.openTask(account.id, "credit_from_payer", credit.id);
    return "Not refunded: the credit came from a payer. Billing will review it.";
  }

  const answer = await askAndWait({
    action: "refund.patient",
    amount: (credit.cents / 100).toFixed(2),
    currency: credit.currency,
    // Ids and money only. No name, no diagnosis, no visit reason: this text is shown in emails and chat.
    summary: `Refund credit of ${money(credit.cents, credit.currency)} on account ${account.number}`,
    details: {
      account: account.number,
      "credit since": credit.createdAt,
      "paid by": credit.paymentMethodLast4 ? `card ending ${credit.paymentMethodLast4}` : "other",
      "open charges on account": money(account.openChargesCents, credit.currency),
    },
    ttlSeconds: 2 * 86_400,
  });
  if (!answer.go) return `Not refunded: ${answer.why}.`;

  const { id } = answer.decision;
  // Charges can post while a request waits. Approved was this credit with nothing owed against it.
  const [creditNow, accountNow] = await Promise.all([billing.getCreditBalance(account.id), billing.getAccount(account.id)]);
  if (creditNow.id !== credit.id || creditNow.cents !== credit.cents || accountNow.openChargesCents !== account.openChargesCents) {
    await report(id, "failed", "not done: the balance changed while waiting");
    return "Not refunded: the balance changed while waiting. Ask again.";
  }
  try {
    // Back to the payment it came from, with the approval's id as the idempotency key.
    await billing.refundToOriginalPayment(credit.id, { idempotencyKey: id });
  } catch (error) {
    await report(id, "failed", `may have gone through: ${kindOf(error)}`);
    return "The refund may have gone through. Tell billing; do not refund again.";
  }
  await report(id, "succeeded", `refunded ${money(credit.cents, credit.currency)}`);
  return "Refunded to the original payment.";
}

The release tool matches the patient, picks the action name from who is asking, refuses to ask a third party’s release without a valid authorization, and checks the authorization again before sending, since one can be revoked while the request waits.

import { Sources } from "@variantgate/agent/sources";

/** Someone asked for a patient's records. The agent prepares the release; people decide it. */
export async function prepareRelease(intake: RecordsRequest): Promise<string> {
  const patient = await ehr.matchPatient(intake.patientIdentifiers);
  if (!patient) return "Not prepared: no single patient matches. Health information management will call back.";

  // A patient asking for their own records needs their identity checked, not an authorization.
  if (intake.requester.kind === "patient" && !intake.identityVerified) {
    await him.openTask(patient.id, "identity_not_verified", intake.id);
    return "Not prepared: the patient's identity is not verified yet. Health information management will verify it.";
  }
  // Who is asking decides the action name, and with it who must approve.
  const toPatient = intake.requester.kind === "patient";
  const action = toPatient ? "records.release.patient" : "records.release.third_party";
  const authorization = toPatient ? null : await him.checkAuthorization(intake.authorizationDocId, patient.id);
  if (!toPatient && !authorization?.valid) {
    await him.openTask(patient.id, "authorization_missing_or_invalid", intake.id);
    return "Not prepared: no valid authorization is on file. Health information management will follow up.";
  }

  // The fax or portal form is untrusted input. Anything it says beyond the request itself is ignored.
  const read = new Sources();
  read.document(`Records request ${intake.id} (${intake.channel})`, intake.text);
  if (authorization) read.tool("Authorization check in HIM", JSON.stringify(authorization), { trusted: true });

  const answer = await askAndWait({
    action,
    // The MRN and the request id identify it. The chart itself never goes into the request.
    summary: `Release records for MRN ${patient.mrn} to ${intake.requester.kind}, request ${intake.id}`,
    details: {
      request: intake.id,
      received: intake.receivedAt,
      "due by": intake.dueBy, // 30 calendar days from receipt for a patient's own request
      requester: intake.requester.organisation ?? intake.requester.kind,
      "what was asked for": intake.recordTypes.join(", "),
      "dates of service": intake.dateRange,
      authorization: authorization ? `${authorization.docId}, expires ${authorization.expiresOn}` : "not needed (patient)",
    },
    sources: read.list(),
    ttlSeconds: 5 * 86_400,
  });
  if (!answer.go) return `Not released: ${answer.why}.`;

  const { id } = answer.decision;
  // Days can pass. An authorization can be revoked or expire while the request waits.
  if (authorization) {
    const now = await him.checkAuthorization(intake.authorizationDocId, patient.id);
    if (!now.valid) {
      await report(id, "failed", "not done: the authorization is no longer valid");
      return "Not released: the authorization is no longer valid.";
    }
  }
  try {
    await him.sendRelease(intake.id, { recordTypes: intake.recordTypes, dateRange: intake.dateRange, idempotencyKey: id });
  } catch (error) {
    await report(id, "failed", `may have gone through: ${kindOf(error)}`);
    return "The release may have gone out. Tell health information management; do not send again.";
  }
  await report(id, "succeeded", `released for request ${intake.id}`);
  return "Records released.";
}

Standing rules for a healthcare operations workspace

Rules answer the routine at once and send the rest to the right person. Anything no rule covers, such as a refund between $50 and $1,000, waits for a person.

  1. Always allow read.*, for front-office-agentLooking up the schedule, coverage and claim status changes nothing, so it runs at once and still leaves a line in the record. The key's EHR scopes decide which records it can read at all.
  2. Always allow calendar.appointment.book, for front-office-agentBooking a patient into an open slot they picked is easy to undo and is what the agent is for. Cancellations have their own name, so this rule never covers them.
  3. Always allow reminder.send, for front-office-agentA reminder from a fixed template carries a date, a time and a place, nothing the model wrote. Free-text messages are email.* and wait for a person.
  4. Always ask about calendar.appointment.cancel, for the front desk lead and a scheduler, anyone after 2 hoursA cancelled appointment can mean delayed care, and the slot may go to someone else at once. A person checks that the patient really asked, and that no follow-up was due.
  5. Always ask about email.*, for the front desk lead and a schedulerA free-text message to a patient can carry the wrong person's details or sound like medical advice. A person reads each one. A clinical question is routed to clinical staff, never answered by the agent.
  6. Always ask about priorauth.*, for the prior authorization team, anyone after 2 hoursThe agent gathers the chart notes and fills the payer's form; a specialist checks the codes and the clinical documents before it goes. Escalation keeps an urgent request from sitting while the payer's clock runs.
  7. Always ask about claim.*, for billing and codingCodes the model chose are a bill to a payer in your name. A coder or the billing lead checks each claim, corrected claim and appeal before it is sent.
  8. Always allow refund.* up to $50, $500 a day, for billing-agentRefunding a small credit balance the ledger shows is routine and goes back to the card or account it came from. Once rules have approved $500 today, the rest waits for a person.
  9. Always ask about refund.* above $1,000, two peopleA large refund is often an overpayment by a payer, not the patient, and may be owed back to the payer instead. Two people from billing look at it. A refund with no amount in dollars is caught here too.
  10. Always ask about records.demographics.*, for the front desk and registration leadsA new address, phone number or insurance card decides where statements and results go. A person checks it against what the patient showed or said.
  11. Always ask about records.release.*, for health information management, anyone after a daySending records outside is a disclosure. Health information management checks who asked and what they may have. Escalation keeps a patient's own request well inside the 30 days HIPAA allows.
  12. Always ask about records.release.third_party, two people, for HIM and the privacy officerRecords going to a lawyer, an employer or anyone who is not the patient or their care team need a valid authorization or another basis. Two people check it; one no stops it.
  13. Never allow records.chart.*The agent never writes clinical documentation, diagnoses, orders or results. When it spots an error it opens a task for the clinician or for health information management.
  14. Never allow delete.*Medical records are kept for years under state law and your retention policy. The agent never deletes; a person does, under that policy.
  15. Never allow access.*Who can open which charts is decided by your access process, never by an agent's request.
The same rules as API bodies
# POST /v1/workspaces/{workspace_id}/rules, one call per rule
{
  "action": "read.*",
  "agent_key_id": "FRONT_OFFICE_AGENT_KEY_ID",
  "effect": "allow"
}

{
  "action": "calendar.appointment.book",
  "agent_key_id": "FRONT_OFFICE_AGENT_KEY_ID",
  "effect": "allow"
}

{
  "action": "reminder.send",
  "agent_key_id": "FRONT_OFFICE_AGENT_KEY_ID",
  "effect": "allow"
}

{
  "action": "calendar.appointment.cancel",
  "deciders": [
    "USER_ID_OF_FRONT_DESK_LEAD",
    "USER_ID_OF_SCHEDULER"
  ],
  "effect": "ask",
  "escalate_after_seconds": 7200
}

{
  "action": "email.*",
  "deciders": [
    "USER_ID_OF_FRONT_DESK_LEAD",
    "USER_ID_OF_SCHEDULER"
  ],
  "effect": "ask"
}

{
  "action": "priorauth.*",
  "deciders": [
    "USER_ID_OF_PRIOR_AUTH_LEAD",
    "USER_ID_OF_PRIOR_AUTH_SPECIALIST"
  ],
  "effect": "ask",
  "escalate_after_seconds": 7200
}

{
  "action": "claim.*",
  "deciders": [
    "USER_ID_OF_BILLING_LEAD",
    "USER_ID_OF_CODER"
  ],
  "effect": "ask"
}

{
  "action": "refund.*",
  "agent_key_id": "BILLING_AGENT_KEY_ID",
  "budget_amount": "500.00",
  "budget_currency": "USD",
  "budget_period": "day",
  "effect": "allow",
  "limit_amount": "50.00",
  "limit_currency": "USD"
}

{
  "action": "refund.*",
  "approvals": 2,
  "effect": "ask",
  "limit_amount": "1000.00",
  "limit_currency": "USD"
}

{
  "action": "records.demographics.*",
  "deciders": [
    "USER_ID_OF_FRONT_DESK_LEAD",
    "USER_ID_OF_REGISTRATION_LEAD"
  ],
  "effect": "ask"
}

{
  "action": "records.release.*",
  "deciders": [
    "USER_ID_OF_HIM_LEAD",
    "USER_ID_OF_RELEASE_SPECIALIST"
  ],
  "effect": "ask",
  "escalate_after_seconds": 86400
}

{
  "action": "records.release.third_party",
  "approvals": 2,
  "deciders": [
    "USER_ID_OF_HIM_LEAD",
    "USER_ID_OF_PRIVACY_OFFICER"
  ],
  "effect": "ask"
}

{
  "action": "records.chart.*",
  "effect": "deny"
}

{
  "action": "delete.*",
  "effect": "deny"
}

{
  "action": "access.*",
  "effect": "deny"
}

Owners write rules under Rules in the app, or post these bodies while signed in. Replace the ids in capitals with your own.

When rules disagree the most cautious wins, so a chart edit is refused even though the records release rules ask, and a release to a third party needs two people although the wider release rule asks for one. Amount limits only work in the cautious direction: a refund in another currency, or with no amount, is not allowed by the $50 rule and is caught by the $1,000 rule, so two people decide it. Writing rules needs Pro, two-person approval needs Team, and routing and escalation need Business. The rules reference has every option.

Who approves what

  • Scheduling and messages: the front desk lead or a scheduler. Clinical questions in a message go to clinical staff in your own system, not to the approval inbox.
  • Prior authorizations: the prior authorization team, escalating to anyone who can decide after two hours.
  • Claims and refunds: billing and coding; two people for refunds above $1,000.
  • Records: health information management, with the privacy officer as the second person for releases to third parties. Keep the people who run the agent out of the workspace owner role, since owners can decide any routed request. See two-person approval for why each person counts once.

If an agent starts going wrong, any member can pause every agent from the inbox. While paused nothing is allowed, whatever was approved, and only an owner can resume. A pause does not take back a message or a release already sent.

Checklist

  1. List every tool the agent can call, and the records each reads.
  2. Mark each: reads only, reaches a patient, bills a payer, moves money, discloses records, or changes the chart.
  3. Give each agent its own EHR client with the narrowest scopes, and no write scope on clinical resources.
  4. Check that every service that sees PHI has a business associate agreement, or keep PHI out of what it sees.
  5. Write requests from ids and amounts, never diagnoses or names.
  6. Allow bookings, template reminders and small refunds; ask about the rest; refuse chart edits, deletions and access changes.
  7. Escalate prior authorizations and records requests so payer and HIPAA clocks are met.
  8. List faxes and portal messages as untrusted sources.
  9. Review releases, refunds and who approved them every month.

Try a request in the playground before wiring anything up. The wider set of controls is in guardrails for AI agents, and what auditors look for in audit evidence for AI agent access.

Sources

  1. HHS: Minimum Necessary Requirement (45 CFR 164.502(b) and 164.514(d)), read 27 November 2026
  2. HHS: Business Associates, read 27 November 2026
  3. HHS: Guidance on HIPAA and Cloud Computing, read 27 November 2026
  4. eCFR: 45 CFR 164.524, Access of individuals to protected health information, read 27 November 2026
  5. HHS FAQ: How timely must a covered entity be in responding to individuals' requests for access?, read 27 November 2026
  6. eCFR: 45 CFR 164.312, Technical safeguards (audit controls at (b)), read 27 November 2026
  7. CMS fact sheet: CMS Interoperability and Prior Authorization Final Rule (CMS-0057-F), read 27 November 2026
  8. California Legislative Information: SB 1120, Health care coverage: utilization review (2024), read 27 November 2026
  9. Fenwick: California's SB 1120 Regulates AI in Health Plan Utilization Review and Management Activities, read 27 November 2026
  10. OWASP GenAI Security Project: LLM01:2025 Prompt Injection, read 27 November 2026
  11. HL7 SMART App Launch: Backend Services (system scopes, client credentials with a signed JWT), read 27 November 2026

Try it without signing up

Both open in your browser with this case filled in. Nothing is sent anywhere.

Give your agents somewhere to ask.

Free for 100 requests a month. Sign in with your email and have a first request waiting a few minutes from now.

Start free