LLM Application Paradigm: From Chatbots to Agentic Workflows

    This article explains why a question-and-answer interface alone underuses large language models, and how agentic workflows, retrieval-augmented generation (RAG) over private knowledge bases, and isolated temporary sessions address the engineering gaps that matter in production: process orchestration, knowledge access, and traceable results. It covers the difference between prompt templates and executable workflows, three key workflow capabilities, a reusable node design example, two typical knowledge base integration paths, citation structures, governance rules for temporary sessions, and practical recommendations with common pitfalls.

    1. Background: Why “Q&A Only” Wastes LLM Capability

    When many teams evaluate large language models, they assume the only interaction mode is “input a question, get text back.” This uses the model’s language understanding and generation ability but ignores three things that engineering deployment depends on most: process orchestration, knowledge access, and result traceability. As an application moves from individual experimentation to business production, the real bottleneck is usually not the model itself, but how to embed the model into reusable processes, how to let it read the company’s own material, and how to make every output justifiable.

    This article abstracts three general capabilities: no-code agentic workflows, combining a private knowledge base with model inference (retrieval-augmented generation), and the isolation and governance value of temporary sessions. These capabilities are not unique to any single vendor; they are common technical paths for building LLM applications across the industry.

    2. From Chat Window to Executable Program: What Agentic Workflows Really Are

    2.1 How the Two Forms Differ

    A chat window with preset instructions is essentially a “prompt template plus a single inference”: one question, one answer, no retained state, and no internal side effects. A workflow-style agent is a runnable program entity: after receiving input, it performs UI rendering, logic processing, and result output, with clear execution semantics.

    The test is simple: if an application can only return text, it is a prompt; if it can orchestrate multiple steps, call models of different modalities, produce structured pages, and support user interaction, it is a workflow.

    2.2 Three Key Characteristics

    • Visual interface generation: a flow-driven engine renders a dedicated interface containing buttons, input fields, and card lists. A recipe application, for example, can output ingredient list cards and portion adjustment controls instead of a block of mixed text.
    • Multi-model chaining: within a single request, a language model, an image generation model, and a video generation model can be called in sequence, forming a complete “understand, generate, validate” chain.
    • No-code automatic decomposition: the user describes a goal in natural language, and the system automatically breaks it into nodes such as “fetch data, sentiment analysis, summarize key points, format layout.”

    2.3 A Reusable Node Design Example

    Take a book recommendation workflow. The nodes can be abstracted as: describe a book, generate a recommendation list, generate an interpretation, generate access links, render the recommendation page. The configuration can be expressed as the following pseudocode:

    1. workflow: book_recs
    2. nodes:
    3. - id: describe
    4. type: llm
    5. input: "${user_topic}"
    6. prompt: "Summarize the topic and reader profile"
    7. - id: recommend
    8. type: llm
    9. input: "${describe.output}"
    10. schema: "list<Book{title,summary,reason}>"
    11. - id: interpret
    12. type: llm
    13. input: "${recommend.output}"
    14. - id: links
    15. type: tool
    16. action: "build_reference_links"
    17. - id: render
    18. type: ui
    19. template: "card_list"
    20. output: "${render.page}"

    The engineering point is that nodes pass data only through explicit structures (using a unified JSON Schema is recommended), failed nodes need a fallback branch, and the rendering layer is decoupled from the inference layer so the model can be swapped without changing the interface.

    3. Connecting a Private Knowledge Base: Answers with Evidence

    3.1 The Basic Structure of Retrieval-Augmented Generation

    Using private notes, papers, and project documents as context is the industry-recognized retrieval-augmented generation (RAG) approach: documents are chunked and vectorized into a vector store; when a user asks a question, a similarity search runs first, then the matched fragments and the question are handed to the model to generate an answer. Compared with fine-tuning, it has lower update cost and stronger explainability, making it better suited to scenarios where knowledge changes frequently.

    3.2 Two Typical Integration Paths

    • Session-level reference: when starting a new conversation, select knowledge sources through the attachment entry; multiple documents can be attached at once, which suits one-off topic analysis.
    • Application-level binding: when creating a custom agent, attach the knowledge base in the “Knowledge” configuration area, so all conversations of that application carry the enterprise corpus by default, which suits a long-term, fixed business assistant.

    3.3 Engineering Traceable Sources

    A high-quality implementation returns citations alongside the answer (document name and section location). A sample structure:

    1. {
    2. "answer": "...",
    3. "citations": [
    4. {"doc": "note_03", "section": "2.1", "score": 0.87}
    5. ]
    6. }

    On platforms such as Baidu AI Cloud, this can be implemented with object storage holding the original documents, a vector retrieval service handling recall, and logging plus monitoring and alerting services handling quality observation, forming a closed loop.

    4. Temporary Sessions: Isolation, Cost, and Governance

    Temporary sessions are often misunderstood as “ordinary chats without history.” Their real value is state isolation: nothing is written to long-term memory and the main conversation context is not polluted, which suits trial calculations on sensitive data, comparing options, and one-off batch processing. For governance, three rules are recommended: temporary sessions do not persist to disk by default, sensitive fields are masked first, and batch jobs get call quotas and timeouts to avoid runaway cost.

    5. Implementation Advice and Common Pitfalls

    1. Process first, model second: map the business steps clearly, then decide which model each step uses, avoiding a “one giant prompt per step” design.
    2. Structure first: constrain all intermediate outputs with a schema, which significantly reduces downstream parsing failures.
    3. Build observability in: record node latency, recall hit rate, and human adoption rate, and iterate based on data.
    4. Pitfall reminder: do not treat the knowledge base as an all-purpose memory; when retrieval finds nothing, explicitly reply that there is no evidence rather than letting the model improvise.

    In summary, the competitiveness of LLM applications has shifted from “single-turn answer quality” to “process orchestration capability + knowledge access quality + result verifiability.” Mastering these three is what lets you build stable, maintainable intelligent applications on your own technology stack.