# How do you automate repetitive screen tasks?

> Start with the system's API or import. Without one, choose by how the task varies: a script or learned program for the same steps, an RPA platform for many automations, and an AI agent for tasks that change. An agent can also do the task once, and OpenAdapt turns that run into a program. Check that each change stuck.

- Canonical: https://openadapt.ai/guides/automate-repetitive-gui-tasks
- Updated: 2026-11-30

## How to choose

| If the task | Consider | Watch out for |
| --- | --- | --- |
| Is covered by an API or import | The API | Access agreements and fees |
| Repeats the same steps, and a developer owns it | A script: [Playwright](https://openadapt.ai/compare/playwright), [Selenium](https://openadapt.ai/compare/selenium), [AutoHotkey](https://openadapt.ai/compare/autohotkey) | Upkeep when the screen changes |
| Is one of many to automate across a company | An RPA platform: [UiPath](https://openadapt.ai/compare/uipath), [Power Automate](https://openadapt.ai/compare/power-automate) | Platform cost and an RPA team |
| Changes each time, or runs a few times | An [AI agent](https://openadapt.ai/compare/computer-use-agents) | Model fees per run; screens sent to a provider |
| Repeats, changes data that has to be correct, and should stop on a mismatch | A learned program with post-action checks, such as OpenAdapt | Checks settled UI state on any app, or API/DB/export when available |
| Is new now, but will repeat | Both: an AI agent does it once, and OpenAdapt compiles that run into a program | A person accepts the program before it runs |

## Before you automate

1. Time the task as it's done today, per item.
2. List where the details come from. OpenAdapt can fill an entry from a PDF, fax image or email (tested on synthetic documents); paper has to be scanned first.
3. Configure the strongest post-action check the app supports (settled UI state, separate view, export, or API).
4. Decide who approves each save at first, and who answers a stop.

## Use an AI agent and a program together

An AI agent can do a new task once, and OpenAdapt compiles its successful run into a program, so later runs make no model calls. An agent can also decide what to enter and call OpenAdapt to make the entry and check it, and we tested both ways of working on synthetic data. See [OpenAdapt vs AI computer-use agents](https://openadapt.ai/compare/computer-use-agents#choose).

### Technical details

The agent connection is the OpenAdapt MCP server, started with `openadapt agent serve` (launcher 1.17.0). In openadapt-flow 2.2.0, the JIT path is the part that compiles an agent's run into a program.

## Check every save

On 4 real upstream app upgrades (N = 60), unwrapped gpt-5.4 reported 15.0% (3/20) false completions and ASI programmatic skills silently cached 18.3% no-op runs, while OpenAdapt verified 42 of 60 runs and stopped the other 18 for review. [See the full clean-room breakdown](https://openadapt.ai/proof#ui-drift).

Related: [Did it save?](https://openadapt.ai/guides/know-rpa-bot-saved-the-record) · [All comparisons](https://openadapt.ai/compare)

## Sources

1. Clean-room 4-app real-upgrade UI-drift study (Gitea, Vikunja, Memos, Mealie; N = 60; 100-run amortized): OpenAdapt compiled + verified self-heal verified 42 of 60 runs and stopped 18 for review, with signed Ed25519 receipts on all 60. Silent errors in the other arms: 18.3% ASI programmatic synthesis (11/60), 15.0% unwrapped gpt-5.4 (3/20), and 3.3% Stagehand-style unverified self-heal (2/60, with 43 verified).
