Performance, Scalability and Maintenance: An Experimental Study of RPA vs. Autonomous Agents in the Healthcare Domain
Authors: Daniel Schulz, Pedro Cabral Buchaim, Bernardo Soares, Fernando Rafael Ensslin Schwengber, Lorenzo Farias, Daniela Duarte da Silva Bagatini, Ana Paula Wernz da Cunha Müller
Organizations: Department of Engineering, Computer Science and Architecture, University of Santa Cruz do Sul (UNISC), Santa Cruz do Sul, Rio Grande do Sul, Brazil. · Graduate Program in Industrial Systems and Processes (PPGSPI), University of Santa Cruz do Sul (UNISC), Santa Cruz do Sul, Rio Grande do Sul, Brazil. · Clínica de Mastologia Dra. Ana Paula Muller Ltda., Porto Alegre, Rio Grande do Sul, Brazil.
Healthcare information systems are fragmented, and retrieving data from legacy web portals is a recurrent need. Robotic Process Automation (RPA) is deterministic but sensitive to interface changes, whereas autonomous agents based on large language models (Agent Process Automation, APA) promise adaptability at a higher computational cost. Following Design Science Research, we developed and compared an RPA solution (Playwright) and an APA solution (browser-use, LangGraph and Gemini 2.5 Flash-lite) to retrieve mammography and breast ultrasound reports from a laboratory portal, treating reports solely as informational artifacts. Across two rounds (T and T+7), RPA reached 98.90% accuracy and 98.27% F1-score versus 96.49% and 94.48% for APA, was about 13 times faster (16.07 s vs. 207.21 s per patient) and cost about six times less per report (USD 0.030 vs. 0.187). Both reached 100% step success rates; APA varied more over time. For a stable interface, RPA was superior.
Figures & tables
Figure 1: Macro process flowchart and business rules for report extraction
Figure 2: Technical flowchart of the RPA solution (Playwright)
Figure 3: Technical flowchart of the APA solution (browser-use and LangGraph)
True value
Download
Not download
Authorized
Exam collected (TP)
Exam not collected (FN)
Not authorized
Exam collected (FP)
Exam not collected (TN)
Table 1: Confusion matrix model adopted for the classification of the collected exams
RPA Download
RPA Not download
APA Download
APA Not download
Authorized
142 (TP)
0 (FN)
137 (TP)
5 (FN)
Not authorized
5 (FP)
309 (TN)
11 (FP)
303 (TN)
Table 2: Confusion matrices of the RPA and APA, summing the two executions (T + T+7)
Metric
RPA
APA
Accuracy
98.90%
96.49%
Precision
96.60%
92.57%
Recall
100%
96.48%
F1-score
98.27%
94.48%
Table 3: Classification metrics of exam collection (RPA and APA)
Metric
RPA
APA
Mean execution time per patient (s)
16.07 s
207.21 s
Cost per report (USD)
0.030
0.187
Table 4: Mean execution time per patient and cost per report
Step
RPA
APA
Login rate (%)
100%
100%
Identification/search rate (%)
100%
100%
Complete download rate (%)
100%
100%
Table 5: Success rate per workflow step
Metric
RPA
APA
Accuracy – variation T vs. T+7 (p.p.)
0.44
3.51
Precision – variation T vs. T+7 (p.p.)
1.31
4.26
Recall – variation T vs. T+7 (p.p.)
0.00
7.04
F1-score – variation T vs. T+7 (p.p.)
0.68
5.59
Table 6: Variation of the metrics between T and T+7 (temporal stability)
Robotic Process Automation (RPA) is widely used to reduce administrative burden in United States hospitals, yet an estimated 30-50% of RPA initiatives underperform because processes are selected informally, without a repeatable method to catalogue candidates, prioritize them, match each to an automation tier -- a Python bot, an open-source orchestrator such as n8n, or an enterprise platform such as UiPath -- and forecast financial return before committing resources. We propose a four-module, data-driven framework unifying these decisions: a Process Taxonomy of twenty recurring hospital processes across five value streams; a Prioritization module deriving an Automation Suitability Index from an Analytic Hierarchy Process matrix with an explicit consistency check; a Tool-Tier Selection module recommending the least-cost technology sufficient for a process complexity, integration, and compliance profile; and a Return-on-Investment module quantifying labor savings, error-cost avoidance, payback, and net present value. Applied to a synthetic portfolio spanning all twenty processes, plus a reference data-flow architecture linking it to hospital EHR/payer/ERP systems: 12 of 20 clear the prioritization threshold; the ranking is robust to +/-20% weight perturbation (Spearman correlation 0.83, top-5 set preserved 97.7%, 2,000 Monte Carlo trials); an Automation Risk Index flags four qualifying processes as Critical risk; a budget-constrained portfolio optimization shows diminishing marginal NPV as spend scales from 400Kto1.03M; and a second Monte Carlo analysis shows portfolio NPV stays positive at its 5th percentile. The framework is a conceptual synthesis of the literature rather than an instrument calibrated on primary hospital data; we discuss HIPAA governance and a research agenda for empirical validation. A supplementary Python implementation accompanies the paper.
Maria Alejandra Gomez, Juan Manuel Castillo
Maestría en Inteligencia Artificial, Universidad de La Salle, Bogotá, Colombia
End-to-end automation of realistic healthcare operations stresses three capabilities underrepresented in current benchmarks: policy density, decisions must be grounded in a large library of medical, insurance, and operational rules; Multi-role composition: a single task requires the agent to play multiple roles with handoffs; and multilateral interaction: intermediate workflow steps are multi-turn dialogs, such as peer-to-peer review and patient outreach. We introduce χ-Bench, a benchmark of long-horizon healthcare workflows across three domains: provider prior authorization, payer utilization management, and care management. Each task hands the agent a clinical case in a high-fidelity simulator of 20 healthcare apps exposed via 87 MCP tools, which it must drive to a terminal status through tool calls and writing the role's artifacts, guided by a 1,290+ document managed-care operations handbook skill. Across 30 agent harness/models configurations, the best agent resolves only 28.0% of tasks, no agent clears 20% on strict pass^3, and executing all tasks in a single session slumps the performance to 3.8%. These results raise the hypothesis that similar gaps are likely to surface in other policy-dense, role-composed, irreversible enterprise domains.
Haolin Chen, Deon Metelski, Leon Qi +30
Johns Hopkins Medicine · Wellstar Health System · Stanford University +16
Large Language Model (LLM) based agents have demonstrated proficiency in multi-step interactions with graphical user interfaces (GUIs). While most research focuses on improving single-task performance, practical scenarios often involve repetitive GUI tasks for which invoking LLM reasoning repeatedly, i.e., the ReAct paradigm, is inefficient. Prior to LLMs, traditional Robotic Process Automation (RPA) offers runtime efficiency but demands significant manual effort to develop and maintain. To bridge this gap, we propose AutoRPA, a framework that automatically distills the decision logic of ReAct-style agents into robust RPA functions. AutoRPA introduces two core innovations: (1) A translator-builder pipeline, where a translator agent converts hard-coded ReAct actions into soft-coded procedures, and a builder agent synthesizes robust RPA functions via retrieval-augmented generation over multiple trajectories; (2) A hybrid repair strategy during code verification, combining RPA execution with ReAct-based fallback for iterative refinement. Experiments across multiple GUI environments demonstrate that RPA functions generated by AutoRPA successfully solve similar tasks while reducing token usage by 82% to 96%, significantly improving runtime efficiency and reusability.
Minghao Chen, Xinyi Hu, Zhou Yu +1
Zhejiang Key Laboratory of Space Information Sensing and Transmission, School of Computer Science, Hangzhou Dianzi University, China.