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

    This article examines how large language model applications are moving beyond the single chat window toward executable workflows. It explains the three structural limits of conversational interfaces — non-reusable prompts, lack of developer control, and unverifiable answers — and details four capabilities that address them: no-code micro apps that render real interfaces and chain multiple models, private knowledge bases combined with retrieval-augmented generation and citation tracing, temporary sessions for context isolation, and the engineering constraints of determinism, evaluation, cost, and observability required for production. Developers will find workflow definitions, RAG pipeline code, and practical guidance for turning experimental LLM features into stable production systems.

    1. Background: The Capability Ceiling of Conversational Interfaces

    For the past two years, the typical LLM application has been an input box followed by a response. That pattern is efficient enough for knowledge Q&A and text rewriting. But as soon as a task involves multiple steps, requires generation across different modalities, or needs to reference a user’s own documents, a single chat window exposes three structural weaknesses.

    The first is that it is not reusable. Users restate the requirement and re-paste background material every time, and prompts end up scattered across personal chat history instead of accumulating as team assets. The second is that it is not controllable. What the model outputs, in what order, and whether it touches external data along the way are all decided by a single inference pass, leaving developers no place to insert validation, branching logic, or format constraints. The third is that it is not verifiable. Answers carry no citations, so users cannot tell whether a conclusion came from public corpora or from their own documents — a fatal gap in heavily regulated business contexts.

    The new generation of LLM application patterns closes these three gaps through engineering: upgrading “a single Q&A turn” into “an executable workflow,” upgrading “a prompt” into “attachable knowledge and tools,” and upgrading “text output” into “result delivery with an interface.” Four capabilities form the backbone of that upgrade.

    2. Capability 1: From Chat Window to Runnable Micro App

    A preset role in the traditional sense — commonly called a persona or a system prompt template — is essentially an instruction with placeholders. The user asks, the model answers, and the interaction loop ends at text. An experimental no-code micro app of the newer generation extends that loop into a genuine program entity: once it receives input, it runs through three stages — interface rendering, logic processing, and result output.

    The difference can be expressed directly in pseudocode:

    1. # Pattern A: preset-instruction chat
    2. response = model(system_prompt=PRESET, user_input=query)
    3. # Pattern B: executable micro app
    4. state = init(inputs=query)
    5. for node in workflow:
    6. state = node.run(state) # may call the model, retrieval, external data
    7. ui = render(template, state) # emits a structured UI, not plain text
    8. return ui

    Pattern B adds three advanced characteristics.

    Visual interface generation. The app can produce a dedicated interface containing buttons, input fields, card lists, and similar elements. Take a recipe app: instead of a paragraph of text saying “here are the ingredients you need,” the output is a checkable ingredient card the user can interact with by clicking. Underneath is the general approach of “generate an interface description with the model, let the runtime interpret and render it,” which shares its roots with the declarative UI generation schemes common in the industry.

    Chaining multiple models. A single workflow can call a language model, an image generation model, and a video generation model in parallel or in sequence. The language model handles intent understanding and copywriting, while the image and video models supply the assets, forming a complete production chain. What matters in engineering is the data contract between modalities: structured fields emitted upstream must be parsed reliably downstream, so passing JSON between nodes rather than natural language is the safer choice.

    No-code workflow automation. The user describes a goal in natural language and the system decomposes it into executable steps. For example, “gather recent industry updates and produce a weekly report” splits into four nodes: data retrieval, sentiment and key-point analysis, summarization, and formatting. The decomposition result should be editable — this is what separates a no-code platform from a toy and makes it a production tool: automatic generation lowers the barrier, while manual tuning guarantees determinism.

    A minimal viable recommendation app typically has a workflow like this:

    1. {
    2. "app": "content-recommend",
    3. "nodes": [
    4. {"id": "n1", "type": "input", "field": "topic"},
    5. {"id": "n2", "type": "retrieve","source": "web|kb", "top_k": 5},
    6. {"id": "n3", "type": "llm", "task": "rank_and_summarize"},
    7. {"id": "n4", "type": "link", "task": "build_action_url"},
    8. {"id": "n5", "type": "render", "template": "card_list"}
    9. ],
    10. "edges": [["n1","n2"],["n2","n3"],["n3","n4"],["n4","n5"]]
    11. }

    Given a topic, the app retrieves several candidates, generates a summary and a recommendation reason for each, fills in the destination links, and finally presents everything as a card list. Compared with a one-off question, its value lies in every step being observable, replaceable, and testable.

    3. Capability 2: Combining a Private Knowledge Base with Reasoning

    Connecting an LLM to private notes, papers, and project documents is essentially retrieval-augmented generation (RAG) packaged at the product layer. There are two typical ways to connect: in a new conversation, select knowledge base sources through the attachment entry, where multiple selections let several notes serve as context at once; or, when creating a custom app, attach one or more knowledge bases in the knowledge configuration area.

    What really determines the experience is not whether an attachment is possible but citation tracing. A high-quality implementation annotates which document and which fragment each conclusion came from, so users can verify claims one by one. The implementation usually has four steps:

    1. chunks = split(docs, size=800, overlap=100) # 1. chunk
    2. index = build_index(chunks) # 2. index
    3. hits = index.search(query, top_k=6) # 3. retrieve
    4. answer = llm(prompt(query, hits), refs=hits) # 4. generate and return citations

    Engineering effort concentrates in three places. Chunking should follow semantic boundaries rather than a fixed character count, so tables and headings are not cut apart. Retrieval needs to be hybrid: vector similarity handles semantic matching, keyword search handles exact matching of proper nouns and identifiers, and the two result sets are then fused and reranked. In the generation stage the model must be constrained to “answer only from the given fragments” and must state clearly that evidence is insufficient when the fragments do not cover the question — otherwise the citation labels are meaningless.

    Enterprise deployment also needs permissions and lifecycle management: the visibility scope of a knowledge base should match the organizational structure, indexes should be rebuilt incrementally after documents change, and sensitive documents should be masked or trimmed at the field level before being concatenated into a prompt. Using general-purpose cloud capabilities typically involves object storage for the original documents, a message queue to drive asynchronous indexing, and logging plus monitoring with alerting to track retrieval quality and failure rates.

    4. Capability 3: Temporary Sessions and Context Isolation

    Session isolation is easy to overlook but has a significant impact. A temporary session is a conversation mode that is not written to long-term history and does not participate in personalized context. It fits three scenarios: handling sensitive information, such as pasting an unmasked log fragment; side-by-side comparison testing, where historical preferences would otherwise skew model behavior; and cost and capacity control, since a long history continuously occupies the context window, raising the cost per call and diluting the weight of key information.

    The rule for deciding can be reduced to one question: once the session ends, is there any state worth keeping? If yes, use a regular session and let the knowledge base accumulate it; if no, use a temporary session. In practice, teams should keep prompts, evaluation samples, and output templates in the knowledge base or app configuration and treat temporary sessions purely as a one-off test bench. With a clear division of labor, assets do not leak away.

    5. Capability 4: Engineering Constraints in Production

    For these capabilities to reach production, four questions need answers.

    Determinism. Any node that touches amounts, identifiers, or permission decisions should be handled by deterministic code or a rules engine, with the model limited to summarizing and phrasing, so probabilistic output never enters the critical path.

    Evaluation. Prepare a fixed input set and scoring dimensions for each app — accuracy, citation hit rate, format compliance, latency — and run the same cases before and after each version iteration to catch regressions caused by small prompt tweaks.

    Cost. Chaining multiple models stacks up call charges, so cache results for high-frequency nodes, pre-generate a summary layer for long documents, and cap the number of nodes and tokens per session.

    Observability. Log a summary of each node’s input and output, its elapsed time, and the failure reason, then pair that with monitoring and alerting to tell whether retrieval returned nothing or generation ignored the required format.

    6. Conclusion

    The direction of LLM application evolution is now clear: workflows carry determinism, knowledge bases carry private facts, citation tracing carries credibility, and session isolation carries security and cost control. For developers, what needs to be built is not a longer prompt but an application skeleton that can be orchestrated, can attach knowledge, and produces verifiable output. Baidu AI Cloud continues to invest in general-purpose LLM platforms and knowledge base retrieval, and can provide standardized engineering support for the architecture described above, helping teams move experimental capabilities steadily into production.