ALLOY: Generating Reusable Agent Workflows from User Demonstration
Li, Jiawen, Ning, Zheng, Tian, Yuan, Li, Toby Jia-jun
–arXiv.org Artificial Intelligence
Large language models (LLMs) enable end-users to delegate complex tasks to autonomous agents through natural language. However, prompt-based interaction faces critical limitations: Users often struggle to specify procedural requirements for tasks, especially those that don't have a factually correct solution but instead rely on personal preferences, such as posting social media content or planning a trip. Additionally, a ''successful'' prompt for one task may not be reusable or generalizable across similar tasks. We present ALLOY, a system inspired by classical HCI theories on Programming by Demonstration (PBD), but extended to enhance adaptability in creating LLM-based web agents. ALLOY enables users to express procedural preferences through natural demonstrations rather than prompts, while making these procedures transparent and editable through visualized workflows that can be generalized across task variations. In a study with 12 participants, ALLOY's demonstration--based approach outperformed prompt-based agents and manual workflows in capturing user intent and procedural preferences in complex web tasks. Insights from the study also show how demonstration--based interaction complements the traditional prompt-based approach.
arXiv.org Artificial Intelligence
Oct-14-2025
- Country:
- Asia
- Japan > Honshū
- Kantō
- Kanagawa Prefecture > Yokohama (0.04)
- Tokyo Metropolis Prefecture > Tokyo (0.04)
- Kantō
- Thailand > Bangkok
- Bangkok (0.04)
- Japan > Honshū
- Europe
- North America
- Canada
- British Columbia > Metro Vancouver Regional District
- Vancouver (0.04)
- Quebec > Montreal (0.04)
- British Columbia > Metro Vancouver Regional District
- Mexico > Mexico City
- Mexico City (0.04)
- United States
- Pennsylvania > Allegheny County
- Pittsburgh (0.04)
- New York > New York County
- New York City (0.05)
- California
- Los Angeles County > Los Angeles (0.14)
- San Francisco County > San Francisco (0.14)
- Santa Clara County > San Jose (0.04)
- District of Columbia > Washington (0.04)
- Georgia > Fulton County
- Atlanta (0.04)
- Illinois > Cook County
- Chicago (0.04)
- Virginia > Fairfax County
- McLean (0.04)
- Hawaii > Honolulu County
- Honolulu (0.04)
- Indiana
- St. Joseph County > Notre Dame (0.04)
- Tippecanoe County
- Lafayette (0.04)
- West Lafayette (0.04)
- Colorado > Denver County
- Denver (0.04)
- Rhode Island > Newport County
- Newport (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- Michigan > Washtenaw County
- Ann Arbor (0.14)
- Pennsylvania > Allegheny County
- Canada
- Oceania > Australia
- New South Wales > Sydney (0.04)
- Asia
- Genre:
- Research Report > New Finding (1.00)
- Workflow (1.00)
- Industry:
- Consumer Products & Services > Travel (1.00)
- Information Technology (1.00)
- Technology: