Skip to main content

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

  1. Complete Recording: Record browser actions and save as a workflow
  2. Parameterize: Mark values that need dynamic injection as variables (see Recording - Parameterization)
  3. Publish Tool: Click the Publish Tool button in the workflow editor
  4. 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
  5. 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 MCP tools/list method:

Tool Invocation

When the Agent decides to call a workflow tool, it sends a standard tools/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:
Typical scenario: The Agent first executes 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.
Execution flow:
  1. The system shows a notification to alert the user
  2. An input dialog appears in the Desktop UI
  3. After the user enters a value, it is returned to the Agent
  4. If no input is provided before timeout, a timeout status is returned
Interaction method priority:

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:
  1. When WebSocket connection is established: Sends a registration message containing all available tools
  2. 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 LangChain StructuredTool 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:
  1. Call workflow_login to log in to the system
  2. Call workflow_query_data in a loop (with different parameters) to extract data across multiple pages
  3. Call browser_read to retrieve page data
  4. Aggregate and analyze, then call workflow_generate_report to 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):