Introduction
Large Language Models (LLMs) have significantly advanced digital task automation, yet they often struggle with complex, multi-step workflows like trip planning or financial management. Current AI agents typically oscillate between two extremes: opaque "black box" automation where user intent is often misinterpreted, or rigid, turn-based chat interfaces that require exhaustive text-based prompt engineering. DuetUI addresses this by introducing a "human-agent co-generation" paradigm, where users and AI collaboratively build task-oriented interfaces in real-time.
The DuetUI Framework
The core of DuetUI is a Bidirectional Context Loop. Instead of a static chat window, the system generates a malleable, task-oriented interface that evolves across six stages: Define, Empathize, Plan, Explore, Refine, and Duet. This allows users to fluidly shape complex workflows through direct manipulation rather than relying solely on text-based prompt engineering.
Key Technical Components
- Tangible Agency: Abstract AI capabilities are mapped to concrete UI widgets. For example, instead of typing a budget constraint, a user interacts with a generated slider.
- Bidirectional Action History: The system logs both explicit text inputs and implicit UI interactions (clicks, drags, selections). This combined history acts as the context for the AI, allowing it to infer intent from actions.
- Task-Interface Duality: There is a strict coupling between the abstract task logic and the visual UI components. Updates to one trigger updates to the other automatically.
- Multi-Agent Architecture: Specialized LLM agents (Task, Interface, Service, and Rendering) work in concert to update the shared context and the Vue.js-based interface.
Evaluation and Results
The researchers evaluated DuetUI using 10 complex, cross-application tasks and a within-subjects user study (N=24), comparing it against a baseline conversational UI generator.
Key Findings
- Reduced Cognitive Load: DuetUI users spent significantly less time prompting (20.12s vs. 49.37s) and wrote shorter prompts, as the interface allowed for more intuitive interaction.
- Enhanced Usability: The system achieved a System Usability Scale (SUS) score of 73.65, compared to 63.5 for the baseline.
- Superior Quality: Expert evaluations gave DuetUI a higher Weighted F1 score for functional equivalence (0.508 vs. 0.277) and a higher overall quality rating (4.11/5 vs. 3.64/5).
Discussion
A primary insight from this work is that intent is emergent. Users often do not have a fully formed plan at the start of a task; they need a "baseline" output to react to and refine. By providing a generated UI to tweak, DuetUI lowers the barrier to entry and makes the AI feel like a proactive partner rather than a passive tool. While the current system uses simulated APIs to ensure reliability during testing, future work aims to integrate real-world services and extend this paradigm to voice and augmented reality interfaces.
Summary updated