Book a call

How-to

AI browser agent for a legacy CRM: a 3-hour plan

An AI browser agent for a legacy CRM can work the screens a vendor never gave you an API for, and this is the three-hour pilot plan. Install, put the login in the vault, lock the domains and actions, script one narrow workflow, then run a failure drill. What breaks and what to skip included.

By 4 min read

The objection I hear most on old systems is that the vendor will never ship an API, so automation is off the table. The mechanics half of that is now wrong. The risk half is still right.

What an AI browser agent for a legacy CRM actually does

An AI browser agent for a legacy CRM opens it in a real browser and works the screen the way a person does: read, act, read again. agent-browser is a native Rust CLI that gives an agent a browser it can drive one command at a time, and snapshot returns the page as compact text with a ref such as @e1 for each element.

agent-browser open crm.example.com
agent-browser snapshot -i
agent-browser click @e1
agent-browser get url

Two details matter more than the demo. Refs describe the page at the time of the snapshot, so you take a new one after every change. And a click fails, rather than reporting success, when the target is hidden, disabled, off screen or covered by a consent banner.

The three-hour plan for one workflow

The full plan runs about three hours for one workflow, covering install, the credential vault, containment, the happy path and a failure drill.

  • Install, about 20 minutes. npm install -g agent-browser, then agent-browser install for its own Chrome.
  • Map the workflow by hand, about 25 minutes. The click path, the field names, and the one check that proves it worked.
  • Vault the login, about 20 minutes. agent-browser auth save crm --url <login> --username <user> --password-stdin, then agent-browser auth login crm. Vault passwords are never included in the model's context.
  • Containment before the first write, about 35 minutes. --allowed-domains blocks navigations and sub-resource requests off your domains, and an action policy file is enforced by the daemon, so denied actions fail immediately. Same order of work I argue for in containment first, model choice second.
{
  "default": "deny",
  "allow": ["navigate", "snapshot", "click", "scroll", "wait", "get"]
}
  • Happy path, about 45 minutes. Snapshot, act, snapshot, compare. Gate eval and download behind --confirm-actions, where a pending confirmation auto-denies after 60 seconds.
  • Failure drill and run log, about 35 minutes. Rename a field, expire the session, screenshot every failure, and keep the guardrails on CRM writes.

Is browser automation a replacement for a CRM API?

No, it is a task runner for screens, not a replacement for an API, and the documentation is honest about that.

Your situation What I would do
An API exists, even a poor one Use the API, not the browser
No API, one repetitive screen task Pilot a contained browser agent
No API, many screens and judgement calls Keep the person, revisit later

Same conclusion I reached for supplier portals with no API.

What it is worth on your own numbers

A browser agent pilot is worth exactly the screen time your team already spends on one task. Say your team works through a batch of records by hand, each one taking a few minutes: that daily total of screen work is the ceiling before exceptions. Decide the share the agent has to get right before it earns its maintenance, then measure against your number.

I have built the contained version of this shape: a closed-CRM bridge across 25 GoHighLevel locations, about 11,000 records mirrored into a second store for dedup, working around a 72-hour auto-close.

Limitations

  • All of this is from the documentation. I have not run agent-browser against a legacy CRM, so the budgets are estimates.
  • The controls are opt-in. Out of the box there are no restrictions on navigation, actions or output.
  • Layout changes, MFA prompts and anti-bot checks break browser steps in ways an API never would.
  • Untrusted page text can read like instructions. Content boundary markers exist for that, and switching them on is your job.
  • In a pipeline with no terminal, interactive confirmations are denied automatically, so an unattended run needs a policy file, not a prompt.

My take

Run this on exactly one task, in a tenant you can break, with the policy file written before the first write. The value is not that the browser can click. It is that the click path becomes code you can review and a log you can read. If the vendor ships an API next quarter you throw the script away and lose three hours, which is cheap next to a pilot on the CRM you already have.

Next step: pick the screen task your team repeats most, and write its policy file before you install anything.

Questions people ask

Can you automate a CRM that has no API?

Yes, for narrow screen tasks. A browser agent such as agent-browser opens the CRM in Chrome, reads the page as an accessibility snapshot, and clicks or fills the elements a person would. It is a task runner, not an integration layer, so treat each workflow as its own small project.

Is a browser agent a replacement for a CRM API?

No, it is a task runner for one screen task, not a replacement for an API. Use the API when one exists, pilot a contained browser agent only for a single repetitive screen task with no API, and keep a person on anything with many screens or judgement calls.

Is it safe to give a browser agent CRM credentials?

Safer than pasting them into a prompt, if you use the auth vault: passwords stored there are never included in the model's context. Pair it with a domain allowlist and an action policy file so a redirect or a bad instruction cannot take the session somewhere else.

How long does a browser automation pilot take?

About three hours for the first workflow by my estimate: roughly 20 minutes to install, 25 to map the clicks by hand, 20 for the credential vault, 35 for containment, 45 for the happy path and 35 for a failure drill. The second workflow is faster because the containment is already written.

Have a process like this leaking time or leads?Thirty minutes, no deck, and you leave with a plan.

Book a call