Architecture for an AI-first healthcare front door starts with the record kept before a person accepts a patient request. Store the text the patient sent, the slot that was offered, and a blank line for the person who will accept or refuse. The agent may draft. It does not close the row.
It is written for hospital CTOs and CIOs and for digital health founders building patient intake with an AI agent. You get the fields, the FHIR Appointment mapping, the identity check, the patient messages and the tests that prove the agent cannot book on its own.
What is the architecture for an AI-first healthcare front door?
The architecture for an AI-first healthcare front door puts a holding record between the agent and the schedule. The record stores the patient's text, the offered slot and an empty decision that only a named person can set. Agnotic Technologies blocks the agent from writing that decision, so no visit is booked until a person accepts.
Designing a front door that must wait for a person?
We store the patient text, the offered slot and the accept or refuse line, and we leave the decision to a person.
Everything else in the front door hangs off that row: the agent's draft, the patient's receipt, the staff alert and the appointment that is created after acceptance. The row has four parts, whatever channel the request comes from.
- Patient text: what arrived, unchanged, with the time.
- Offered slot: the time and the visit type that were proposed, and who or what proposed them.
- Decision: blank until a person accepts or refuses, with that person's name and the time.
- Audit: the row is append-only. A later edit adds a line. It does not erase the text the patient sent.
45 CFR 164.312(b) requires hardware, software and procedural mechanisms that record and examine activity in information systems that contain or use electronic protected health information.
If the system contains the patient's message, the activity on that row is part of the audit. A draft the agent threw away is still activity if it was shown to staff.
What may the agent write?
The agent may write the offered slot and a short note about why that slot was proposed. Agnotic blocks the agent from setting accepted or refused, and from creating the encounter.
- Allowed: a proposed slot, copied from the slots a person has already opened.
- Allowed: a pointer to the patient text, not a rewritten version that replaces it.
- Blocked: the decision field.
- Blocked: a chart note, an order, or a message to the patient that says the visit is booked.
When the person refuses, store the refusal and stop. Do not let the agent offer the next slot until someone asks it to. An automatic second offer is a second decision.
What does acceptance change?
Acceptance writes the person's name on the decision line and only then may create the appointment in the system that owns the schedule. Agnotic keeps the holding row after the appointment exists, so you can see what was offered.
- Name: a person, not a service account.
- Time: the time of the click, not the time the patient wrote.
- Schedule: the appointment id comes back onto the holding row.
- Refusal: no appointment id. The row still remains.
A patient message that never reached a person is an open row, not a completed visit. The front door report is the open rows, not the count of messages received.
Which fields does the holding row carry?
The holding row carries the patient's text, the channel it arrived on, the matched patient if there is one, the offered slot, the decision, the decider and the resulting appointment id. Each field has one writer, so the row can show who put each value there.
- Arrived: the channel, such as the web form, text message or portal, and the time.
- Patient match: the chart identifier if staff or the matching service confirmed it, otherwise empty.
- Offer: the slot id from the schedule, the visit type and the writer of that offer.
- Decision: accepted, refused or open, with the decider's user id and the time.
- Outcome: the appointment id on acceptance, or the reason text on refusal.
Leave the patient match empty rather than guessing. A request matched to the wrong chart is worse than an unmatched one, because the person who accepts will trust the name on the screen.
How does the holding record map to a FHIR Appointment?
If the schedule system speaks HL7 FHIR, the holding record lines up with an Appointment in proposed status whose participants still need to act. The person's acceptance is what moves it forward.
The HL7 FHIR Appointment page describes a request workflow in which the requester creates an Appointment with status proposed, and each participant carries the status needs-action so the request can be accepted or rejected.
- Proposed: the agent's offer becomes an Appointment request, not a booked visit.
- Needs action: the staff participant has not yet accepted or declined.
- Booked: set only by the scheduling system after the named person accepts.
Keep the holding row even when the Appointment exists. The Appointment says what was scheduled. The holding row says what the patient wrote and who decided.
How do you confirm that the accepting person is who they claim?
Confirm the accepting person by requiring them to be signed in with their own account at the moment they accept, and by writing that account to the decision line. A shared front-desk login cannot accept.
45 CFR 164.312(d) requires procedures to verify that a person or entity seeking access to electronic protected health information is the one claimed.
- Own account: each staff member who may accept signs in as themselves.
- Fresh session: an acceptance after a long idle period asks for sign-in again.
- No delegation to the agent: a service account cannot be on the list of people who may accept.
What may the patient be told before a person accepts?
Before a person accepts, the patient may be told that the request arrived and when to expect a reply, and nothing that reads as a booking. The holding message is a receipt, not a confirmation.
- Allowed: 'We received your request. A member of staff will reply.'
- Allowed: the hours in which staff review requests.
- Not allowed: a time, a clinician name or a location presented as confirmed.
- Urgent text: a fixed message pointing to emergency services, written and approved by clinicians, not generated per request.
What happens when the patient writes again before anyone accepts?
When the patient writes again before a decision, the new text is added to the same open row with its own time. It does not create a second request or overwrite the first message.
If the new text changes the request, such as a different reason or a different preferred day, the offered slot is marked stale. The person who decides sees both messages and the stale flag, and the agent does not quietly replace the offer.
What if the offered slot is taken before anyone accepts?
If the slot is taken before acceptance, the acceptance fails against the schedule and the row stays open with a note that the offer expired. The person then chooses a new slot or asks the agent for another proposal.
- Check at acceptance: the scheduling system confirms the slot is still free when the person clicks accept.
- Expired offer: kept on the row with the time it expired.
- New offer: a new line on the same row, with its own writer.
How long can a row stay open before someone is alerted?
A row can stay open only as long as the time limit your clinical lead sets for that request type, after which a named person is alerted. The limit belongs in configuration, with the name of whoever chose it.
- Per type: a new-patient request and a follow-up request can have different limits.
- After hours: the limit counts from the start of the next staffed period, if the service is not staffed overnight.
- Escalation: the alert goes to a person, then to their deputy if it is not picked up.
Report the open rows by age, oldest first. That list, not a count of messages handled, tells the clinic whether patients are waiting on a decision nobody has made.
How do you test that the agent cannot close a row?
Test it by calling every write path with the agent's credentials and confirming the decision field and the appointment creation both refuse. The block has to live in the service that stores the row, not only in the agent's prompt.
- Direct write: the agent's account attempts to set accepted and receives an authorization error.
- Indirect write: the agent asks the schedule to book and is refused.
- Audit: both refused attempts appear in the activity log with the agent's identity.
- Positive path: a staff account can accept, and the appointment id returns to the row.
Who decides who may accept requests?
The practice manager or clinical lead decides who may accept, and the list is reviewed like any other access list. Adding a person is a change with a date and an approver.
Keep the list short. Each extra name widens who can commit clinic time on a patient's behalf, so a person who leaves the front desk role leaves the list the same day.
What are the common mistakes in an AI front door architecture?
The common mistakes let the agent's draft act as a decision. Each one is cheap to prevent at design time and costly to unwind after patients have received confirmations.
- Booking from the agent: the agent calls the schedule directly, so the holding row records an outcome nobody chose.
- Rewriting the patient's words: a summary replaces the original text, and the person who decides reads the agent's version only.
- Guessing the patient match: a request is attached to the closest chart name instead of staying unmatched.
- A block that lives only in the prompt: the service that stores the row accepts a decision from the agent's account.
- Counting messages instead of open rows: the front door report looks healthy while requests wait for a person.
What does the front door mean for your build plan?
The front door adds a holding store, a permission model and a schedule connection to the build plan. Agnotic sequences them so the block on the agent exists before any tool is connected.
- Holding store: the append-only row, its fields and the audit of every write.
- Permissions: the list of people who may accept, and the refusal for every service account.
- Schedule connection: read access to open slots, and appointment creation only after acceptance.
- Patient messages: the receipt and the urgent-text wording, approved by clinicians before launch.
- Tests: the refused agent writes and the positive staff path, run on every release.
How does Agnotic build the holding record?
Agnotic builds the row, the blank decision, and the block on the agent. You name the people who may accept. We do not turn the front door into triage and we do not connect tools until that block is in place.
Tell us which system owns the schedule and who is allowed to accept. We will store the patient text and the offered slot, and we will leave the decision line for that person.
Put the holding record in front
Patient text, offered slot, and a decision only a person can write.
Related reading on Agnotic
What an agent may do once it is connected, and scheduling that stays with staff.


