ProAgent: From Robotic Process Automation to Agentic Process Automation

Yining Ye, Xin Cong, Shizuo Tian, Jiannan Cao, Hao Wang, Yujia Qin, Yaxi Lu, Heyang Yu, Huadong Wang, Yankai Lin, Zhiyuan Liu, Maosong SunarXiv 2023 · DOI

Abstract

ProAgent represents a significant evolution in business automation, moving from traditional Robotic Process Automation (RPA) to Agentic Process Automation (APA). By leveraging Large Language Models (LLMs) such as GPT-4, ProAgent can automatically design, code, and execute complex workflows from simple human instructions. This approach addresses the "intelligence bottlenecks" of RPA, enabling the handling of fuzzy decision-making and intricate data processing that rigid, rule-based tools cannot manage.

The Intelligence Bottleneck in Traditional RPA

Traditional Robotic Process Automation (RPA) has long been a staple in business for its ability to handle repetitive tasks. However, it suffers from two major limitations. First, construction is manual: human experts must laboriously design workflows using drag-and-drop interfaces or rigid scripts. Second, execution is brittle: while RPA excels at "rigid" tasks (e.g., moving data between fixed fields), it fails when tasks require "flexible" human-like judgment, such as summarizing a report or deciding on escalation based on tone.

Comparison of RPA and APA across construction, workflow, and execution phases.

The authors propose a paradigm shift to APA, where LLM-based agents take over both the design and the nuanced decision-making of business processes, effectively bridging the gap between high efficiency and high intelligence.

Methodology: The ProAgent Framework

ProAgent is built on three core pillars designed to make automation both intelligent and efficient:

1. Agentic Workflow Description Language (AWDL)

Instead of proprietary flowcharts, ProAgent uses AWDL, a hybrid of JSON (for standardized data flow) and Python (for control logic). This leverages the fact that LLMs are already highly proficient at coding, allowing them to generate executable scripts that serve as a universal interface for automation.

The Agentic Workflow Description Language (AWDL) maps Python-based logic directly to executable workflows.

2. Specialized Agent Roles

  • DataAgent: A ReAct-based agent that handles complex data processing, such as writing analysis reports, which exceeds the capabilities of rule-based logic.
  • ControlAgent: Acts as a dynamic "if-else" statement, using natural language reasoning to decide which branch of a workflow to follow during execution.

3. Iterative Construction Procedure

ProAgent follows a four-step iterative loop: Action Define, Action Implement, Workflow Implement, and Testing-on-Constructing. This allows the agent to test its own code and self-correct based on execution errors before finalizing the workflow.

Experimental Results and Insights

The system was validated using n8n, an open-source automation platform, in a commercial lead-management scenario. ProAgent successfully constructed a 7-node workflow that required understanding natural language descriptions.

Key findings include:

  • Dynamic Routing: The ControlAgent correctly identified business types (e.g., classifying "Enterprise Resource Planning" as "To-Business") to trigger appropriate sub-workflows.
  • Complex Content Generation: The DataAgent generated nuanced, context-aware emails that would be impossible to template in standard RPA.
  • The APA Sweet Spot: While RPA provides efficiency for rigid tasks and LLM agents provide intelligence for flexible ones, APA combines both by using agents to orchestrate tools.

Limitations and Future Work

Despite its success, the authors note several challenges. Automation Bias remains a concern, as users may over-rely on agents and miss potential "hallucinations." Future research will focus on robust safety frameworks, the integration of "Process Mining" for historical optimization, and testing performance on smaller open-source model backbones.

Summary updated

BibTeX
@misc{ye2023proagent,
  author = {Yining Ye and Xin Cong and Shizuo Tian and Jiannan Cao and Hao Wang and Yujia Qin and Yaxi Lu and Heyang Yu and Huadong Wang and Yankai Lin and Zhiyuan Liu and Maosong Sun},
  title = {{ProAgent: From Robotic Process Automation to Agentic Process Automation}},
  year = {2023},
  eprint = {2311.10751},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.10751},
}
Figure