Connect a system that has no API
Let the AI agent work in portals and back offices that only have a website, with every step checked.
Many systems your team works in every day have no API: a claims portal, an older CRM, a supplier's ordering site, a carrier's tracking page. Your team gets the work done by hand, one browser tab at a time.
Browser automation lets the AI agent do that work too, in the middle of a customer conversation. It signs in, finds the record, reads what it needs or makes the change, and checks that the result really happened. You teach it once with Copilot, approving each click, and the steps become an action the AI agent can use.
This guide is for whoever owns a process that runs through such a system: a CX lead, an operations manager or a founder. It covers what's possible, how a teaching session works and what keeps it safe. Developers find the exact contract in Browser automation.
What you can automate
Anything your team does on the website the same way each time. For example:
- An insurer's AI agent looks up a claim's status in the claims portal by claim number.
- A retailer's AI agent reads a purchase order's delivery date in a supplier portal, and tells the customer when their backorder ships.
- A telecom's AI agent checks whether a SIM card is activated in its provisioning back office.
- A B2B distributor's AI agent checks whether an invoice is paid in an ERP that only has a web interface.
- A travel company's AI agent cancels a booking in its reservation system, once the customer confirms.
If the system has an API, use the API. An action that calls an API is faster and simpler. Browser automation is for systems without one, or where the API can't do what you need. See Connect any system.
How it works
There are four stages, and you stay in charge of each one:
- Connect the website. A browser connection belongs to one business and lists the exact website addresses the browser may visit.
- Teach the steps. Copilot opens a recorded browser session and works through the task with you. It shows you screenshots and asks for your approval before every click, field edit, selection or key press.
- Save it as an action. Copilot turns the steps into an action that checks the page before and after every step. It tests the action on safe test records, including the ways it can fail.
- Switch it on in a workflow. The action does nothing until a workflow includes it. The workflow decides when the AI agent may use it, for example only for verified customers.
Before you start
Have these ready:
- One concrete task. "Look up a claim's status by claim number" works. "Handle the claims portal" doesn't.
- A website the browser can reach. The browser visits public HTTPS websites, the kind you can open from any browser and sign in to.
- A dedicated account on the website for the AI agent, with only the access the task needs. It signs in with a username and password. One-time sign-in codes by text message, email or authenticator app aren't handled, so use an account that doesn't need them.
- The login stored as secrets. Add the username and password under Settings -> Advanced -> Secrets. Copilot fills them in by secret name, so the password never appears in the chat. Never paste a password or a sign-in code into the chat yourself.
- Test records that are safe to use, such as a test claim or a test booking. Every test runs for real on the website.
- The right permission. Teaching runs real browser steps and saves code, so it needs permission to write automations. Organization admins and developers have it. See Roles and permissions.
1. Teach the steps with Copilot
Describe the task the way you'd explain it to a new colleague: where to go, what to search for and what to read.
Our claims portal at claims.example.com has no API. Work out with me how to look up a claim's status there by claim number, so the AI agent can do it for customers. Sign in with the CLAIMS_PORTAL_USER and CLAIMS_PORTAL_PASSWORD secrets and use the test claim CLM-10042.
Here is what happens next:
- Copilot sets up a browser connection for your business, limited to the portal's address.
- It opens a recorded browser session. After each page loads, a screenshot appears in the chat so you can follow along. Screenshots are previews, not a live view.
- It navigates and reads pages on its own. Before every click, field edit, selection or key press, it shows an Approve / Deny card with what it intends to do and what it expects to happen. Nothing is clicked until you approve.
- It confirms the record on screen by what the page shows, such as the claim number and the customer's name, not by the web address alone.
- It looks for shortcuts, such as a web address that opens a claim directly, so the saved action can skip the search page.
Copilot asks you before it opens sensitive pages or records outside your request. Teach in short sessions: a browser session lasts up to 10 minutes and closes after 3 minutes without activity.
With your own AI agent. Agents connected through Octocom MCP can teach steps too, with the same checks on every step. They don't have Copilot's approval cards and act with your permissions, so make sure your agent asks you before each click or edit.
2. Save it as an action and test the failures
Once the steps are clear, Copilot writes them into a saved action and tests it.
Turn those steps into an action the AI agent can use to look up a claim's status by claim number. Test it with CLM-10042, a claim number that doesn't exist and a closed claim, and show me what it returns each time.
The saved action repeats the steps you approved, with checks around every one:
- Before each step, it checks that the expected page and record are on screen, in the expected state.
- After each step, it checks for a new state that proves the step worked. A click alone proves nothing.
- After a change, it reopens the record and checks the result there. A success message isn't enough. This also confirms a change that went through when the website lost the response.
For an action that changes something, such as cancelling a booking, test every way it can go:
- The change succeeds, and still shows after a reload.
- The change isn't allowed, for example because the trip already started.
- The website rejects the change with an error.
- The website shows success, but the record didn't change.
- The page changed: a button was renamed or is missing, or the wrong record is shown.
- The page is slow.
A passing test doesn't put the action live. Before it goes live, check that the connection allows only the addresses the task needs and signs in with the dedicated account.
3. Switch it on in a workflow
The action is ready, but the AI agent can't use it yet. Add it to the workflow where it belongs, and say when it may be used.
Add the claim status lookup to our claim status workflow, only for customers whose identity is verified. Then run a test conversation that asks about claim CLM-10042.
Knowing a claim number or an email address isn't proof that someone owns the record. Decide how customers prove who they are before the AI agent shares or changes anything. See Authentication and access control.
For a change that needs a person's sign-off, such as cancelling a large booking, the AI agent can ask your team for a decision first and continue once it's made. See Human-in-the-loop decisions.
What keeps it safe
- You approve every interaction while teaching. In Copilot, clicks, field edits, selections and key presses each need your approval. Navigating and reading pages proceed on their own.
- The browser stays on the sites you allow. Each connection lists exact website addresses. List only sites you trust: if a site redirects elsewhere, the browser can reach that address before the step stops.
- Passwords stay in the secret store. They are filled in by secret name, so they never appear in the chat. Copilot never repeats a password or sign-in code shown on a page.
- Every step proves its result. The action finds buttons and fields by what they are and what they say, such as a button's label, never by position on the screen. It checks the page before and after each step.
- It stops instead of guessing. If the page changed, the record doesn't match or the outcome is unclear, the action stops. It never repeats a change it couldn't confirm. In a live conversation, the AI agent then hands the conversation to your team. Nothing is repaired automatically mid-conversation: you review the website change and update the action.
- Website text is data, not instructions. Copilot reads a page as information about the task, not as requests to follow. A saved action runs only the steps written into it, whatever the page says.
- Every run is on record. Each run keeps its steps, outcomes, private screenshots and a session replay, for 90 days by default. The replay shows what was typed, including passwords, so only people who can edit your organization's secrets can download it. Team members who can't open the conversation see only the outcomes.
Good to know
- Short tasks fit best. A saved action has two minutes to finish, page loads included. Design each action around one lookup or one change, ideally opening the record's own address directly.
- One session per connection. A connection runs one browser session at a time, and your organization runs up to five at once. For a task many customers need at the same moment, an API is the better route.
- One tab. The browser works in one tab. A popup window stops the run, and forms inside embedded frames can't be used.
- Saved login is optional. A connection can remember its login, so actions don't sign in on every run. Copilot can make it forget the login when you need a fresh sign-in.
Measure and maintain
Check that the action is used and that it works:
- Usage. The Function Calls chart on the AI performance tab of Metrics shows how often the AI agent called the action. Filter by function call to see the resolution rate of those conversations.
- Failures. Each failure points to its browser run. Copilot can show you the run's steps, where it stopped and the screenshots.
- Alerts. Get told the moment the action starts failing, so someone reviews the website before many customers are affected.
Post to our #support-ops Slack channel whenever the claim status lookup fails, at most once an hour, with a link to the conversation. The channel's webhook URL is saved as the SUPPORT_OPS_SLACK_WEBHOOK secret.
When the portal changes its layout, the action stops safely instead of clicking the wrong thing. Ask Copilot to walk through the new pages with you and update the action.
For developers and AI agents
Browser automation covers connections, approvals, step contracts, outcomes and audit evidence. open_browser is the Python helper that saved actions use. In short:
| Stage | Tools |
|---|---|
| Read the playbook | browser_help |
| Connect the website | list_browser_connections, create_browser_connection |
| Teach the steps | browser_create_session, browser_explore, browser_observe, browser_step, browser_close_session |
| Save and test | create_python_action with open_browser, then test_python_action |
| Inspect a run | get_browser_run |
| Alert on failures | create_event_handler on Automation Execution Failed |
Close the teaching session before testing the saved action: a connection allows one active run, and the test otherwise returns connection_busy.