hasmokan
Back to posts

June 12, 2026

Prompt Is Also Interface Design

Looking at prompts as product surfaces through Deep Research's input and report workflow.

In a research-oriented AI app such as Deep Research, a prompt is not just a hidden string on the backend. It is part of the product interface.

The user’s research question, the way the system decomposes work, the structure of the generated report, and the source citation rules are all shaped by prompts. If the prompt is unstable, the frontend can be clear and polished, but the output will still feel unreliable.

Prompt as Product Boundary

I prefer to think of prompts as interface contracts:

  • the input should make the user’s research intent explicit;
  • the output should be constrained into a readable and reusable structure;
  • unknowns should be exposed as uncertainty instead of guessed away;
  • sources and conclusions should stay connected;
  • failure states should be designed instead of reduced to “please try again.”

This is close to traditional UI design. Buttons, forms, empty states, and error messages all define the relationship between a user and a system. Prompts do the same thing, except the boundary is between human intent and model behavior.

Specific Problems in a Research Workflow

Deep Research’s backend has to coordinate model calls, search tools, state flow, and persisted data. Prompt design here cannot optimize for a single response. It has to fit into the full workflow:

  1. The search stage should produce useful queries, not premature conclusions.
  2. The analysis stage should separate facts, inferences, and missing evidence.
  3. The report stage should keep structure stable enough for the frontend to render.
  4. If the material is insufficient, the model should show the gap instead of fabricating a complete answer.

Prompt engineering is not about making wording clever. It is about turning the most unstable layer of an AI system into a maintainable product boundary.

在 Deep Research 这种研究型 AI 应用里,prompt 不是藏在后端的一段神秘文本。它其实是产品界面的一部分。

用户输入的研究问题、系统拆解任务的方式、报告生成的结构、来源引用的规则,这些都会被 prompt 影响。只要 prompt 没有设计好,前端做得再清楚,最后输出也会变得不稳定。

Prompt 的产品边界

我现在更倾向于把 prompt 当成 interface contract 来看:

  • 输入需要说明用户真正想研究什么;
  • 输出需要约束成可读、可引用、可继续处理的结构;
  • 模型不知道的内容必须显式暴露不确定性;
  • 来源和结论之间要保留连接;
  • 失败状态不能只用“请重试”糊过去。

这和传统 UI 设计很像。按钮、表单、空状态、错误提示都在约束用户和系统之间的关系;prompt 也是一样,只是它约束的是人类意图和模型行为之间的关系。

在研究工作流里的具体问题

Deep Research 的后端需要组织模型调用、搜索工具、状态流和持久化数据。这里 prompt 的设计不能只看单轮回答质量,还要看它能不能稳定地嵌入流程:

  1. 搜索阶段需要产生适合检索的 query,而不是直接写结论。
  2. 分析阶段需要区分事实、推断和缺口。
  3. 报告阶段需要控制结构,方便前端阅读。
  4. 如果资料不足,模型应该说明缺口,而不是补一个看起来完整的答案。

所以 prompt engineering 不是“把话术写得更聪明”,而是把 AI 系统里最不稳定的一层做成可维护的产品边界。