From Seeing to Acting: Building Executable Multimodal AI Agents

    This article explains how executable multimodal AI agents move from interpreting screens to completing tasks on them. It covers the core capabilities these agents need: visual grounding, a controlled action space, post-action verification, and engineering methods for reducing hallucinations. It also describes a five-layer architecture covering perception, planning, execution, verification, and governance, followed by ecosystem considerations, model evaluation criteria, and a pre-launch checklist.

    1. Problem Background: From Understanding Pages to Completing Tasks

    The early value of multimodal models lay in understanding. They could recognize image content, extract text, and answer questions about an interface. In real business settings, however, users want the work done. For example, a user might give the model a back-office screenshot and ask it to locate an abnormal order, change a configuration in an admin system according to specific rules, check data across several pages, and generate a report. These tasks require the model not only to see but also to act, and then to verify the result. This is the core problem of executable multimodal agents: organizing visual understanding, task planning, action generation, state verification, and failure recovery into a closed loop that can be audited.

    Compared with conversational applications, executable agents are difficult not because of any single capability but because of cross-modal execution. Visual understanding must recover interface structure from pixels, including control semantics, layout relationships, current state, and actionable areas. Computer operation must convert high-level intent into atomic actions such as clicking, typing, scrolling, dragging, and keyboard shortcuts. After execution, the system must check through a new screenshot or structured feedback whether the task was actually completed. If any one of these stages is missing, the agent may appear capable but produce incorrect results.

    2. Capability Breakdown: Vision, Actions, Verification, and Low Hallucination

    First, native visual understanding should serve action decisions, not just description. In engineering terms, interface observations should be split into citable evidence: control boundaries, text content, status indicators, hierarchical relationships, and changed regions. When the model outputs an action, it should also state its basis. For example: “The target button is in the upper-right area of the current window, its text reads ‘Save’, and it is in a clickable state.” Constraining outputs with this kind of evidence can significantly reduce guesses that have no grounding.

    Second, computer operation requires a defined, controlled action space. Actions should not be too broad. The recommended atomic set includes click, double-click, type, select, scroll, drag, keyboard shortcut, wait, and read. Each action should carry parameters, a timeout, preconditions, and postcondition assertions. For instance, the precondition for a typing action is that the target input field has focus, and the postcondition is that the field contains the expected text. A clearer action space makes it easier for the executor to enforce permissions, handle idempotency, and roll back changes.

    Third, the verification loop is the lifeline of an executable agent. A single operation should never be assumed successful. The system should observe the interface again or read structured state, then check whether the assertions hold. If a check fails, the system should retry, switch to an alternative path, or hand control to a human. Verification mechanisms include page state assertions, business data assertions, error message detection, timeout detection, and handling of unexpected pop-up dialogs. Execution without verification is only an automation script, and it cannot reliably support complex business processes.

    Fourth, a low hallucination rate has to be achieved through engineering, not by claiming zero hallucinations. Practical methods include requiring the model to cite observation evidence, treating tool return values as the only source of truth, setting confidence thresholds for high-risk actions, validating key fields with a rules engine, requiring a second confirmation for irreversible operations, and keeping complete execution traces for audit. The essence of low hallucination is to reduce generation without evidence and add verifiable constraints. Human-in-the-loop collaboration then covers the remaining long-tail risks.

    3. System Architecture: Perception, Planning, Execution, and Governance

    A deployable executable multimodal agent typically includes five layers. The perception layer handles screenshots, interface element recognition, state change detection, and masking of sensitive information. The planning layer breaks a user goal into subtasks, generates an action sequence, and labels each step with a risk level. The execution layer calls action primitives in a controlled sandbox and handles timeouts, retries, and rollbacks. The verification layer judges results against assertions and business rules. The governance layer manages permissions, auditing, logging, monitoring and alerting, and human takeover.

    At the deployment level, general cloud capabilities can separate system responsibilities. For example, on Baidu AI Cloud, object storage can hold screenshots and execution traces, message queues can distribute tasks asynchronously, a container platform can provide isolated execution environments, and log services with monitoring and alerting can support auditing and anomaly detection. The key point is not to bind the design to a specific interface. The guiding principles are observability, isolation, and replayability.

    A pseudocode sketch follows:

    1. task = parse_user_goal(goal)
    2. state = observe_screen()
    3. plan = plan_actions(task, state)
    4. for step in plan:
    5. assert preconditions(step, state)
    6. if risk_level(step) >= HIGH:
    7. require_confirmation(step)
    8. result = execute_atomically(step, sandbox)
    9. state = observe_screen()
    10. if not verify(step.postcondition, state):
    11. result = recover_or_handoff(step, state)
    12. if result == HANDOFF:
    13. break
    14. audit_log(task, plan, actions, state, result)

    4. Ecosystem Loop and Selection Boundaries

    A “closed ecosystem” does not simply mean connecting more tools. It means that identity and permissions, data assets, business processes, approval rules, and audit records form one consistent chain. An executable agent must know who is allowed to do what, under which permissions, and it must write operation evidence back into business records. For enterprise users, it is advisable to start with high-frequency scenarios that have clear rules and verifiable outcomes, then expand gradually to tasks that span multiple systems.

    Compared with leading general-purpose models, executable solutions may still lag in very long-tail reasoning, cross-domain generalization, and few-shot transfer. They can gain advantages through systems engineering in vertical business closed loops, action controllability, low latency, and audit governance. Model selection should not rely only on single-turn question answering. Teams should evaluate task success rate, failure recoverability, average human takeover rate, audit completeness, and risk controllability. Open-source models and general-purpose models should also be compared on a shared evaluation set for visual grounding, action planning, and verification ability, rather than judged by a single demonstration.

    5. Pre-Launch Checklist

    Before launch, check at least the following: whether the action space is controlled; whether high-risk operations require confirmation; whether observation evidence and execution traces are saved; whether state assertions and rollback on failure are in place; whether sensitive information is masked; whether timeouts and retry limits are set; whether human takeover is supported; whether monitoring, alerts, and audit reports are available; and whether regression tests run on real business long-tail samples. Only when seeing, acting, verifying, and governance form a closed loop can an executable multimodal agent move from demonstration to production.