Intelligent Virtual Assistants with LLM-based Process Automation

Yanchu Guan, Dong Wang, Zhixuan Chu, Shiyu Wang, Feiyue Ni, Ruihua Song, Longfei Li, Jinjie Gu, Chenyi ZhuangarXiv 2023 · DOI

Abstract

Traditional intelligent virtual assistants (IVAs) are often limited by rigid API-based architectures, struggling with complex tasks that require navigating dynamic mobile user interfaces. This paper introduces LLMPA (LLM-based Process Automation), an end-to-end framework that enables IVAs to perform multi-step tasks by emulating human interactions. By combining instruction chain generation, vision-based object detection, and controllable calibration, LLMPA achieves a 70.42% task success rate in real-world mobile environments, significantly outperforming standard LLM baselines.

Introduction

The current generation of IVAs, such as Siri and Alexa, excels at simple, predefined tasks but often fails when faced with complex, multi-step requests like booking a flight through a specific app. These "walled gardens" rely on APIs that may not cover all app functionalities. LLMPA addresses this by treating the mobile UI as a navigable environment, using Large Language Models (LLMs) to reason through sequences of clicks, scrolls, and text inputs.

System overview showing the interaction between the user, chatbot, and the LLMPA Agent.

The core challenge in mobile automation lies in the dynamic nature of UIs, where traditional Robotic Process Automation (RPA) often fails. LLMPA leverages the reasoning power of LLMs to handle these variations while mitigating issues like hallucinations and context window limitations through a structured agent architecture.

The LLMPA Framework

The LLMPA Agent architecture is designed to bridge the gap between natural language instructions and UI execution. Its key components include:

  1. Instruction Chains Generator: This module decomposes a high-level goal into a sequence of sub-tasks, utilizing both abstract strategies and elaborate UI steps.
  2. Object Detection (YOLOX): Instead of processing raw UI code, a vision model groups related items. This reduces token usage and helps the LLM understand spatial relationships.
  3. Previous Action Description Generator: A finetuned LLM summarizes past actions, providing the "semantic glue" necessary for the model to understand the current state relative to the task history.
  4. Action Prediction and Calibration: The core LLM predicts the next action (click, scroll, type), which is then passed through a "Controllable Calibration" layer to ensure logical soundness and executability.
Detailed architecture of the LLMPA Agent alongside a step-by-step execution of a flight booking task.

Evaluation and Results

The system was evaluated using two primary datasets: a real-world deployment in the Alipay app (2,000 tasks) and the AgentBench-WB public benchmark derived from Mind2Web.

In the Alipay environment, LLMPA achieved a 93.71% Step Success Rate and a 70.42% Task Success Rate. In comparison, a baseline LLM without the framework completed only 6.05% of full tasks successfully. Ablation studies confirmed that the "Instruction Chains" and "Previous Action Descriptions" are critical components; removing them caused the success rate to plummet to 14%, underscoring the importance of temporal and strategic context.

Conclusion

LLMPA demonstrates the potential for LLMs to automate complex mobile processes through human-centric emulation. By "seeing" and reasoning through the UI rather than relying on hidden APIs, the system offers a more flexible and generalizable approach to virtual assistance. Future work will focus on optimizing these models for on-device execution and enhancing safety protocols for sensitive financial environments.

Summary updated

BibTeX
@misc{guan2023intelligent,
  author = {Yanchu Guan and Dong Wang and Zhixuan Chu and Shiyu Wang and Feiyue Ni and Ruihua Song and Longfei Li and Jinjie Gu and Chenyi Zhuang},
  title = {{Intelligent Virtual Assistants with LLM-based Process Automation}},
  year = {2023},
  eprint = {2312.06677},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.06677},
}
Figure