Skip to content

roadcode/openclaw-rpa

 
 

Repository files navigation

openclaw-rpa

English | 中文

Case video

1. Sauce (Online Shopping WebSite) Demo (browser recording)

Sauce Demo (saucedemo.com): sign in → sort by price → add two most expensive → sign out.
Shows the full flow from trigger through recording to a generated script.

shoppingWebSite.mp4

Recording (saucedemo-readme.mp4) — steps in the video

  1. Send #rpa / #RPA / #automation robot — see SKILL.md and SKILL.en-US.md — Trigger detection.
  2. Task name examples: match an existing script like onlineShoppingV1 (see registry.json).

Task prompt (Sauce segment)

  1. Open www.saucedemo.com, sign in standard_user / secret_sauce.
  2. Sort price high → low.
  3. Add the two most expensive items to the cart.
  4. Log out.

2. Yahoo Finance (NVDA news) — browser recording

Yahoo Finance (finance.yahoo.com): search a symbol → open the quote page → switch to the News tab → capture the top headlines to a text file on the Desktop. This case shows the same end-to-end path as the Sauce demo—trigger, record, synthesize a Playwright script—for a finance/news workflow.

yahoo.mp4

Recording — steps in the video

  1. Send #rpa / #RPA / #automation robot — see SKILL.md and SKILL.en-US.md — Trigger detection.
  2. Task name example: align with a registered script such as YahooNew (see registry.jsonyahoonew.py).

Task prompt (Yahoo Finance segment)

  1. Open https://finance.yahoo.com/, search for NVDA, and go to the quote page (e.g. https://finance.yahoo.com/quote/NVDA/).
  2. In the row of tabs under the stock price (same row as Summary), click News for this symbol—the tab next to Summary. Wait until the news list has loaded.
  3. Save the top 5 news headlines (title text only) to YahooNews.txt on the Desktop.

3. OpenClaw + Feishu/Lark: #rpa-list, #rpa-run, and scheduled run

Screen recording of a typical chat with OpenClaw-bot on Feishu/Lark:

  • #rpa-list — list registered RPA tasks you can run;
  • #rpa-run:onlineShoppingV1 — run a saved script from a new chat;
  • A line like 「One minute later run #rpa-run:onlineShoppingV1 — schedule or remind to run later via OpenClaw + IM (exact behavior depends on your setup; execution still goes through rpa_manager.py run).
rpa-list-all.mp4

Full protocol: SKILL.en-US.md (ONBOARDING, RECORDING). See what recorded RPAs exist: #rpa-list. Run one: #rpa-run:{task} (new chat) or run:{task} / python3 rpa_manager.py run <name> (same chat).


With AI assistance, record typical website and local file workflows into a repeatable Playwright Python script. Replay without the LLM on every run—saves compute and keeps steps deterministic (vs. ad-hoc model calls).

Needs Python 3.8+, network for pip / Playwright browsers
Recommended LLM Minimax 2.7 · Google Gemini Pro 3.0 and above · Claude Sonnet 4.6
License Apache 2.0

Quick install (OpenClaw)

Put the skill here: ~/.openclaw/workspace/skills/openclaw-rpa

mkdir -p ~/.openclaw/workspace/skills
git clone https://github.com/laziobird/openclaw-rpa.git ~/.openclaw/workspace/skills/openclaw-rpa
cd ~/.openclaw/workspace/skills/openclaw-rpa

chmod +x scripts/install.sh && ./scripts/install.sh
python3 scripts/bootstrap_config.py
python3 scripts/set_locale.py zh-CN    # or: en-US

python3 rpa_manager.py env-check

SSH clone: git@github.com:laziobird/openclaw-rpa.git

After install, start a new OpenClaw chat (or reload skills) so the agent reads SKILL.md. Triggers and keywords: SKILL.md (e.g. #RPA, #automation robot).


Advanced

Manual install · gateway Python · paths · publishing

Manual install (no install.sh)

cd /path/to/openclaw-rpa
python3 -m venv .venv && source .venv/bin/activate
pip install -U pip && pip install -r requirements.txt
python -m playwright install chromium

Which python does OpenClaw use?

rpa_manager.py uses sys.executable. That interpreter must have Playwright. If the gateway uses system python3, install deps there or point tools at:

~/.openclaw/workspace/skills/openclaw-rpa/.venv/bin/python

Locale & config.json

  • SKILL.mdmetadata.openclaw.localeConfigconfig.json
  • If config.json is missing, the router can use config.example.json for locale
  • Details: LOCALE.md

Paths in SKILL.en-US.md / SKILL.zh-CN.md

Examples may use ~/.openclaw/workspace/skills/openclaw-rpa/. Change the prefix if your workspace differs.

Publish the skill

ClawHub — publish a skill (link this GitHub repo).

Environment check

python3 envcheck.py
# or
python3 rpa_manager.py env-check

record-start / run can auto-install Chromium if missing.


CLI quick start

python3 rpa_manager.py env-check
python3 rpa_manager.py list
python3 rpa_manager.py run wikipedia

Recorder: record-startrecord-steprecord-end (see rpa_manager.py docstring).


Sample scripts (rpa/)

Script Notes
wikipedia.py / wiki.py Wikipedia (English)
获取豆瓣电影数据.py Chinese UI demo (follow site rules)
onlineshoppingv1.py (and related) Sauce Demo flow (same as the demo video at the top)
yahoonew.py (YahooNew in registry.json) Yahoo Finance quote → News tab → top 5 headlines to Desktop (see Yahoo Finance demo)

More notes: examples/README.md.


Apache License 2.0 · Copyright © 2026 openclaw-rpa contributors

About

Record browser & local-file actions once; replay runs without the LLM—save $ vs AI browsing, faster, no hallucinations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 97.9%
  • Shell 2.1%