The Evolution of LLM Application Patterns: From Chat to Executable Workflows

    This article examines how large language model applications are moving beyond the chat window toward executable workflows. It breaks the shift into four capabilities: no-code micro-applications defined as declarative configuration, schema-constrained visual UI generation, multi-model orchestration into pipelines, and private knowledge base integration through retrieval-augmented generation. It also covers the combined effect of these capabilities and a practical implementation path for developers, including versioning, evaluation sets, tracing, and upfront permission design.

    1. Background: Why “Being Able to Chat” Is Not “Being Able to Work”

    Over the past two years, LLM adoption has been concentrated in one pattern: the chat box. The user asks, the model answers. This pattern has an obvious advantage — the barrier to entry is extremely low — but its capability boundary is locked to single-turn text generation. It cannot proactively fetch external data, cannot maintain state across a multi-step task, and cannot turn results into a reusable interface or workflow. For developers and enterprise users, the real requirement has never been “a better piece of text” but “a task that actually gets done.”

    The direction of technical evolution is therefore becoming clear: upgrade the LLM from an answerer to an executor. In engineering terms, this upgrade spans at least four layers: the application pattern shifts from prompt templates to runnable entities; the interaction pattern shifts from plain text to visual interfaces; capability organization shifts from single-model calls to multi-model orchestration; and the knowledge source shifts from public corpora to private knowledge bases. Each is covered below.

    2. Capability 1: From Prompt Templates to Runnable No-Code Micro-Applications

    The traditional approach is to save a preset instruction and produce a “role-based assistant.” Its essence is a chat window with parameters, its behavior is “ask and it answers,” and it has no internal state or execution stages.

    The more advanced pattern defines the application as a runnable program entity: after receiving input, it completes three stages in sequence — UI rendering, logic processing, and result output. The difference between the two can be summarized as follows:

    Dimension Prompt Template Pattern Executable Micro-Application Pattern
    Essence Instruction set Program entity
    State Essentially stateless Has stages and intermediate artifacts
    Output Plain text Structured UI + data
    Reuse Copy the prompt Publish as a standalone entry point

    In engineering terms, this means the application definition must be serialized into a version-controllable description file (a declarative configuration) rather than scattered across chat history as natural language. A schematic structure looks like this:

    1. app:
    2. name: content-review-assistant
    3. input: [text, file]
    4. workflow:
    5. - id: fetch
    6. type: data_retrieval
    7. - id: analyze
    8. type: sentiment_analysis
    9. - id: summarize
    10. type: summarization
    11. - id: render
    12. type: ui_render
    13. output: { type: card_list }

    This declarative definition yields three direct benefits: it is reviewable (the structure is readable), testable (each node can be validated on its own), and rollback-friendly (versions can be switched).

    3. Capability 2: Visual Interface Generation That Makes Output Actionable

    The biggest problem with plain text output is that it is not actionable. After receiving a list, the user still has to copy, organize, and compute manually. Visual interface generation addresses this “last mile”: the model produces not only data but also the interface structure that carries the data — for example, a dedicated interface containing buttons, input fields, and list cards.

    Take a content recommendation application. The ideal output is not a block of enumerated text but a set of cards, each containing a title, a summary, a recommendation reason, and an action button. The underlying data structure can be abstracted as:

    1. {
    2. "card": {
    3. "title": "string",
    4. "summary": "string",
    5. "reason": "string",
    6. "actions": [{ "label": "View details", "target": "detail_page" }]
    7. }
    8. }

    The key engineering constraint here is that interface generation must be schema-constrained. If the model is allowed to generate markup entirely freely, the results become unstable and hard to validate. In practice, you first define an interface schema, then let the model fill content within that schema, and finally have the rendering layer validate and provide fallbacks. This preserves flexibility while guaranteeing predictability.

    4. Capability 3: Chaining Multiple Models into a Pipeline

    A single model rarely handles heterogeneous tasks such as retrieval, generation, visual understanding, and video generation equally well. A more reasonable approach is to encapsulate each capability as a node and chain them through a workflow into a complete path.

    A typical book recommendation path can be split into six nodes: describe the input subject → generate candidate recommendations → generate content summaries → generate interpretive commentary → generate navigation links → render the recommendation page. The orchestration logic in pseudocode:

    1. flow = Workflow([
    2. Node("describe", model="text"),
    3. Node("recommend", model="text", depends_on=["describe"]),
    4. Node("summarize", model="text", depends_on=["recommend"]),
    5. Node("interpret", model="text", depends_on=["summarize"]),
    6. Node("link", type="template", depends_on=["recommend"]),
    7. Node("render", type="ui", depends_on=["summarize", "interpret", "link"]),
    8. ])
    9. result = flow.run(input="Recommend some books on artificial intelligence")

    Four points matter in orchestration design. First, dependencies must form a directed acyclic graph to avoid cycles. Second, nodes should pass structured data to one another rather than concatenated strings, which reduces information loss. Third, each node needs timeout and retry policies so a single failure does not take down the whole path. Fourth, intermediate artifacts should be retained to make it easier to locate the failing node. As the path grows longer, observability determines success more than the model capability itself.

    5. Capability 4: Connecting a Private Knowledge Base So Answers Have Sources

    LLM knowledge comes from public corpora and by nature does not include a company’s internal notes, papers, and project documents. Combining LLM reasoning with a private knowledge base is the mainstream way to address hallucination and staleness, and the common implementation is retrieval-augmented generation (RAG): retrieve relevant passages first, then have the model answer based on those passages and return citation locations.

    There are typically two ways to connect it in engineering. One is to attach knowledge sources at the session layer, selecting multiple documents as context when creating a conversation. The other is to configure a knowledge section at the application layer, binding a knowledge base as a long-term dependency of the application. The former suits temporary exploration; the latter suits stable, reusable business applications.

    Verifiability is the greatest value of this mechanism. An ideal output contains two parts: the answer body and the source location.

    1. {
    2. "answer": "... a synthesized conclusion based on the sources ...",
    3. "citations": [
    4. { "doc": "note_03", "section": "2.1", "quote": "..." }
    5. ]
    6. }

    Three practices are recommended in implementation: keep chunk granularity at the smallest semantically complete unit so answers are not truncated; evaluate retrieval and generation separately, measuring recall quality and answer faithfulness respectively; and enforce citation validation, so conclusions without a source are flagged as low confidence.

    6. Combined Effect and Implementation Recommendations

    The four capabilities are not isolated: no-code micro-applications provide the carrier, visual interfaces provide interaction, multi-model orchestration provides capability organization, and the private knowledge base provides factual grounding. Layered together, the application pattern changes from a “toy” into a deliverable business component.

    The recommended implementation path for developers:

    1. Close the loop on a narrow scenario first. Pick one high-frequency, single-path task and get it working end to end; do not branch out widely at the start.
    2. Bring the application definition, interface schemas, and knowledge chunks all under version control and into the code review process.
    3. Build an evaluation set and regress output quality against fixed inputs, so prompt changes do not cause hidden degradation.
    4. Improve logging and tracing: record each node’s input, output, and latency to form a path view that can be traced to a specific node.
    5. Design permissions and data boundaries upfront. Access control for the private knowledge base should be solved at the access layer, not left to the model’s discretion.

    In related practice at Baidu AI Cloud, this kind of architecture typically maps onto a combination of general-purpose capabilities: a container platform hosts the application runtime, object storage holds knowledge chunks and intermediate artifacts, a message queue decouples nodes in long paths, and logging plus monitoring and alerting services ensure observability. The core conclusion is a single sentence: the value of an LLM lies not in how well it answers, but in whether it can be organized into an execution flow that is controllable, traceable, and reusable.