RPA Workflow
Zeus Desktop supports publishing recorded and parameterized browser workflows as standard MCP (JSON-RPC 2.0) tools, enabling AI Agents to drive browser-based business operations just like calling regular functions.Overview
Architecture
Design Principles
Publishing a Workflow as a Tool
Publishing Process
- Complete Recording: Record browser actions and save as a workflow
- Parameterize: Mark values that need dynamic injection as variables (see Recording - Parameterization)
- Publish Tool: Click the Publish Tool button in the workflow editor
- Configure Metadata:
- Tool Name (
toolName): Identifier used by the Agent when calling, e.g.query_power_data - Tool Description (
toolDescription): Tells the Agent what this tool does
- Tool Name (
- Confirm Publishing: The tool is immediately available after saving
Publish Dialog
The publish dialog automatically extracts all parameterized actions from the workflow and generates a tool parameter list:Generated Tool Definition
After publishing, the system automatically generates an MCP-compliant tool definition:Agent Invocation Flow
Tool Discovery
The Agent retrieves all available tools on the client via the MCPtools/list method:
Tool Invocation
When the Agent decides to call a workflow tool, it sends a standardtools/call request:
Execution Result
Built-in Tools
In addition to dynamically registered workflow tools, Desktop also provides the following built-in MCP tools:desktop_exec
Execute shell commands on the client.browser_read
Extract data from browser pages with multiple extraction methods:
Example call:
workflow_query_power_data to navigate to the data page, then uses browser_read to extract table data from the page for analysis.
hitl_prompt
Request manual user input during an automated workflow — useful for captchas, SMS verification codes, and other values that cannot be obtained automatically.- The system shows a notification to alert the user
- An input dialog appears in the Desktop UI
- After the user enters a value, it is returned to the Agent
- If no input is provided before timeout, a timeout status is returned
Silent Browser Mode
When the Agent remotely calls a workflow tool, the browser launches in silent mode, without displaying a browser window on the user’s screen:Silent Mode Features
Silent Mode Launch Arguments
Dynamic Tool Registration
Registration Timing
Desktop syncs tool information to the backend at the following times:- When WebSocket connection is established: Sends a registration message containing all available tools
- When a workflow is published/unpublished: Notifies the backend to update the tool list
Registration Message
Backend Tool Creation
When the AI Backend (Python) receives the tool list, it dynamically creates a LangChainStructuredTool for each workflow tool:
Typical Business Scenarios
Scenario 1: Power Data Collection
Scenario 2: Operations Requiring Verification Codes
Scenario 3: Batch Data Processing
The Agent can call workflow tools in a loop to handle batch tasks:- Call
workflow_loginto log in to the system - Call
workflow_query_datain a loop (with different parameters) to extract data across multiple pages - Call
browser_readto retrieve page data - Aggregate and analyze, then call
workflow_generate_reportto produce a report
Error Handling
Error Codes
Replay Engine Fault Tolerance
Execution Result
After workflow execution completes, a structured result is returned:Compatibility
Windows 7 Support
Since some clients run on Windows 7, note the following:- Electron 22.x is the last version to support Windows 7
- The corresponding Chromium engine version must be used
- Some modern Web APIs may not be available
Domestic OS Support
Compatibility with domestic operating systems (UOS / Kylin):Related Documentation
- Recording - Record, edit, and parameterize workflows
- Desktop Overview - Desktop application overview
- Workflow Recording - Video + audio + event multi-layer recording technical design