ReUseIt: Synthesizing Reusable AI Agent Workflows for Web Automation

Yimeng Liu, Misha Sra, Jeevana Priya Inala, Chenglong Wang

TL;DR

ReUseIt is a novel system that automatically synthesizes reusable workflows for AI web agents by analyzing their past successful and failed attempts. By incorporating "execution guards"—automated condition checks and fallback strategies—it boosts agent success rates from 24.2% to 70.1%, significantly reducing the need for human supervision.

What Problem Does This Paper Address?

AI-powered web agents (like those using GPT-4o) have the potential to automate tedious tasks like booking flights or scraping data. However, they are notoriously unreliable. They often fail due to "low-level but critical" mistakes: a pop-up they didn't expect, a button that didn't click properly, or a form field that didn't clear.

Currently, if an agent fails, the user has to manually intervene and provide detailed guidance for every subsequent run. Existing solutions like "Programming-by-Demonstration" require users to record every step manually, which is time-consuming and doesn't generalize well to different websites. The authors tackle the "reliability gap"—the fact that even if an agent succeeds once, it might fail the next time the same task is run due to minor environmental changes.

Methods

The core innovation of ReUseIt is the Automatic Workflow Synthesis pipeline. Instead of relying on a single execution, the system follows a three-step process:

  1. Parallel Exploration: The agent runs the user's task multiple times in parallel, using different variations (e.g., different dates, different cities, or different websites). This intentionally surfaces both successes and common failure points.
  2. Execution Guard Synthesis:
    • Condition Checks: ReUseIt analyzes failed runs to identify "Agent Challenges." It then uses an LLM to turn these into pre- and post-condition checks (e.g., "Before entering the city, ensure the text field is empty").
  3. Fallback Actions: It analyzes successful runs to find "recovery strategies" for steps where failures commonly occur (e.g., "If the date isn't set, use the right arrow on the date picker").
  4. Guided Execution: When a user runs a task, the agent follows the synthesized workflow. At each step, it captures a screenshot and performs a "self-reflection" check. If a condition isn't met, it triggers a fallback action to self-recover. If it still fails, it provides the user with a "Challenge Analysis" and actionable tips for intervention.

Datasets

The authors evaluated ReUseIt using:

  • Skyvern Web Benchmark: 15 diverse web automation tasks including flight searches (Booking.com), housing research, pet adoption, and price tracking.
  • Variation Tasks: They introduced a systematic method to generate task variants based on Attribute (changing values), Category (switching tabs/toggles), and Website (applying the same goal to a different UI).
  • User Study: A study with 9 participants performing 6 complex web tasks to evaluate interpretability and trust.

Key Insights and Ideas

  • Failure is a Feature: In ReUseIt, failed executions are not "waste." They are the primary data source for building robustness. By seeing where an agent can fail, the system knows where to place "guards."
  • Interpretability via Verification: The "execution guards" serve as a bridge between the agent's black-box reasoning and the user. Instead of watching a video of the agent clicking around, users can see a checklist of verified states, making it much easier to spot exactly where things went wrong.
  • Generic Framing for Generalization: During synthesis, the system turns specific values (like "New York") into generic placeholders (like <departure_city>). This allows a workflow synthesized on one website to be applied to a completely different one with a similar functional flow.

Key Results

  • Performance Leap: ReUseIt increased the average success rate across 15 benchmark tasks from 24.2% (Task-Only) to 70.1%.
  • Superior to Baselines: It outperformed standard high-level planning (Magentic-UI) by 21.5% and simple success-trace replaying by 28.7%.
  • Reduced User Burden: In the user study, participants provided 50% fewer pieces of guidance when using ReUseIt compared to baseline methods.
  • Increased Trust: Qualitative findings showed that users felt more confident "handing off" tasks to the agent because the condition checks made the agent's behavior predictable and transparent.

Limitations and Future Work

  • Synthesis Overhead: Generating the initial workflow requires running the task multiple times (the authors used $n=5$ for original and variation tasks), which can be slow and computationally expensive.
  • Linearity: The current system focuses on linear workflows. It does not yet support complex branching logic or "checkpointing" (the ability to rewind to a specific state and fork a new execution path).
  • The Generalization Trade-off: There is an inherent tension between highly detailed workflows (which are very reliable) and generalizable ones (which are more flexible). Future work will explore how to dynamically balance this detail level based on task complexity.

Summary updated

Abstract

AI-powered web agents have the potential to automate repetitive tasks, such as form filling, information retrieval, and scheduling, but they struggle to reliably execute these tasks without human intervention, requiring users to provide detailed guidance during every run. We address this limitation by automatically synthesizing reusable workflows from an agent's successful and failed attempts. These workflows incorporate execution guards that help agents detect and fix errors while keeping users informed of progress and issues. Our approach enables agents to successfully complete repetitive tasks of the same type with minimal user intervention, increasing the success rates from 24.2% to 70.1% across fifteen tasks. To evaluate this approach, we invited nine users and found that our agent helped them complete web tasks with a higher success rate and less guidance compared to two baseline methods, as well as allowed users to easily monitor agent behavior and understand its failures.
BibTeX
@inproceedings{liu2026reuseit,
  author = {Yimeng Liu and Misha Sra and Jeevana Priya Inala and Chenglong Wang},
  title = {{ReUseIt: Synthesizing Reusable AI Agent Workflows for Web Automation}},
  booktitle = {IUI},
  year = {2026},
  doi = {10.1145/3742413.3789083},
}
Figure