When stock drops below minimum the order builds itself, with seasonal demand factored in.
Ordering happens when somebody notices something has run out. You end up either overstocked or short. The audit checks whether your consumption data is clean enough, how suppliers can be connected, and whether forecasting is worth the extra work.
AI Agent + human review
A hybrid AI workflow with human-in-the-loop exception gates is the right fit, automating routine reorders while keeping clinician judgement where it matters.
The reordering process is high-volume, rule-driven for the majority of cases, and already has an API surface to connect to, making it a strong automation candidate. The 10-15% exception rate, patient-safety stakes, and GDPR special-category data mean that full autonomous automation without human oversight would be irresponsible. A hybrid approach automates the routine 85-90% of orders end-to-end while routing exceptions and edge cases to a human reviewer, which is exactly what the client described as their target outcome. The practice management software exposes an API, so a no-code or low-code AI workflow platform can be configured without an in-house developer, keeping build costs manageable. This path delivers the bulk of the time savings while preserving the human safety net that compliance and patient safety demand.
The client has no in-house developer and relies on a vendor practice system with an untouched API. A low-code AI workflow platform such as Make, Zapier, or Microsoft Power Automate can connect to that API and handle orchestration without custom code, which is the most realistic build path given the team's technical capacity.
Process Overview
The Automated Medicine and Supplies Reordering process is triggered whenever a team member notices that a stock item has fallen below its minimum threshold. From that point, the practice must check current stock and recent consumption data, identify the right supplier, factor in any seasonal demand variation, build a purchase order, get it reviewed and approved, and send it out, typically by email or via a spreadsheet. The process runs daily and happens multiple times each day, with around 1,200 runs per year averaging 18 minutes each. At that volume, the manual approach consumes roughly 360 hours of clinical and administrative time annually.
The process sits inside a regulated healthcare environment. The practice management software holds consumption and stock data and already publishes an API, though that API has never been connected to anything. Orders are currently assembled by hand, which means accuracy depends heavily on whoever is doing the work at the time. Two or three people hold the tribal knowledge about which suppliers to use, what seasonal adjustments to apply, and how to handle the edge cases that fall outside the standard reorder logic. When those people are unavailable, delays and errors follow.
Around 85 to 90 percent of reorder events follow a clear, repeatable pattern where the right decision is essentially deterministic. The remaining 10 to 15 percent involve non-standard demand, inconsistent consumption data, or items that sit outside the standard reorder rules, and those cases require genuine human judgement. Given that medicines are involved and errors carry patient-safety implications, the process cannot simply be handed over to automation in full. Any automated solution has to preserve a meaningful human decision point for the cases that warrant it.
Path Scores
Routine orders are rule-based and high-volume, making them ideal for automated handling. The 10-15% exception rate, patient-safety implications, and GDPR obligations make a human review gate essential for non-standard cases. This path delivers maximum time savings on the boring majority while keeping people in control of the cases that actually need judgement.
An AI workflow could handle the routine cases well and the API availability supports it. However, running fully automated without a human gate on exceptions is too risky given patient-safety and GDPR obligations. It is viable if exception routing is built in, but at that point it effectively becomes the hybrid approach.
The API exists and the logic for standard cases is deterministic, so a coded integration is technically feasible. With no in-house developer the build and maintenance burden falls entirely on external contractors, raising cost and fragility. It would work but is not the most practical path for this team.
RPA could automate the screen-level interactions with the practice software, but the API makes UI scraping unnecessary and more fragile. RPA also does not add the forecasting or demand-sensing intelligence the client wants, and licensing costs relative to team size make it a poor value fit.
An autonomous agent operating without structured human gates is inappropriate where errors are a patient-safety issue and data is GDPR special category. The process does not require the open-ended reasoning an agent provides; the rules are clear enough for a workflow approach, making an agent over-engineered and harder to audit.
The current manual process produces chronic overstocking and shortages, consumes 360 hours per year of clinical and administrative time, and relies on tribal knowledge held by two or three people. Staying manual is the status quo problem, not a solution.
Process Dimensions
Eight dimensions drive the recommendation, scored 0–10 with a note on each.
Consumption data exists in the practice system but the client flagged it as potentially dirty, and no single system holds the full picture today, so data quality work is a prerequisite before automation can be trusted.
The standard reorder logic is clear and deterministic for the 85-90% majority of cases, but the exception cases that consume most of the time involve judgement that is not yet codified.
At 10-15% exception rate the volume of non-standard cases is meaningful and they disproportionately consume time, which is why a human-in-the-loop gate is essential rather than optional.
The practice software publishes an API which is a strong foundation, but it has never been used and there is no developer on staff, so initial integration setup will require external help or a no-code platform with a pre-built connector.
1,200 runs per year at 18 minutes each totals 360 hours of manual effort annually, which at EUR 25 per hour represents EUR 9,000 in direct labour cost and a clear ROI case for automation.
Seasonal demand patterns mean the reorder rules need periodic adjustment, but the core process structure is stable and changes are predictable rather than disruptive.
The majority of cases require no judgement, but the exception cases and any order touching patient-safety-critical medicines genuinely need a human decision, so judgement cannot be fully removed from the loop.
GDPR special-category health data and regulated records retention combined with patient-safety risk make compliance a high-weight dimension that strongly favours a hybrid approach with clear audit trails over full automation.
ROI Estimate
€9,000
Current annual cost
75%
Estimated time saved
€6,750
Annual savings
10mo
Payback period
Current annual cost is based on 1,200 runs times 18 minutes divided by 60 times EUR 25 per hour, giving EUR 9,000. The 75% savings estimate reflects full automation of the routine 85-90% of cases and significant reduction in exception handling time, while retaining some human effort for the exception gate and oversight.
Implementation Roadmap
Assess the cleanliness of consumption data in the practice system and establish a working connection to the published API using a no-code platform such as Make or Power Automate. Identify and document the reorder rules for standard cases and flag the data quality issues that need remediation before automation can be trusted. This milestone de-risks the entire project and surfaces any supplier API or EDI requirements early.
Build and test the end-to-end automated flow for standard cases: stock level check via API, demand-adjusted quantity calculation, order generation, and supplier dispatch. Define the routing logic that determines which orders go straight through and which are flagged for human review. Go live with the automated path running in parallel with the manual process to validate accuracy before switching over.
Implement the exception queue where non-standard orders are presented to the practice manager or clinician with all relevant context pre-populated, requiring only a decision and one-click approval or edit. Ensure every automated and human-approved action is logged with a timestamp and user identity to satisfy GDPR and records retention obligations. Train the team on the new workflow and retire the spreadsheet and email workarounds.
Review the first full seasonal cycle of automated orders against actual consumption to calibrate the demand forecasting parameters. Document the reorder rules and exception criteria so the process is no longer dependent on tribal knowledge. Hand over ongoing monitoring to the practice manager with a simple dashboard showing order volumes, exception rates, and any supplier errors.
Risks & Considerations
The biggest risk is data quality. If consumption data in the practice system is unreliable, the automated reorder quantities will be wrong and the problem shifts from slow ordering to incorrect ordering, which is worse in a patient-safety context. A thorough data audit before go-live is not optional. The second risk is over-reliance on the exception gate: if the routing logic is too permissive and flags too few cases for human review, errors in edge cases may go unnoticed. The exception threshold should be set conservatively at first and tightened only after the team has built confidence in the system.
GDPR compliance requires that any platform handling the practice data is covered by an appropriate data processing agreement and that data does not leave the EEA without adequate safeguards. The audit trail for every automated order must be retained for the regulated period. Because there is no in-house developer, the team will depend on the chosen no-code platform vendor for security updates and uptime, so vendor selection should include a review of their healthcare and GDPR credentials.
Architecture Overview
Hover to zoom · click for fullscreen
Why This Approach
The recommended path is a Hybrid approach, combining an automated end-to-end workflow for routine reorders with a human-in-the-loop review gate for exceptions. The case for this rests on three converging factors: the process is high-volume and mostly rule-based, making the routine majority ideal for automation; the exception rate is meaningful enough and the stakes high enough that removing humans entirely would be irresponsible; and the practice management software already exposes an API, which means integration does not require writing code from scratch.
The practice has no in-house developer, which is an important constraint. A fully coded integration built by a contractor would work, but it would leave the team dependent on external help for every change, bug fix, or seasonal rule update. A low-code AI workflow platform, such as Make, Microsoft Power Automate, or a comparable tool, can connect to the practice system's API and orchestrate the full reorder flow without custom code. That is the most realistic build path given the team's technical capacity, and it is what the assessment's tech stack note points toward. The client has no stated platform preference, which gives room to choose the tool that best fits the API's authentication model and the team's day-to-day comfort level.
The Hybrid path scores higher than a fully automated AI Workflow precisely because of the exception gate. An AI Workflow without a human gate is technically viable, but in this context it is also the path where a misconfigured rule or dirty consumption data produces incorrect orders that nobody catches before they reach the supplier. When the products being ordered are medicines, that is not an acceptable risk profile. The human review gate is not bureaucratic overhead; it is the mechanism that keeps a clinician's judgement in the loop for the cases that genuinely need it, while still automating the 85 to 90 percent of orders that do not.
Traditional Code scores lower not because it is technically wrong but because it is the wrong fit for this organisation right now. The logic for standard cases is deterministic enough to code, and the API is there to connect to, but with no developer on staff the build cost is higher, the maintenance burden falls on contractors, and any change to reorder rules requires a development engagement rather than a configuration update. RPA scores lower still because the API makes UI-level scraping unnecessary and adds fragility without adding intelligence. An autonomous AI Agent is over-engineered here: the process does not require open-ended reasoning, the rules are clear enough to express as workflow logic, and an agent operating without structured human gates is difficult to audit in a GDPR-regulated environment where every decision touching patient data needs a traceable record.
Staying manual is not a realistic option. The current process is costing the practice around 9,000 euros per year in direct labour, generates chronic stock imbalances, and is fragile because it depends on a small number of people who hold knowledge that lives nowhere else. The Hybrid path is projected to recover roughly 75 percent of that cost, with a payback period of around ten months. The more important gain is reliability: orders go out consistently, seasonal adjustments are applied by the system rather than remembered by an individual, and the practice manager has a dashboard showing what was ordered, why, and who approved it.
Comparing the Top Approaches
The top two paths worth comparing seriously are Hybrid and AI Workflow, and the difference between them is less about technical capability than about risk tolerance. An AI Workflow could handle the routine reorders well. The practice management API is available, the standard reorder logic is deterministic, and a fully automated flow would technically function for the 85 to 90 percent of cases that follow predictable patterns. The problem is what happens in the remaining 10 to 15 percent. Errors in a medicine reordering process are not just operationally inconvenient; they carry patient-safety implications and sit under GDPR special-category data obligations. A fully automated path that sends incorrect orders without a human review gate is a compliance and safety liability, not just an IT problem. The moment you add exception routing to an AI Workflow, you have built a Hybrid anyway, so the choice is really between a Hybrid done deliberately and a Hybrid done accidentally with worse governance.
Traditional Code is worth acknowledging because the API exists and the logic for standard cases is entirely deterministic. A coded integration would work. The constraint is purely practical: the practice has no in-house developer, which means every build, bug fix, and rule update requires an external contractor. That raises the ongoing cost and introduces fragility whenever the vendor updates their API or seasonal demand patterns shift. A low-code platform like Make or Microsoft Power Automate can connect to the same API, apply the same logic, and be maintained by the practice manager without writing a line of code. Traditional Code is not wrong; it is just the harder path for this team to own long-term.
RPA and an autonomous AI Agent are both straightforwardly the wrong tools here. RPA would scrape screens that have a perfectly good API behind them, adding fragility for no benefit, and it contributes nothing to the demand forecasting the client wants. An autonomous AI Agent operating without structured human gates is inappropriate anywhere errors carry patient-safety consequences; the process does not require open-ended reasoning, and an agent would be harder to audit and explain to a regulator than a workflow with clearly defined rules. Staying Manual is the status quo problem the client is trying to solve, consuming 360 hours of staff time per year and depending on tribal knowledge held by a small number of people.
How to Build It
The first thing to do before any automation is built is a data audit. Consumption data in the practice management system needs to be assessed for completeness and consistency, because if the underlying data is dirty the automated reorder quantities will be wrong, and wrong quantities in a clinical setting are a worse outcome than slow manual ones. During the same two-to-three week phase, a working connection to the practice software API should be established using a no-code platform, with Make and Microsoft Power Automate being the most realistic candidates given the team has no in-house developer. Make offers flexible HTTP-based API connectors that can call the practice system's endpoints directly, while Power Automate benefits from tight Microsoft 365 integration if the practice already uses Outlook and SharePoint for email and file storage. Either platform can be configured and maintained by a non-technical practice manager once the initial setup is done. This phase also surfaces any supplier-side requirements, such as EDI formats or supplier portal APIs, so they do not become a surprise later.
Once the data is clean enough to trust and the API connection is proven, the core automated workflow can be built. The flow starts with a scheduled trigger, run multiple times per day, that calls the practice management API to retrieve current stock levels for all tracked items. Where a stock level falls below the defined minimum threshold, the workflow calculates the reorder quantity, applying seasonal adjustment factors that are stored as a simple lookup table in the platform, and then generates a structured purchase order. For items with clean data and a clearly matched supplier, the order is formatted and dispatched automatically, either via a supplier API if one is available or via a structured email template, and a confirmation record is written back to the practice system. This end-to-end automated path should be run in parallel with the existing manual process for two to four weeks before the manual process is retired, so the team can validate order accuracy against what they would have done themselves.
The exception routing logic is what separates a well-governed Hybrid from an unsupervised AI Workflow, and it deserves careful design. Any order that fails a data quality check, involves an item not covered by standard reorder rules, matches a non-standard demand pattern, or exceeds a configurable order value threshold is routed to an exception queue rather than dispatched automatically. The practice manager receives a notification, through either Microsoft Teams or email depending on what the team uses daily, with all relevant context pre-populated: current stock level, recent consumption trend, suggested order quantity, and the specific reason the order was flagged. A single-click approval sends the order; an edit option lets the manager adjust quantity or switch supplier before dispatch. Every action, whether automated or human-approved, is logged with a timestamp and user identity in a structured audit log, which is a hard requirement for GDPR records retention and regulated records obligations.
The final phase focuses on calibration and handover rather than new build work. After the first full seasonal cycle of automated orders, actual consumption is compared against the quantities the system ordered to identify where the demand adjustment factors need tuning. This is also when the reorder rules and exception criteria should be formally documented, moving institutional knowledge out of the heads of two or three people and into a reference document the whole team can use. The practice manager takes over ongoing monitoring through a simple dashboard, built in the same low-code platform, showing daily order volumes, exception rates, and any supplier errors or failed dispatches. At this point the process is genuinely owned by the practice rather than dependent on whoever originally built it.
Risks in Detail
The most serious risk in this implementation is data quality, and it needs to be treated as a prerequisite rather than something to clean up later. If consumption data in the practice system is inconsistent or incomplete at go-live, the automated workflow will calculate reorder quantities from bad inputs and produce confidently wrong orders. In a retail context that means overstocking; in a clinical context it can mean a safety-critical medicine is under-ordered. The data audit in phase one is not a nice-to-have; if it surfaces problems that cannot be resolved before the workflow goes live, the go-live date should move. The second data risk is ongoing: as new medicines are added or suppliers change, someone needs to maintain the lookup tables and reorder rules inside the platform. If that maintenance lapses, the rules will drift out of alignment with reality and exceptions will start slipping through as routine cases.
The compliance dimension introduces its own category of risk that sits alongside the operational concerns. Any no-code platform processing patient-related data, even indirectly through stock levels tied to prescription patterns, must be covered by a Data Processing Agreement that meets GDPR Article 28 requirements, and data must not transit servers outside the EEA without adequate safeguards in place. Both Make and Microsoft Power Automate have GDPR-compliant EU data residency options, but this needs to be verified and configured explicitly rather than assumed. Because there is no in-house developer, the practice will also be dependent on the platform vendor for security patches and uptime. A vendor outage does not just slow down reordering; it removes the automated safety net entirely, so the team needs a documented fallback procedure for processing urgent orders manually if the platform is unavailable. The exception gate threshold should be set conservatively at first, flagging more cases for human review rather than fewer, and tightened only once the team has built enough confidence in the system to know where the edges of its reliability actually are.
Claude Code Starter
A scaffolded project ready to open in Claude Code. Unzip, open the folder, and Claude starts building immediately.
Claude Code Starter (.zip)
Your own assessment includes a ready-to-use project scaffold: CLAUDE.md, pyproject.toml, src/agent.py and .env.example. Open the folder in Claude Code and it starts building.