RunMacro Documentation
Learn RunMacro from basics to advanced.
Everything you need to start and master RunMacro — from basic commands to advanced automation workflows.

Build a web workflow with AI Web Builder
In Browser Mode, open More › Create Workflow with AI, type what you need, then press Start creating workflow. Review the plan, generate, preview, then press Add to current macro.
Prerequisites
- The workspace is in Browser Mode (Chrome CDP). Desktop Mode is refused.
- No macro is running and you are not recording.
- An AI provider is configured in the AI / API tab with an API key — unless you use Quick Create with live observation off.
- Chrome/CDP is only needed for live observation or the test run; plain workflow writing does not need it.
- Because Browser Mode entry is required, this feature needs a paid license.
Supported modes
- Browser Mode — Browser Mode only, and every generated workflow is pinned to browser mode. Within it there are two authoring styles: Write workflow without opening Chrome (default) and Live observation with Chrome/CDP.
What it does
AI Web Builder takes your plain-language description (optionally split into several steps), asks an AI model to generate a workflow, checks it against a fixed list of allowed commands, then converts it into real RunMacro commands inserted as a WF Group block. The AI can write straight from your text, or open Chrome and observe live — clicking, typing and scrolling to see the real page before writing.
When to use it
- You want a fast draft workflow for a familiar web task.
- You are unsure how to structure the flow and need a starting point to edit.
- The task is easy to describe in words but slow to write command by command.
- You want the AI to look at the real page before writing (enable live observation).
When not to use it
- Automating desktop software — AI Web Builder supports Browser Mode only.
- You need a perfectly correct workflow on the first try: always preview and test-run, or use Smart Record to capture real selectors.
- The task needs commands outside the allowed list (image recognition, shell, desktop actions).
Configuration steps
- Make sure you are in Browser Mode. Open More › Create Workflow with AI.
- Choose the build entirely with AI card (the other one uses existing templates, which is cheaper and more accurate).
- In the 1. Goal card, describe the task. Click Add step to split it into clearer steps (up to 21).
- In the 2. How AI acts card, choose writing without Chrome (default) or live observation. Live observation reveals the Chrome configuration group.
- In the AI settings card, pick a Builder mode: Quick Create, Plan & Build (default) or Smart Builder. Pick a Provider.
- Press Start creating workflow.
- For Plan & Build and Smart Builder, the AI Workflow Plan dialog opens: review blocks, variables, loops and risks. You can edit each block name and goal, or edit the plan JSON directly.
- Press Generate Full Workflow, or Generate Selected Block to build one part at a time.
- In the preview dialog, check the Command list and JSON tabs. Press Run test if Chrome/CDP is available.
- Press Add to current macro to insert, or Create a new macro from this workflow to replace the whole macro.
Every option explained
Expected result
A WF Group block is added to your macro, containing Smart HTML/CDP commands matching your description. If the AI returns invalid JSON, an error dialog opens where you can press Ask AI to fix the JSON.
Real example
Example: open a page and search
- In Browser Mode, open More › Create Workflow with AI.
- Type: Go to https://example.com, type "t-shirt" in the search box, click the Search button, wait for the result list.
- Leave Write workflow without opening Chrome and Plan & Build as they are. Press Start creating workflow.
- Review the plan: usually one block with 4–5 actions. Press Generate Full Workflow.
- In the preview, check the Command list tab to see whether the selectors look sensible.
- Press Add to current macro, then run the macro to verify for real.
Example: use live observation on an unfamiliar page
- Open AI Web Builder and type your description including the exact URL.
- Choose Live observation with Chrome/CDP.
- Expand Advanced Chrome settings, keep the Default Chrome source and 800x800 size.
- Press Start creating workflow. Chrome opens and the AI works the page itself; follow along in the 4. AI progress card.
- If Chrome cannot open, RunMacro offers to switch to writing without Chrome — choosing Yes still yields a draft.
- Preview, press Run test, then add it to the macro.
Limitations and failure cases
- The AI can only produce commands from an allowed list: navigation and tabs, web element actions, waits and assertions, basic flow control (delay, label, goto, if variable, retry), variables, and CSV/text output. There is no image recognition, desktop action, shell execution, or cross-origin iframe targeting.
- The RunMacro AI provider currently only works in Quick Create with live observation off. In Plan & Build (the default) or with live observation on, the app reports a missing API key even though RunMacro AI needs none. Workaround: choose Quick Create, or pick another provider that has an API key.
- The write-without-Chrome mode guesses selectors, so the workflow may need fixing at run time — the interface states this itself.
- There is no cancel button while the AI is working: pressing Cancel only closes the dialog, and the AI call continues in the background.
- There are reports of one click on Add to current macro inserting two near-identical groups. After adding, check the command list and delete the duplicate group if you see one.
- There are reports of the app closing unexpectedly when dismissing the preview after adding. The preview now closes itself after a successful add to avoid that path.
- Some labels in the plan and preview dialogs remain in English while the interface is set to Vietnamese.
- Unsupported steps that slip past validation are silently dropped during conversion — fewer commands than the plan suggested is a sign of this.
Tips & common mistakes
Verification details
ui/ai_web_builder_dialog.pycore/ai_web_builder.pycore/ai_workflow_capabilities.py
RunMacro