From Q&A to Execution: How AI Agents Take Over Office Tasks

    AI agents are evolving from systems that merely answer questions into systems that can execute multi-step office work. This article explains the evolution from conversational models to autonomous agents, the architecture behind tool-enabled execution, a contract translation workflow, and the engineering controls required for permissions, verification, observability, security, and human review.

    1. From “Ask and Answer” to “Delegate and Execute”

    For a long time, the primary form of large language model application was conversation. Users entered questions, and the model returned text. Writing copy, explaining concepts, and generating code snippets all showed clear value, but the model itself could not access a user’s file system or call business systems.

    For example, if a user wanted to find a contract in a local directory, extract its key clauses, generate a comparison document, and send it to a colleague, the entire process still required manual, step-by-step operations. The model could provide suggestions, but it could not complete the task.

    AI agents change this way of working. The user provides a goal, while the system breaks the goal into steps, selects tools, performs actions, checks the results, and adjusts the plan when something goes wrong. This shift can be summarized in three points:

    • Tasks are driven by goals.
    • Execution is handled by the system.
    • Results must be verifiable.

    2. Three Stages of Technical Evolution

    Stage 1: Conversational Models

    The input is text, and the output is text. The model’s capabilities are largely determined by its training data. Prompt design is the primary optimization method at this stage.

    Stage 2: Workflow-Based Agents

    Developers define the workflow in advance, with each node calling a specific tool—for example, reading a spreadsheet, calling an API, or sending a message.

    These workflows are stable and easy to audit. However, they can fail when they encounter situations outside the predefined process.

    Stage 3: Autonomous Agents

    An autonomous agent breaks down a complex goal at runtime, decides which tools to call, preserves task state across time, checks its own work, and corrects or retries actions when it detects errors.

    This stage delegates part of the workflow design to the model, which makes stronger constraints and controls necessary.

    These three stages do not replace one another. Mature systems typically place deterministic processes inside workflows and assign tasks that require open-ended judgment to the model.

    3. Why Agents Can Now Perform Real Work

    Three capabilities must mature together before agents can provide practical value.

    1. Multimodal perception
      Models can read images, scanned documents, and interface screenshots, as well as recognize table structures. Their inputs are no longer limited to plain text and can include the materials commonly used in office work.

    2. Tool calling
      Models can generate parameters according to structured descriptions, call interfaces for file operations, retrieval, calculations, and message delivery, and interpret the returned results.

    3. Reasoning and planning
      Models can break an ambiguous goal into ordered subtasks and change course when intermediate results do not meet expectations.

    Without any one of these capabilities, an agent may remain limited to a demonstration rather than becoming a reliable production system.

    4. The Basic Architecture of an AI Agent

    A deployable agent typically includes five modules:

    • Perception layer: Receives user instructions, reads files, database records, or interface states, and converts them into inputs the model can process.
    • Planning layer: Breaks the goal into subtasks, identifies dependencies, and defines expected outputs.
    • Tool layer: Encapsulates specific capabilities. Each tool should define its inputs, outputs, permission scope, and failure-handling behavior.
    • State and memory layer: Stores intermediate results, task progress, and user preferences, allowing interrupted tasks to resume.
    • Validation layer: Applies rule-based checks to outputs and, when necessary, routes them for human approval before allowing them to proceed.

    The following example illustrates an orchestration pattern for reading a file, preparing terminology, translating the content, and checking consistency. The function names are illustrative; the actual implementation depends on the framework and internal services being used.

    1. def run_translation_pipeline(task):
    2. source = tools.read_document(task.file_path)
    3. glossary = tools.load_glossary(task.glossary_id)
    4. protected = [t for t in source.terms if t in task.keep_original]
    5. draft = llm.translate(source.text, glossary=glossary, keep=protected)
    6. issues = tools.check_term_consistency(source.text, draft, glossary)
    7. if issues:
    8. draft = llm.revise(draft, issues) # Revise no more than twice
    9. issues = tools.check_term_consistency(source.text, draft, glossary)
    10. output = tools.build_bilingual_doc(source.text, draft, layout="two-column")
    11. return {"document": output, "unresolved": issues}

    Two aspects of this code are important.

    First, the glossary and protected terms are injected before the model call. The system does not depend on the model remembering them.

    Second, the number of revision attempts is capped. If issues remain unresolved, they are returned with the result for human review instead of being silently ignored.

    5. A Complete Workflow for Translation Delivery

    Consider the translation of a Chinese contract. The complete workflow includes the following steps:

    1. Instruction parsing: Identify the target language, glossary, proper nouns that must remain in the original language, and the required delivery format.
    2. File discovery and reading: Locate the target file in the specified directory, determine its format, and extract its body text and table content.
    3. Terminology preparation: Load the glossary, mark proper nouns, and establish mappings between source and target terms.
    4. Translation and proofreading: Translate paragraph by paragraph, preserve clause numbering and figures, and flag semantically sensitive sentences for review.
    5. Terminology consistency checking: Scan the full document to confirm that the same terms are translated consistently and list any deviations.
    6. Layout and generation: Generate a bilingual document while preserving paragraph alignment and numbering.
    7. Pre-delivery confirmation: Show the requester a summary and any unresolved issues, then send the document after receiving confirmation.

    Each step has clearly defined inputs and outputs. If a failure occurs, the system can identify and retry the relevant step instead of restarting the entire task.

    6. Engineering Considerations for Production

    Least-Privilege Permissions

    An agent should access only the directories and interfaces required for the task. Read, write, network access, and message-sending permissions should be granted separately, with the reason for each authorization recorded.

    Human Approval for Sensitive Operations

    Deleting files, sending external messages, changing permissions, and submitting changes should require explicit user approval. Before execution, the system should display the changes that are about to occur.

    Observability

    The system should log the input, tool-call parameters, returned results, and execution time for every step. Sensitive content in logs must be redacted, and keys or credentials must never appear in logs or prompts.

    Cost and Latency Control

    Multiple planning and revision rounds can increase the number of model calls. Each task should have limits on calls and execution time. Deterministic operations, such as format conversion and string comparison, should be handled by conventional programs rather than by the model.

    Evaluation Metrics

    Teams should track task completion rate, human edit rate, average execution time, and the distribution of error types. Judging an agent only by demonstrations can easily overestimate its reliability.

    7. Boundaries and Risks

    Agent output can still be wrong. For legal, financial, medical, and other high-risk content, the system should clearly indicate that professional review is required. The output should not be treated as a final conclusion without appropriate oversight.

    In multi-step tasks, a small deviation in an early step can be amplified by later steps. Critical stages therefore need explicit checkpoints.

    Data security also requires careful attention. Files may contain personal information or business secrets. Before processing begins, teams should confirm where the data is stored, how model calls are handled, and how long data is retained, while complying with the organization’s applicable requirements.

    8. Implementation Recommendations for Teams

    Start with tasks that are narrow, repetitive, and easy to verify, such as generating reports in a fixed format, checking terminology consistency, or organizing batches of files. Once the process is stable, expand to workflows that span multiple systems.

    Each stage should have measurable acceptance criteria, such as accuracy, hours saved, and the number of rework cycles required.

    The value of an AI agent lies in freeing people from repetitive operational steps. Judgment, review, and accountability should remain with people. The core design principle is to make every step inspectable and every execution traceable.