NewIntroducing the Teleperson Protocol (TPP), an open draft that helps personal agents work with every company, even on the phone.Read the announcement
All posts

Product · Industry

Teaching a voice agent to book a pharmacist

Booking a pharmacist consultation sounds simple. Getting it right meant shared calendar rules, confirming a number before texting it, and calls that fail where we can see and fix them.

Teleperson Team · September 23, 2026 · 5 min read

"Can I talk to a pharmacist on Thursday afternoon?" is an ordinary request. The pharmacy's portal couldn't handle it. Its consultation page offered the next four 15-minute slots starting a few minutes from now, and nothing else. There was no way to ask for a particular day, no way for the pharmacy to agree a time, and no reminder.

Rebuilding it taught us something we keep relearning. The hard part of an agent booking something isn't understanding the request. It's making every part of the system agree about what was booked, and never letting the patient believe something happened that didn't.

One set of rules for the clock

Patients now pick a day and a time within pharmacy hours, up to fourteen days out. A pharmacy tech confirms it from the queue. Ten minutes before the appointment, the join button opens, and at that same moment the reminder text and email go out. The call runs on the pharmacy's phone system, where the tech answers in their usual workspace. Patients can start a booking from the portal or from the assistant's panel.

Two design choices did most of the work.

No request belongs to a named person. A requested time goes into one shared pool that anyone on shift can confirm. At call time, the contact drops into the single pharmacist queue. Bookings don't stall because one person is out.

Every calendar rule lives in one place. The join button, the pharmacy queue and the reminder copy all need to agree on what "ten minutes before" means. If each computed it separately, the text would eventually say one thing and the button another. So the rules sit in one shared module with its own tests. Slots are built from wall-clock minutes, so the day after a clock change still starts at nine. The join window opens ten minutes before and closes fifteen minutes after.

Admit what isn't built

When the scheduling interface was ready, the pharmacy-side routes behind it and the server timer that sends the reminders weren't. We could have waited, or shipped a screen that looked finished.

We did neither. When those routes aren't there, the panel falls back to a demo store on the device, with a banner that says it's a demo, a stand-in for the pharmacy's confirm button, and the reminder marked as simulated. Where the phone system isn't configured, it refuses to open a room rather than pretending to connect. Every missing piece is a tracked item on the roadmap.

A booking screen that quietly pretends to have booked something is worse than one that admits what it is. For a patient, a fake confirmation is a missed consultation they'll only discover when nobody calls.

Confirm the number before you text it

Reminders and status updates go out by text, and the first version got this wrong. Tapping to get a status update fired the text immediately, so the first thing some patients learned was an error message about a feature that wasn't switched on, for something they never got to confirm.

Now a tap opens a dialog and sends nothing. It shows:

  • the exact words that will arrive,
  • the mobile number on the account, by its last four digits,
  • a link to the profile if they want a different number.

A text costs the pharmacy money and lands on a lock screen, so the patient should see both before it goes. There's deliberately no free-text field. The number is looked up from the patient's record on the server, so a text can never be aimed at whatever number someone types. Confirming means confirming the number on file; changing it is a profile edit.

If the send fails, the message stays in the dialog, where the patient is still looking, not in a toast that disappears. And if texting isn't connected, it says nothing was sent and that the rest of the request is real.

When the call doesn't start

The patient can also ask the assistant to call them. That path had a failure worth describing, because of how it hid itself.

"Call me" failed for every patient with the same generic sentence: the call couldn't be started. The agent's verification step needed the patient's last name and date of birth, and the outbound path never sent them, so the call was rejected before the phone rang. The typed and spoken paths in the portal had always supplied both; this one didn't.

Worse, the real error was thrown away. The detail that would have explained the failure was caught and dropped, so nobody could see why. The patient got one vague sentence, and the team got nothing.

The fix has two halves. The two missing values are now filled in on the server, from the signed-in patient's own profile, the same place the phone number already came from. They're applied after anything the browser sends, so the browser can't claim to be someone else. And the failure is now logged, without the phone number or any credential, so the next one explains itself. Tests cover the identity check and fail without the fix.

Voice is unforgiving about this kind of ambiguity. On a screen, a patient can see that something went wrong. On the phone, a call that never rings looks exactly like a pharmacy that didn't bother. When a call can't start, the system needs to know why, even if all the patient hears is a short apology.

The takeaway

Teaching an agent to book something is mostly teaching the system around it to be honest. One definition of time that every surface shares. A confirmation step before anything leaves the building. Failures that leave a trace someone can read. And when a piece isn't ready, a screen that says so instead of a confident fake. The conversation is the easy part. Keeping every promise it makes is where the work is.