Menu
InfoQ Architecture·May 13, 2026

Orchestrating AI Agents for Legacy Application Integration with AWS WorkSpaces

AWS WorkSpaces now enables AI agents to interact with legacy desktop applications lacking APIs, leveraging computer vision and input simulation. This approach bypasses costly modernization efforts, allowing AI to automate workflows within existing enterprise software by emulating human interaction. The architecture relies on isolated virtual desktop instances, IAM for agent authentication, and comprehensive audit trails, offering a practical solution for regulated industries.

Read original on InfoQ Architecture

The Challenge of Integrating AI with Legacy Systems

Many organizations, especially in regulated industries, rely heavily on legacy desktop applications that lack modern APIs. Integrating AI agents into these systems typically requires expensive and time-consuming modernization projects. AWS WorkSpaces addresses this by providing a mechanism for AI agents to interact with these applications through their user interfaces, effectively treating the agent as a virtual human user.

Architectural Approach: AI Agents as Virtual Desktop Users

The core idea is to provision an isolated AWS WorkSpaces instance for each AI agent. The agent authenticates via IAM, connects to the virtual desktop using a pre-signed URL, and then interacts with applications using computer vision (to interpret the screen) and simulated input (clicks, typing, scrolling). This allows the agent to automate workflows without any modification to the underlying legacy application.

ℹ️

Key Components for AI Agent Integration

1. AWS WorkSpaces: Managed virtual desktops providing an isolated environment. 2. IAM: Secure authentication and authorization for AI agents. 3. Computer Vision: Agents "see" the application UI through screenshots. 4. Input Simulation: Agents "operate" the application through virtual mouse and keyboard events. 5. MCP Endpoint: A managed endpoint for agent frameworks (e.g., LangChain, CrewAI) to connect to WorkSpaces.

Security, Observability, and Cost Considerations

The security model inherits existing WorkSpaces controls, with agents running in isolated instances. CloudTrail provides audit trails, and CloudWatch offers observability. AWS recommends unique IAM identities per agent for granular activity tracking. While vision-based agents can be significantly more expensive in terms of token consumption compared to API-based interactions, this cost is often justified when weighed against multi-year modernization projects. The ephemeral nature of cloud desktops helps manage costs by spinning up instances only when needed.

FeatureDescriptionSystem Design Impact
AWS WorkSpacesAI AgentsLegacy SystemsIntegrationComputer VisionAutomationVirtual DesktopsNo-Code Integration

Comments

Loading comments...