Where a workflow ends and an agent begins
A conventional automation follows steps your team defines in advance. It can check conditions, branch, retry, and hand work to a person. An AI-assisted workflow follows the same pattern and uses a model for a bounded task, such as interpreting a message or drafting a reply. An agent gives the model another responsibility: choosing the next action based on what it has learned so far.
This distinction follows the practical framework in Anthropic’s guide to building effective agents.
| Design | What happens at the clinic | Who determines the next step? |
|---|---|---|
| Conventional automation | A patient selects a new time in a booking form. The system checks availability and asks them to confirm. | The booking workflow defines every step. |
| AI-assisted workflow | The patient writes over WhatsApp. A model interprets the request. The booking workflow checks availability and asks for confirmation. | The model interprets the message. The workflow controls the sequence. |
| AI agent | The system interprets the request and can choose whether to inspect another permitted calendar, clarify a preference, offer an option, or involve reception. | The model chooses among actions the clinic has authorized. Booking rules still govern any change. |
Ask the receptionist two questions separately. “How did you understand what the patient meant?” shows where language interpretation can help. “Once you understood them, how did you decide what to do?” shows whether the next step can be written down.
Designing the first release
Look closely at the patient’s last sentence: “If nothing is open after 4, please keep the one I have.” A system that records only “reschedule appointment” has already lost the condition that matters most. It could find an available morning slot and still do the wrong thing.
For this illustrative workflow, we’d agree on the following behavior with the clinic:
- Interpret the request. Identify the current appointment, requested week, time constraint, and instruction to preserve the booking. If two Thursday appointments exist, ask which one the patient means.
- Check availability. Search the appropriate calendar for times that satisfy the request. If none qualify, tell the patient and leave the booking untouched.
- Offer a specific replacement. Give the date and time clearly enough for the patient to accept or decline it.
- Complete the change after confirmation. Recheck the slot. If it has disappeared, preserve the original booking and offer to look again. Report the move only after the scheduling system confirms it.
The team can describe that sequence before writing code. A model earns its place at the beginning, where people express the same intent in many ways. The scheduling system already has the information and rules needed to execute the rest.
What would make an agent worth testing?
“My follow-up was supposed to be after my lab visit, but the lab moved me to Friday. Can I still see the same clinician? I can go to either office.”
Here the receptionist may need to establish which visit the patient means, check where the clinician will be, ask whether the patient can attend a particular time, or route a question about clinical timing to staff. What they learn from one step changes which action is sensible next.
One complicated message is a poor basis for an architecture decision. Ask reception for requests that actually interrupt their work. Walk through what staff did, which information changed their next move, and where they exercised authority the software should leave with them. If most examples follow two or three stable paths, add those paths to the workflow. If staff repeatedly choose among several tools and follow-up questions in different sequences, you have a specific agent capability to evaluate.
The first agent trial could be deliberately narrow: find administrative scheduling options and prepare a response for reception to review. The clinic can judge whether the system chooses useful next steps before granting booking permissions. Questions about appropriate clinical timing go to qualified staff.
How to tell whether the added complexity pays off
Run the fixed workflow and proposed agent on the same representative requests. Before each run, ask the workflow owner to record what a satisfactory outcome looks like and what must remain unchanged. Inspect the actions taken alongside the reply. A reassuring message can hide an incorrect calendar update.
| Test request or event | What a satisfactory result looks like |
|---|---|
| No appointments are available after 4 | The patient gets a clear answer. The original booking remains in the calendar. |
| Two Thursday appointments match the request | The system asks which appointment the patient means before attempting a change. |
| The offered slot disappears before confirmation | The system preserves the original booking and reports the conflict accurately. |
| The patient asks whether it is medically appropriate to delay the visit | The question reaches the appropriate staff member with enough context to respond. |
| Reception must take over mid-conversation | Staff can see what the patient requested, what was checked, and whether anything changed. |
For the CTO, the commercial question is how much work remains for the team after the system responds. Count completed requests, corrections, and handoffs that force reception to repeat a search. Review unauthorized changes separately. A system that resolves more conversations but occasionally cancels the wrong booking has failed an essential release condition.
What this looks like in Datum’s work
Datum developed Datum Care, a launch-stage WhatsApp receptionist for solo medical practices in Mexico, to support appointment requests, answer routine practice questions, and route requests that need a person’s attention. The examples in this guide illustrate design decisions in that domain. The booking scenarios and evaluation criteria are examples a team can adapt to its own scheduling rules.
Explore Datum Care and our AI agent development work →The same exercise works for an internal service desk, sales intake, or operations queue. Pick one recurring request. Ask the person who handles it to show you an ordinary example and two exceptions. Watch for the moment when they decide what to do next. That is the part of the workflow worth designing together.
Discuss a workflow your team handles manually
Bring one recurring request and two exceptions your team handles manually. We’ll help you scope a first release.
Discuss a workflow with us