Programming by Teaching: Authoring Agent Workflows through Voice Conversation
Abstract
Agent workflow automation is increasingly accessible to users without programming experience, but much of the knowledge needed to author workflows is implicit. Programming by Demonstration captures what users do on screen but not the rules behind their actions. We propose Programming by Teaching, where users teach a task to an AI through real-time voice conversation while navigating the application, as they would teach a colleague. The AI listens, takes notes, and generates an agent workflow. We implemented both modes in the same Chrome extension and compared them in a within-subjects study with 28 participants, primarily non-programmers. Teaching passed held-out edge-case tests at 87.2% compared to 46.7% for demonstration (p =.002). Teaching reduced cognitive load (p =.04), scored higher on both pragmatic and hedonic quality (p ≤.001), and made it easier to incorporate rules not visible in the UI (p =.003). The hardest part of demonstration was not building the workflow but editing it afterward; teaching sidesteps this by front-loading specification into conversation.
- Venue
- UIST 2026
- Volume
- Proceedings of the 39th Annual ACM Symposium on User Interface Software and Technology
- DOI
- 10.1145/3830398.3830516
- https://dl.acm.org/doi/pdf/10.1145/3830398.3830516
- Anthology ID
2026.uist.41
Cite
@inproceedings{yamazaki-etal-2026-programming,
title = {{Programming by Teaching: Authoring Agent Workflows through Voice Conversation}},
author = {Takato Yamazaki and Nao Yoshida and Keita Higuchi},
booktitle = {Proceedings of the 39th Annual ACM Symposium on User Interface Software and Technology},
isbn = {9798400728563},
year = {2026},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
doi = {10.1145/3830398.3830516},
url = {https://doi.org/10.1145/3830398.3830516},
abstract = {Agent workflow automation is increasingly accessible to users without programming experience, but much of the knowledge needed to author workflows is implicit. Programming by Demonstration captures what users do on screen but not the rules behind their actions. We propose Programming by Teaching, where users teach a task to an AI through real-time voice conversation while navigating the application, as they would teach a colleague. The AI listens, takes notes, and generates an agent workflow. We implemented both modes in the same Chrome extension and compared them in a within-subjects study with 28 participants, primarily non-programmers. Teaching passed held-out edge-case tests at 87.2\% compared to 46.7\% for demonstration (p =.002). Teaching reduced cognitive load (p =.04), scored higher on both pragmatic and hedonic quality (p ≤.001), and made it easier to incorporate rules not visible in the UI (p =.003). The hardest part of demonstration was not building the workflow but editing it afterward; teaching sidesteps this by front-loading specification into conversation.}
}