The workflow
This is a real enterprise reimbursement approval process running inside a desktop application (DingTalk). Each working day, a finance approver must review a batch of expense claims and take one of four actions based on a risk flag returned by an internal API:
Yellow — medium risk, countersign back to the submitter.
Red + special approval — high risk but authorised, approve with annotation.
Red + non-special — high risk, countersign and return.
Before automation, a human approver had to stay in the loop for every single claim — searching by document number, reading the risk flag, clicking through 20–40 steps per document, entering annotations, and confirming. The number of documents in a batch varies daily.
How it was built
The workflow was broken into 10 independent segments, each recorded as a separate natural language prompt session with ASB. Every segment compiles into a parameterised executable (.exe) that accepts runtime inputs and produces verifiable outputs.
keys.txtrun_code, output structured CSVflag (colour) and tip (annotation text) fieldsrun_code page scan, countersign with Tab-key navigationrun_code to determine if special approval applies, write judge.txtrun_orchestrationKey techniques used
Several patterns emerged during recording that are worth documenting for anyone building similar enterprise desktop workflows:
run_code step scans clipboard page text for the count of '修改', then clicks the correct coordinate.Why not just write a Python script?
This is the most common question from developers who see the workflow. For the API query and data filtering segments — yes, a Python script would work. But those account for roughly 50 of the 230 steps.
The remaining ~180 steps are GUI operations: window positioning, coordinate clicks, clipboard sequences, hover-triggered tooltips, and dynamic button detection. Writing reliable Playwright or PyAutoGUI code for a real enterprise desktop app — with variable load times, session timeouts, and layout shifts — is exactly what takes 1–2 weeks in traditional RPA development. Recording takes 90 minutes.
The run_code steps that do appear — flag detection, page scanning, result writing — are embedded inline within the recorded workflow, not as a separate scripting layer. The entire workflow compiles into executables that run without Python installed on the target machine.
Traditional RPA comparison
| Dimension | Traditional RPA (Blue Prism / UiPath) | ASB recording |
|---|---|---|
| Initial development | 1–2 weeks | 1 day (90 min recording + testing) |
| UI change recovery | Re-develop affected components (hours–days) | Re-record affected segment (~20 min) |
| Runtime AI dependency | None | None — deterministic executable |
| Cloud dependency at runtime | Varies by deployment | Zero — runs fully offline |
| Skill required | Certified RPA developer | Process owner with natural language prompts |
| Reuse across assistants | Vendor-locked | Exposed as standard MCP tools (Claude, Cursor, Copilot) |
What the recording session actually looks like
Each segment starts with a natural language prompt in Cursor or Claude — no special syntax, no IDE plugins beyond the ASB MCP server. A typical segment prompt reads like a step-by-step description of what a human would do:
"Start recording. Wait 2 seconds, click the document search box at 1406,257, select all, paste document number from clipboard, press Enter, wait 10 seconds, click first result... hover over the submitter icon area, double-click the employee ID field to select it, copy to clipboard, assign as employeeId... use run_code to check if the page contains 2 instances of '修改' — if yes, click 835,936; otherwise click 767,936... stop recording, save as yellow_action.py, analyse parameters: code and tip."
ASB records every MCP tool call during the session, parameterises the values you specify, and packages the result into a standalone executable. The recorded script (yellow_action.py) is saved alongside the executable for future AI-assisted editing without re-recording from scratch.
Current status and next steps
This workflow is still in active development — the document above represents the prompt design phase, with testing and tuning accounting for the remainder of the 1-day delivery estimate. Remaining work includes:
- Edge case handling for empty search results and session timeouts
- Production coordinate calibration (test environment coordinates differ from production)
- Scheduling integration via ASB's scheduled run mode
- Audit log review with the compliance team
The core recording is complete. What remains is the same validation work any software delivery requires — not additional development.
Try it on your own workflow
ASB is free to start — 1,000 MCP calls per month, no credit card required. For a workflow of this scale (230 steps, batch processing), a paid tier is recommended. If you have an enterprise approval process, data export, or repetitive desktop task, the recording approach works the same way.
Download for Windows Try in browser