The Research Report
Prompts Are Not Strings: What OOPrompt Gets Right About How We Should Talk to LLMs
You type a paragraph of instructions into a chat box. You hit enter. The model responds. You tweak a few words. You hit enter again. This loop is how most people interact with LLMs, and it is fundamentally broken.
A new paper from UCLA, accepted to EICS 2026, gives this problem a name and a framework. The paper is called OOPrompt, and its core argument is simple: prompts should not be flat strings. They should be structured objects with properties you can create, edit, iterate on, and reuse.
This is not a small claim. If OOPrompt is right, the entire prompt box paradigm that defines how hundreds of millions of people interact with AI needs rethinking.
The Problem OOPrompt Identifies
Here is the fundamental tension the paper identifies. Human intent is multifaceted. When you ask an LLM to write a marketing email, you have goals (persuade the reader), constraints (keep it under 200 words), roles (act as a copywriter), context (product details), and format expectations (bullet points for features). These are separate concerns that interact in complex ways.
But the current interface for expressing all of this is a single text box. You mash these distinct concerns into one linear string. The result is predictable. Users forget constraints. Instructions interfere with each other. Iteration means rewriting the entire string from scratch. The prompt box treats a rich, structured intent as a flat sequence of tokens.
The paper cites a body of prior work that has been nibbling at the edges of this problem. PromptChainer visualizes prompts as node-edge diagrams. LangGPT proposes a dual-layer framework treating prompts as code. Dynamic Prompt Middleware replaces text input with buttons and checkboxes. Luminate decomposes prompts into explorable dimensions. Each of these systems addresses a piece of the problem. None of them unify the solution.
OOPrompt aims to be the Shneiderman moment for structured prompting. Just as Shneiderman's 1983 essay unified disparate graphical interfaces under the banner of "direct manipulation," OOPrompt unifies these point systems under a single paradigm.
The Object Model: Prompts as Objects, Not Strings
The key conceptual move in OOPrompt is borrowing from object-oriented programming. The paper maps the four pillars of OOP to prompting.
Encapsulation. Each aspect of your intent is a property of the prompt object. One property holds your goal. Another holds your format constraints. Another holds your persona instructions. Each property is a self-contained container. The logic inside one property does not leak into another. You can adjust the tone without touching the content requirements.
Abstraction. You interact with the prompt at a high level. You set properties by name, not by composing the right sequence of words. The system handles how to assemble these properties into a coherent prompt for the model. You think in terms of "what do I want," not "how do I phrase this so the model understands."
Inheritance. You can create a base prompt object and derive new ones from it. A marketing email prompt can inherit from a general business writing prompt. The child gets all the parent's properties and overrides specific ones. This is prompt reuse without copy-paste.
Polymorphism. The same prompt property can render differently depending on context. A "tone" property might produce different output structures for a technical audience versus a general one. The prompt adapts its behavior based on its configuration, not on manual rewording.
The formal definition: OOPrompt treats a prompt as a root-level object composed of discrete, addressable properties. Each property encapsulates a specific aspect of user intent along with metadata like emphasis weights, stylistic constraints, and few-shot examples. A property can hold a primitive text value or reference another child prompt object, enabling recursive decomposition of complex tasks.
This recursive structure matters. A "write a blog post" prompt can contain a child "research the topic" prompt as a property. That child can itself contain a "find relevant sources" sub-prompt. You manage hierarchical complexity through composition, not through ever-longer text strings.
The Formative Study: 20 Participants Build Prompts as Objects
The researchers did not just propose a framework. They built it and tested it.
First, they synthesized existing OOPrompt-like systems into an initial design space covering the prompt lifecycle: create, reuse, edit, deploy, and evaluate. Then they built a minimum viable product (MVP) that lets users compose OOPrompts and send them to ChatGPT or Gemini.
They deployed this MVP as a probe in a formative study with 20 participants. Participants used the prototype to perform representative tasks like writing a short story and planning a trip. The researchers then thematically analyzed participant feedback to expand the design space.
The formative study revealed several patterns:
- Participants found the object-oriented model intuitive for expressing complex, multi-faceted intent. Breaking a prompt into named properties matched how they naturally thought about their goals.
- The ability to edit individual properties without rewriting the entire prompt was the most valued feature. Iteration became surgical rather than destructive.
- Participants wanted more automation for property population. They liked the structure but did not want to fill in every property manually.
- The boundary between what belongs in one property versus another was sometimes unclear, especially for open-ended creative tasks.
These findings informed the expanded design space, which the paper structures around five lifecycle stages.
The OOPrompt Design Space
The design space covers the full lifecycle of a prompt object:
Create. How does a user compose a new prompt object? Issues include whether properties are pre-defined or user-defined, whether the system suggests property values, and how to handle the blank-canvas problem for new users.
Reuse. How does a user leverage existing prompt objects for new tasks? This covers templates, inheritance, and the balance between copying and customizing. It also covers the tension between reusing proven structures and adapting to new contexts.
Edit. How does a user modify an existing prompt object? This is where OOPrompt shines relative to flat strings. Editing a property means changing one field, not rewriting a paragraph. But it introduces new questions about property granularity and dependency between properties.
Deploy. How does a prompt object get assembled and sent to the model? This covers how properties combine into a final prompt string, whether the assembly is visible to the user, and how to handle conflicting properties.
Evaluate. How does a user assess whether a prompt object is working well? This covers evaluating individual properties versus the whole prompt, comparing outputs across configurations, and tracking iteration history.
The Validation Study: 8 Participants, 3 Scenarios
After the formative study, the researchers built a full OOPrompt prototype and conducted a validation study with 8 returning participants from the original 20. These participants went through three in-depth scenarios:
- Reporting technical results to diverse audiences (same content, different reader profiles)
- Planning a group trip event (multiple constraints, trade-offs)
- Debating with varying opinions (shifting perspective, same topic)
Each scenario required the kind of multi-faceted intent that OOPrompt is designed for. The same core intent needed to be expressed differently across sub-tasks.
The findings split into added values and trade-offs.
Added values:
- Planning and iterative writing became faster and clearer. Participants could adjust a single property and regenerate, rather than editing a monolithic text block.
- Ambiguous, exploratory tasks benefited most. When participants were unsure what they wanted, the property structure helped them think through their intent.
- The object model made intent more explicit. Participants reported that naming properties forced them to articulate what they actually wanted.
Trade-offs:
- Opinion-forming reasoning suffered. When the task required developing an argument through the writing process itself, the structured approach felt constraining. The properties assumed you knew your intent upfront.
- Extra steps added latency. Setting properties, choosing values, and configuring metadata takes longer than typing a paragraph. For simple tasks, this overhead was not worth it.
- Chat continuity was disrupted. The object model introduced a mode switch between configuring the prompt and conversing with the model. Participants felt the back-and-forth interrupted the flow.
- More automation was needed. Participants wanted the system to auto-populate properties, suggest values, and learn from their patterns. The current prototype required too much manual configuration.
How OOPrompt Relates to What You Already Know
OOPrompt does not exist in a vacuum. It connects to several trends in the prompt engineering space.
LangGPT. The closest prior work. LangGPT proposes treating prompts as a programming language with a dual-layer framework of modules and elements. OOPrompt builds on this foundation but goes further by formalizing the interaction paradigm, adding the four OOP pillars, and validating through user studies. LangGPT is a conceptual framework. OOPrompt is an interaction paradigm backed by empirical research.
Microsoft PromptKit. PromptKit treats prompts as version-controlled composable artifacts with 157 components. This is the prompts-as-code philosophy made concrete. OOPrompt provides the theoretical foundation that explains why PromptKit's approach works: prompts are objects with properties, and those properties should be manageable, versionable, and composable.
Context engineering. The shift from prompt engineering to context engineering recognizes that the information environment around a prompt matters as much as the prompt itself. OOPrompt's property model aligns with this. Each property is a distinct piece of context that can be independently managed.
Agent skills and progressive disclosure. The three-level hierarchy of metadata, instructions, and on-demand resources that defines modern agent skill systems is an instance of OOPrompt's recursive decomposition. The metadata layer is the prompt object's interface. The instructions are its methods. The resources are its lazy-loaded properties.
OpenAI Symphony's WORKFLOW.md. The YAML+Liquid templates that define agent instructions, policies, and tool permissions per task type are prompt objects in disguise. Each workflow is a prompt object with typed properties for different task configurations.
OOPrompt gives all of these implementations a shared vocabulary and a theoretical grounding. They are all doing the same thing: reifying intent into structured artifacts. OOPrompt just names it.
What OOPrompt Means in Practice
If you build LLM-powered products, the implications are concrete.
Stop thinking in text boxes. The single prompt box is the command line of AI interaction. It works for experts who know exactly what they want. It fails for everyone else. OOPrompt argues that the prompt box should be replaced by a property editor where users set structured, named attributes instead of typing free-form text.
Design for property-level editing. When users want to change the tone of an output, they should not have to rewrite the entire prompt. They should toggle a "tone" property. This is already how the best AI writing tools work under the hood. OOPrompt argues it should be the universal paradigm.
Build for reuse and inheritance. Most prompt usage is derivative. You write a marketing email prompt, then you write another one that is 80% the same. OOPrompt's inheritance model gives you a mechanism for this. Create a base prompt, derive variants, override specific properties. This is more principled than copy-paste-edit.
Accept the trade-offs. OOPrompt is not a panacea. The validation study showed clear weaknesses. Structured prompting adds overhead. It disrupts conversational flow. It assumes users can articulate their intent as discrete properties, which is not always true. For quick, simple, or highly exploratory interactions, a flat prompt box may still be the right interface.
The real opportunity is in the middle. Where OOPrompt shines is the vast middle ground of LLM interactions: tasks that are complex enough to benefit from structure, but common enough to warrant templating. Marketing copy, technical documentation, customer support responses, data analysis queries. These are the use cases where prompt-as-object beats prompt-as-string.
The Bigger Picture
OOPrompt is part of a broader shift in how we think about human-AI interaction. The first generation of LLM interfaces defaulted to the text box because it was simple and universal. But the text box is a leaky abstraction. It forces users to compress rich, structured intent into a linear stream of tokens, then hope the model decompresses it correctly.
The second generation is building better abstractions. OOPrompt provides the theoretical framework: intent is an object, not a string. Properties are editable, not monolithic. Prompts compose through inheritance, not copy-paste. Iteration targets specific properties, not the whole prompt.
The paper is not claiming that every interaction should use OOPrompt. The validation study makes the limitations clear. But it is claiming that the prompt-as-string default is wrong for most real-world tasks, and it provides a principled alternative grounded in a well-established programming paradigm.
For a field that has been operating on craft knowledge and trial-and-error, that kind of formalization matters.
Suggested Title
Prompts Are Not Strings: What OOPrompt Gets Right About Structured AI Interaction
Citations
- Xu, T., Ma, D., & Chen, X. (2026). OOPrompt: Reifying Intents into Structured Artifacts for Modular and Iterative Prompting. arXiv:2604.19114. Accepted to EICS 2026. https://arxiv.org/abs/2604.19114
- Wang, M., et al. (2024). LangGPT: Rethinking Structured Reusable Prompt Design Framework for LLMs from the Programming Language. arXiv:2402.16929. https://arxiv.org/abs/2402.16929
- Riche, N., et al. (2025). AI-Instruments: Embodying Prompts as Instruments to Abstract & Reflect Graphical Interface Commands as General-Purpose Tools. arXiv:2502.18736.
- Suh, S., et al. (2024). Luminate: Structured Generation and Exploration of Design Variations. ACM CHI 2024.
- Drosos, I., et al. (2024). Dynamic Prompt Middleware.
- Kim, H., et al. (2023). Cells, Generators, and Lenses: Designing Interactive System for Prompt-Based Creative Work. ACM CHI 2023.
- Shneiderman, B. (1983). Direct Manipulation: A Step Beyond Programming Languages. ACM SIGCHI Bulletin.
- Booch, G., et al. (2007). Object-Oriented Analysis and Design with Applications. Addison-Wesley.
Word Count
2,050
Fact-Check Notes
- Validation study size: The abstract mentions 20 participants for the formative study. The paper text mentions 8 returning participants for the validation study (from the same pool). I used both numbers. Verify the exact validation study count from the full paper if possible. The HTML version was truncated and I could not access the validation study section in full detail.
- OOP-to-OOPrompt mapping: The four pillars (Encapsulation, Abstraction, Inheritance, Polymorphism) are explicitly referenced in the paper. The specific mappings I described (encapsulation = properties, inheritance = template derivation, polymorphism = context-dependent rendering) are my interpretations of Table 1. The paper may have slightly different formulations. Verify against the actual Table 1 if needed.
- EICS 2026 acceptance: The arXiv page confirms "To appear in EICS 2026." This is a legitimate venue (ACM SIGCHI Symposium on Engineering Interactive Computing Systems).
- LangGPT description: Based on the OOPrompt paper's description and the LangGPT paper (arXiv:2402.16929). LangGPT proposes modules/elements as classes/methods, a dual-layer framework. The OOPrompt paper explicitly positions itself as extending LangGPT's conceptual foundation.
- Task scenarios in validation study: The three scenarios (reporting technical results, planning a group trip, debating with varying opinions) are described in the paper's introduction. I used these directly.
- Design space stages: The paper describes five lifecycle stages (create, reuse, edit, deploy, evaluate). I confirmed this from the paper text. The initial design space had six stages based on literature analysis, later refined to five. I used the final five.