Prompt Middleware: Mapping Prompts for Large Language Models to UI Affordances
Not on the map. Why?
Abstract (arXiv)
To help users do complex work, researchers have developed techniques to integrate AI and human intelligence into user interfaces (UIs). With the recent introduction of large language models (LLMs), which can generate text in response to a natural language prompt, there are new opportunities to consider how to integrate LLMs into UIs. We present Prompt Middleware, a framework for generating prompts for LLMs based on UI affordances. These include prompts that are predefined by experts (static prompts), generated from templates with fill-in options in the UI (template-based prompts), or created from scratch (free-form prompts). We demonstrate this framework with FeedbackBuffet, a writing assistant that automatically generates feedback based on a user's text input. Inspired by prior research showing how templates can help non-experts perform more like experts, FeedbackBuffet leverages template-based prompt middleware to enable feedback seekers to specify the types of feedback they want to receive as options in a UI. These options are composed using a template to form a feedback request prompt to GPT-3. We conclude with a discussion about how Prompt Middleware can help developers integrate LLMs into UIs.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). First posted on arXiv 3 Jul 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 0; 2026: 3.
7 papers.
- 2023Memory Sandbox: Transparent and Interactive Memory Management for Conversational Agentscited by 36
- 2024Towards Full Authorship with AI: Supporting Revision with AI-Generated Viewscited by 4
- 2026From Words to Widgets for Controllable LLM Generationcited by 4
- 2024Enhancing Programming Error Messages in Real Time with Generative AIcited by 3
- 2024Survey of User Interface Design and Interaction Techniques in Generative AI Applicationscited by 3
- 2026CoGen: Creation of Reusable UI Components in Figma via Textual Commandscited by 2
- 2026Alignment has a Fantasia Problemcited by 0
- 2026Alignment has a Fantasia Problem23 Apr 2026
- 2026From Words to Widgets for Controllable LLM Generation13 Apr 2026
- 2026CoGen: Creation of Reusable UI Components in Figma via Textual Commands15 Jan 2026
- 2024Survey of User Interface Design and Interaction Techniques in Generative AI Applications28 Oct 2024
- 2024Towards Full Authorship with AI: Supporting Revision with AI-Generated Views2 Mar 2024
- 2024Enhancing Programming Error Messages in Real Time with Generative AI12 Feb 2024
- 2023Memory Sandbox: Transparent and Interactive Memory Management for Conversational Agents3 Aug 2023