# Patient Recall System That Calls Overdue Patients

Each Monday a dental group's server sends each office's recall list to an agent that phones overdue patients through LumisReach and returns who wants which time.

[Run this on Rush](https://cloud.getrush.ai/run/call-patients-due-for-recall/lumisreach/). Opens the console with this prompt ready to send. Connect LumisReach there first.

## What the agent does

This is for a dental group with several offices and a small IT team. Every office has a recall list: patients past due for their routine hygiene visit who have agreed to phone calls. The front desk is meant to work it between check-ins and rarely gets far, so patients drift and chairs sit empty. The group's IT team already exports each office's list from its practice management system every Monday morning. Now the same script starts one Rush run per office that calls each patient through LumisReach, asks when they would like to come in, and hands the front desk a sorted callback sheet. The agent does not book anything; the front desk does.

LumisReach connects with an API key rather than a sign-in. The person who owns the group's Rush key creates a LumisReach key under Settings → Developer API, adds a card under Settings → Billing because calls draw on the LumisReach wallet, and connects it once with `POST /me/connections {"type": "mcp", "name": "lumisreach", "url": "https://mcp.lumisreach.com/mcp", "auth": {"mode": "bearer", "token": "<LumisReach API key>"}}`. Each run names `lumisreach` in `connections`; the key is stored encrypted and never reaches the prompt.

For each patient row the agent checks the phone number and the consent flag the export carries, and skips anyone without both, listing them with the reason. It places one call per patient with `start_ai_phone_call`: `to_numbers` with that one number, `contact_name`, a `goal` of finding a day and time the patient prefers for their routine visit at that office, `instructions` that forbid talk of treatment, results, prices or insurance and send any such question to the front desk, an `opening_message` that names the office and says it is an automated assistant, one retry after a delay, a cap on call length, and a `voicemail_message` that gives only the office name and its own phone number. LumisReach's docs say a shared calling number cannot ring the practice, so the voicemail has to give the office's number for a callback.

It polls `get_quick_action_status` for each job until the target's `status` is no longer `pending` or `in_progress`, and for each answered call reads `get_call` on `last_call_id` for the summary and the patient's own words. It sorts the outcomes the way the front desk works: patients who named a time, patients who asked to be called back, voicemails, no answers, and patients who asked not to be called, whose `status` reads `opted_out` and who are flagged for removal from the recall list.

## Start it with one API call

`POST https://api.phoenix.so/o/{org}/sessions`

```json
{
  "agent": "claude",
  "input": "Recall calls for the Northgate office. Office phone (for callbacks) {office_phone}; office hours {office_hours}; time zone America/Chicago. Patients, one per line: first name | phone in E.164 | months since last hygiene visit | consent to calls (yes/no). {recall_rows}\n\nUse the LumisReach connection. 1) Skip any row without a valid phone or with consent not yes; list it with the reason. 2) For each remaining patient start one start_ai_phone_call: to_numbers [phone], contact_name [first name], goal 'Find a day and time in the next three weeks the patient would like for their routine hygiene visit at the Northgate office; the front desk will call to confirm', instructions 'You are an automated assistant for the Northgate office. Be brief. Do not discuss treatment, results, prices or insurance; offer a call from the front desk for any such question. If they ask not to be called again, apologise and end the call.', opening_message 'Hi {{CONTACT_NAME}}, this is an automated assistant calling for the Northgate dental office about scheduling your next routine visit. Is now an all right time?', retry_attempts 1, retry_delay_minutes 60, max_call_duration_seconds 240, voicemail_enabled true, voicemail_message 'This is the Northgate dental office. Please call us back at {office_phone} when you have a moment.' Do not mention the reason for the visit in a voicemail. 3) Poll get_quick_action_status until each target is no longer pending or in_progress; for answered calls read get_call on last_call_id. 4) Write recall-calls.md and recall-calls.csv: first name, phone, status, end_reason, preferred days and times in the patient's words, next step for the front desk. Order: named a time, asked for a callback, voicemail, no answer, opted out, skipped. Call no number that is not in the list above.",
  "connections": [
    "lumisreach"
  ]
}
```

1. **Get an API key.** In the console, open Settings, then API keys, and create a key for your org. Send it in the Authorization header as a Bearer token.
2. **Send the request.** POST the body in request.json to https://api.phoenix.so/o/{org}/sessions. The run starts in its own cloud sandbox.
3. **Read what came back.** Follow the run on its live stream or wait for the run.completed webhook, then read the result and its trajectory.

## What comes back

`recall-calls.md` and `recall-calls.csv` record the outcome of each recall call, with the patients who named a time at the top. Both come back as artifacts, and the group's script drops the CSV into that office's shared folder before the front desk opens. Each of those first patients comes with their own words from the call, so a receptionist can book the slot and call back to confirm it. Below them are callbacks, voicemails and no answers, then opt-outs marked for removal from the recall list.

What the front desk checks: each preferred time against the schedule before promising it, since the call agent saw no schedule, and each opt-out, which someone removes from the recall list in the practice management system so the next Monday's export leaves that patient out. A target whose `end_reason` is `shared_pool_daily_limit` was not reached because LumisReach's shared numbers had hit their daily ceiling; the sheet lists it so it carries to the next run.

## Run it on every Monday morning, per office

The group's export script sends one `POST /o/{org}/sessions` per office once the recall lists are written, with the office's patients filled into `input` and a `request_id` that is a UUID v5 of the office id and the week, so a retried script never places the same calls twice. It waits for the run with the key's webhook, then reads the session's artifacts and files the CSV for that office.

Offices that open later in the day can start later: the script reads each office's opening hour and starts its run after it, so no patient is called before the office could take a callback.

## Why run it on Rush?

The LumisReach key lives in Rush's connection, not in the export script, so the IT team never handles it after connecting it once, and the prompt carries only first names, phone numbers and visit gaps. Each run has its own computer and a transcript of every call it placed and every status it read, which is the record a practice manager reads when a patient asks why they were called.

Runs for every office start together and each waits on its own calls, rather than one script dialing office after office. The session records the model cost of each run, and LumisReach's own billing tools report what the calls themselves cost, so the group can see both per office.

## Frequently asked questions

### What patient details should the list carry?

Only what the call needs: a first name, a phone number, how long since the last hygiene visit and the consent flag. Leave clinical notes, treatment plans and insurance out of the export entirely. Whether your practice may share even this much with phone and AI vendors is a question for whoever advises the practice on patient privacy.

### Does the agent book appointments?

No. It asks for a preferred time and writes it down in the patient's words; the front desk checks the schedule, books the slot and calls to confirm. The call script says the front desk will confirm, so no patient hears a time promised by the agent.

### What happens if a patient calls back the number that called them?

LumisReach's docs say calls from its shared numbers cannot ring the practice, so the voicemail and any answered call give the office's own number. A group that wants patients to be able to return the call directly can buy its own number in LumisReach with `setup_ai_phone_number`.

### How many patients can one run call?

LumisReach's docs put each shared number at up to 75 calls a day once warmed up and spread jobs across the pool. A patient the pool could not reach that day comes back with `end_reason` `shared_pool_daily_limit` and, still overdue in the practice management system, appears again in the next Monday's export.

## More LumisReach jobs

- [Chase Invoices More Than 30 Days Overdue by Phone and Log What Each Customer Said](https://getrush.ai/run/chase-unpaid-invoices/lumisreach/)
- [Confirm Tomorrow's Appointments by Phone Every Evening](https://getrush.ai/run/confirm-appointments/lumisreach/)
- [Which Callers Asked for Service but Never Got Booked? An HVAC Company's Morning Callback List From LumisReach](https://getrush.ai/run/find-calls-that-ended-without-a-booking/lumisreach/)

## More jobs like this: Produce a report or file, no repo

- [Report Email Campaign Performance From Klaviyo](https://getrush.ai/run/campaign-performance-report/klaviyo/)
- [Which Client Deliverables Are Stuck in Review? A Video Production Studio's Monday List From ClickUp](https://getrush.ai/run/chase-deliverables-waiting-on-client-review/clickup/)
- [How Do I Track Which Events Still Owe a Final Headcount, Menu or Payment? A Wedding and Event Venue's Weekly Check in Airtable](https://getrush.ai/run/chase-final-headcounts-before-each-event/airtable/)

## Keep reading

- [Connect LumisReach to Rush once, then name it on any run](https://getrush.ai/integrations/lumisreach/)
- [Start your first run from the developer API quickstart](https://getrush.ai/docs/quickstart/)
- [Rush pricing: Free, Pro and Max](https://getrush.ai/pricing/)
