AutoRPA: Efficient GUI Automation through LLM-Driven Code Synthesis from Interactions

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Chen, Minghao, Hu, Xinyi, Yu, Zhou, Yin, Yufei
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914583087677440
author Chen, Minghao
Hu, Xinyi
Yu, Zhou
Yin, Yufei
author_facet Chen, Minghao
Hu, Xinyi
Yu, Zhou
Yin, Yufei
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2605_21082
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle AutoRPA: Efficient GUI Automation through LLM-Driven Code Synthesis from Interactions
Chen, Minghao
Hu, Xinyi
Yu, Zhou
Yin, Yufei
Artificial Intelligence
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.
title AutoRPA: Efficient GUI Automation through LLM-Driven Code Synthesis from Interactions
topic Artificial Intelligence
url https://arxiv.org/abs/2605.21082