Pre-register patients before a visit
Workflow purpose
This guide demonstrates how to use Proto's AI agent to pre-register patients before an appointment or hospital admission, so the forms are done before they arrive and the front desk only checks what's already there.
New patients give their personal details, next of kin, health plan details, allergies and current medicines, upload photos of their ID and insurance card, and agree to the consent forms – all in one chat. Returning patients only confirm what's on record and update what has changed. The AI agent submits everything to the hospital's patient system, flags anything missing, and tells the patient exactly what to bring.
Registration is repetitive, high-volume and rule-based, which makes it one of the most automatable conversations in a hospital – one hospital group running it through AI chat automates 99.8% of these conversations end to end.
Who can benefit from this guide:
- Hospitals preparing for planned admissions and day surgery
- Outpatient clinics and diagnostic centres with long check-in queues
- Hospital groups standardising registration across sites
- Admissions and medical records teams re-keying paper forms
- Health plans and HMOs whose members need cover confirmed before treatment
Pre-register a patient
This workflow collects and submits a complete registration before the visit, and tells the patient what to bring 24/7. See how to build a pre-registration workflow.
1. Create a trigger
Start the flow when a patient wants to register, or complete their forms, before a visit.
- Navigate to the Workflows tab in the AI agent settings.
- Click New workflow and select Message received as the Workflow type.
- Name the trigger (e.g. “Pre-registration”) and add a short description (e.g. “Triggers if user wants to register as a patient, fill in admission forms, or complete paperwork before an appointment or hospital stay.”).
- Add training phrases (e.g. “I want to pre-register”, “Complete my admission forms”, “I have surgery next week, what do I need to fill in”, “Register as a new patient”).
Share a link to the chat in your appointment confirmations, so patients arrive at this workflow straight from their booking – see medical appointment scheduling.
2. Find out whether the patient is new
Returning patients shouldn’t have to give everything again.
Add a Send message action:
“I can get you registered before your visit, so there’s less to do when you arrive. It takes about five minutes. Have you been a patient with us before?”
Add quick replies: I’m a new patient | I’ve been here before.
Under I’ve been here before, add an Ask survey action with Patient number (patient_number, Text) and Date of birth (date_of_birth, Text), then a Send API action:
- HTTP method: POST
- URL endpoint: your patient system’s lookup endpoint
- Body:
patient_numberanddate_of_birth - Resulting variable:
record
If the record is found, show what’s held and ask the patient to confirm:
“We have: {record[“full_name”]}, {record[“phone”]}, {record[“address”]}. Next of kin: {record[“next_of_kin”]}. Health plan: {record[“plan_name”]}. Is all of this still correct?“
Add quick replies: All correct | Something’s changed. Under Something’s changed, offer quick replies for each section – Contact details | Next of kin | Health plan | Allergies and medicines – each with a Jump to the matching step, then on to consent in Step 7. Under All correct, Jump to Step 6 so allergies are always confirmed, even when nothing else has changed. If no record is found, tell the patient and continue as a new patient.
3. Collect personal details and next of kin
Gather the demographics your patient record needs in a single survey.
For new patients, add an Ask survey action. Action title: Patient details
| Field | Variable | Type | Invalid reply |
|---|---|---|---|
| Full name, as on your ID | full_name |
Text | Please enter your full name |
| Date of birth (DD/MM/YYYY) | date_of_birth |
Text | Please enter your date of birth as DD/MM/YYYY |
| Mobile number | phone |
Phone | Please enter a valid mobile number |
email |
Please provide a valid email address | ||
| Home address | address |
Text | Please enter your home address |
| Preferred language | language |
Text, with quick replies for the languages you support | Please choose a language |
| Next of kin – full name | nok_name |
Text | Please enter your next of kin’s name |
| Their relationship to you | nok_relationship |
Text | Please tell us how they’re related to you |
| Their phone number | nok_phone |
Phone | Please enter a valid phone number |
Keep Enable skip off for every field. On WhatsApp you can take the mobile number from {_channel_profile.phone_number}, and on a signed-in Webchat the email from {_customer.email}, rather than asking.
If the preferred language differs from the chat’s, add a Switch language action, so the rest of the registration – and the consent forms – are in the patient’s language.
4. Collect health plan details
Record how the visit will be paid for, and check cover before the patient arrives.
Add a Send message with quick replies: Health plan or insurance | I’ll pay myself | Not sure.
Under Health plan or insurance, add an Ask survey action. Action title: Health plan
| Field | Variable | Type | Invalid reply |
|---|---|---|---|
| Health plan or insurer | plan_name |
Text, with quick replies for the plans you accept | Please enter the name of your health plan |
| Member or policy number | member_number |
Text | Please enter the number on your card |
To confirm the plan is active and covers the visit, Jump to your eligibility check – see health plan eligibility – and store the result in cover_status. Under Not sure, record cover_status as unconfirmed so the admissions team can follow up.
5. Collect ID and insurance card photos
Get copies of the documents now, so nobody photocopies them at the desk.
Add an Ask survey action. Action title: Documents
| Field | Variable | Type | Invalid reply |
|---|---|---|---|
| Photo of your ID, front and back | id_photos |
Attachment (multiple files) | Please upload a photo or scan of your ID |
| Photo of your insurance card, front and back | card_photos |
Attachment (multiple files) | Please upload a photo of your insurance card |
Turn on Enable skip for both fields, so a patient without their documents to hand can still finish – Step 9 flags what’s missing. Skip the insurance card field for self-paying patients.
To save new patients typing, you can read the name, date of birth and member number from these photos instead of asking for them – see auto-populate fields with OCR – and ask the patient to confirm what was read.
6. Record allergies and current medicines
Capture the clinical details the ward or clinic must see before the patient arrives.
Add an Ask survey action. Action title: Clinical details
| Field | Variable | Type | Invalid reply |
|---|---|---|---|
| Do you have any allergies? List them, or reply None known | allergies |
Text, with quick reply None known | Please list any allergies, or reply None known |
| What medicines do you take regularly? Include doses if you know them | current_medicines |
Text, with quick reply None | Please list your medicines, or reply None |
| Photo of your medicine packaging or prescription list | medicine_photos |
Attachment (multiple files) | Please upload a photo |
Keep Enable skip off for allergies – an empty answer is not the same as None known. Turn it on for the photo field. For returning patients, show the allergies on record first and ask whether anything has changed; never assume a record is still current.
7. Send the consent forms and record agreement
Let the patient read the forms in full, and record a clear answer.
Add a Send attachment action – File format: Document, Source: URL – with your registration and data-processing consent form as a PDF. For admissions, add a second Send attachment with the admission consent form. Then add a Send message:
“Please read the consent forms above. Do you agree to them?”
Add quick replies: I agree | I don’t agree | I have a question.
- Under I agree, add a Set variable action for
consent_givenas yes andconsent_timeas_.now(). - Under I don’t agree, set
consent_givento no and explain that the registration will still be sent, and staff will go through the forms with them when they arrive. - Under I have a question, add a Live agent handoff to your admissions team, with Live agent availability check on. Under When live agent transfers back to AI agent, Jump back to the consent question.
8. Submit to the patient system
Send the complete registration where the hospital needs it, without re-keying.
Add a Send API action:
- HTTP method: POST, or PUT for a returning patient’s update
- URL endpoint: your patient system’s registration endpoint
- Headers: the authorisation key your system requires
- Body: every variable from Steps 2 to 7, including
cover_status,consent_givenandconsent_time - Resulting variable:
registration
Under Error and Timed out, make sure nothing is lost. Add a Create ticket action assigned to your admissions team, with the patient’s details in the Description, {id_photos} and {card_photos} in Attachment(s), and the tag registration-not-submitted. Admissions staff enter it from the ticket in the Inbox.
9. Flag missing items and confirm what to bring
Close with a clear list, so the patient knows exactly what’s left.
Your patient system returns any gaps in registration["missing"] – for example, a skipped ID photo, unconfirmed cover or consent not given. Add a Branch action:
- If
_.len(registration["missing"]) > 0: Send message – “You’re registered, but we still need: {registration[“missing”]}. You can send them here before your visit, or bring them with you.“ - Else: Send message – “You’re fully registered.”
Then add a Send message:
“Your registration reference is {registration[“reference”]}. On {registration[“visit_date”]}, please bring your ID, your insurance card and any medicines you’re taking, in their original packaging. Go straight to the pre-registered patients desk when you arrive.“
For admissions, add a Send attachment with your admission checklist – what to pack, fasting instructions and visiting hours – as a PDF.
10. Test the flow
Validate every path before going live using the AI agent tester side panel.
- Register a new patient end to end and check every variable reaches the patient system.
- Test as a returning patient, change only the next of kin, and confirm allergies are still asked.
- Skip both document uploads and confirm they appear in the missing items list.
- Choose I don’t agree at consent and check
consent_givenis sent as no. - Build and test in an undeployed version – Duplicate the live version on the Workflows tab – then Deploy when every path passes.
Finalise the AI agent deployment by configuring your preferred channels and languages.
.png)