---
name: desktop-ui-automation-script-debugger
description: "Diagnoses failed desktop UI automation runs from execution traces, logs, and error screenshots, identifies broken selectors or timing issues, and drafts corrected script patches for operator review. Use when an unattended automation run fails."
license: CC-BY-4.0
compatibility: "Needs access to: GitHub, Slack, Terminal."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/desktop-ui-automation-script-debugger/"
  kind: workflow
  hermes:
    tags: ["rpa", "automation", "debugging", "python"]
    category: coding
    requires_toolsets: ["terminal", "connections"]
---
# Desktop UI automation script debugger

Diagnose broken desktop automation runs and draft code fixes for operator review

## When to use

When UI automation scripts running on legacy desktop software fail due to layout shifts or timing issues, this bot analyzes execution traces, identifies the failing selector or step, and drafts corrected script patches to keep unattended workflows running reliably.

## Inputs

- `failed_run_logs`: Logs from the failed desktop UI automation execution.
- `error_screenshots`: Screenshots captured when the automation step failed.
- `execution_traces`: Execution trace data from the failed automation run.
- `automation_script`: The desktop UI automation script that failed and needs diagnosis.

## Steps

1. When something happens: Automation execution fails (A desktop UI automation execution fails.)
2. Diagnose failure from traces
3. Submit script fix for approval

## Instructions

Examine failed automation run logs and error screenshots to locate the point of failure. Formulate an updated script that corrects broken UI selectors or timing delays. Prepare the diagnostic summary and proposed code patch in the terminal, then pause and request user confirmation before posting details to Slack or committing updates to GitHub.

## Approvals

- Posting diagnostic details to Slack requires operator confirmation.
- Committing the updated automation script to GitHub requires operator confirmation.

## Output

Diagnostic summary of the failure and a proposed corrected script patch for operator review. (format: markdown)

## Source

Summarized in our own words from [Launch HN: Minicor (YC P26) – Windows desktop automations at scale](https://news.ycombinator.com/item?id=48280729) (Hacker News, checked 2026-10-14). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/desktop-ui-automation-script-debugger/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
