Generative Trigger-Action Programming with Ply

Timothy J. Aveni, Hila Mor, Armando Fox and Björn Hartmann

Abstract

Trigger-action programming has been a success in end-user programming. Traditionally, the simplicity of links between triggers and actions limits the expressivity of such systems. LLM-based code generation promises to enable users to specify more complex behavior in natural language. However, users need appropriate ways to understand and control this added expressive power. We introduce Ply, a system that tackles this challenge through the following techniques: (1) a layer abstraction that enables decomposition into smaller building blocks; (2) generated visualizations at each layer boundary to enable interrogation of the behavior of generated code; and (3) generated customizable parameters, with associated configuration UIs, to allow users to tune each layer’s behavior. We offer a technical evaluation of Ply, demonstrating how custom programs can be authored and tested incrementally using this layered trigger-action technique. Additionally, we describe a first-use study with seven participants, demonstrating where and how Ply’s generative features can affect how users build programs.

Venue
UIST 2025
Volume
Proceedings of the 38th Annual ACM Symposium on User Interface Software and Technology
DOI
10.1145/3746059.3747638
PDF
https://dl.acm.org/doi/pdf/10.1145/3746059.3747638
Anthology ID
2025.uist.44

Cite

@inproceedings{aveni-etal-2025-generative,
    title = {{Generative Trigger-Action Programming with Ply}},
    author = {Timothy J. Aveni and Hila Mor and Armando Fox and Björn Hartmann},
    booktitle = {Proceedings of the 38th Annual ACM Symposium on User Interface Software and Technology},
    isbn = {9798400720376},
    year = {2025},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3746059.3747638},
    url = {https://doi.org/10.1145/3746059.3747638},
    abstract = {Trigger-action programming has been a success in end-user programming. Traditionally, the simplicity of links between triggers and actions limits the expressivity of such systems. LLM-based code generation promises to enable users to specify more complex behavior in natural language. However, users need appropriate ways to understand and control this added expressive power. We introduce Ply, a system that tackles this challenge through the following techniques: (1) a layer abstraction that enables decomposition into smaller building blocks; (2) generated visualizations at each layer boundary to enable interrogation of the behavior of generated code; and (3) generated customizable parameters, with associated configuration UIs, to allow users to tune each layer’s behavior. We offer a technical evaluation of Ply, demonstrating how custom programs can be authored and tested incrementally using this layered trigger-action technique. Additionally, we describe a first-use study with seven participants, demonstrating where and how Ply’s generative features can affect how users build programs.}
}