---
title: "AI agent that fills out web forms and portals"
description: "A form filling AI agent for applications, onboarding, data entry and portals with no API. Give it the URL and the data in one task string; it finds fields by their labels, handles logins, MFA codes, uploads and supported CAPTCHAs, and returns the confirmation as JSON. One cloud browser per form, in parallel."
canonical: "https://browser-use.com/solutions/form-filling"
last_updated: "2026-12-05"
---

# AI agent that fills out web forms and portals

> A form filling AI agent for applications, onboarding, data entry and portals with no API. Give it the URL and the data in one task string; it finds fields by their labels, handles logins, MFA codes, uploads and supported CAPTCHAs, and returns the confirmation as JSON. One cloud browser per form, in parallel.

[HTML page](https://browser-use.com/solutions/form-filling) · [Login automation](https://browser-use.com/solutions/login-automation.md) · [Trust center](https://trust.browser-use.com) · [Browser Use Agents](https://browser-use.com/web-agents.md) · [Web agent API](https://browser-use.com/web-agent-api.md) · [Examples](https://browser-use.com/showcase/category/workflows.md)

## A form run

1. Describe the form and the data in one task string, or a template filled from a row of your spreadsheet. Add an output schema for the confirmation fields you want back.
2. The agent reads labels and roles, picks the matching field, and handles dropdowns, date pickers, multi-step wizards and file uploads from the workspace. Tell it where to stop if a person should look first.
3. Confirmation numbers come back as JSON in `run.output`, and files it saves land in the workspace. Failures come back with the step and the page state.

```python
from browser_use_sdk.v4 import BrowserUse

receipt = {"type": "object", "properties": {"confirmation_number": {"type": "string"}}, "required": ["confirmation_number"]}

with BrowserUse() as client:
    run = client.runs.create(
        "Open https://example.com/signup and submit the form with {name, email, plan}. "
        "Stop before any payment step and report the confirmation number.",
        output_schema=receipt,
    )
    done = client.runs.wait_for_completion(run.id)
    if done.status.value != "completed":  # check the site before retrying
        raise RuntimeError(done.error or done.status.value)
    print(done.output)
```

## What is your form job?

| Job | Answer |
| :-- | :-- |
| The same form, many times | Fixed form: a [Playwright script](https://browser-use.com/integrations/playwright.md). Changing form: [replay a saved agent run](https://browser-use.com/developers.md); if it breaks, check what it sent before rerunning. |
| Portals with no API | Supplier, insurance and government portals you are allowed to use. One [agent](https://browser-use.com/web-agents.md) task covers many of them. |
| Logins and MFA | Passwords as secret bindings, TOTP codes from 1Password, or a saved profile that skips the login. See [login automation](https://browser-use.com/solutions/login-automation.md). |
| Government and grant applications | Long forms that end in a CAPTCHA. [Supported CAPTCHAs](https://docs.browser-use.com/cloud/browser/captcha-handling.md) are solved by default; solving is not guaranteed. |
| Onboarding and data entry | One run per CSV row. An [output schema](https://docs.browser-use.com/cloud/agent/structured-output.md) returns each confirmation number as parsed JSON. |
| File uploads and receipts | Put IDs, PDFs and invoices in a [workspace](https://docs.browser-use.com/cloud/agent/workspaces.md) once. Every run can attach them and saves receipts there; files sync between runs, not live. |

Portal behind a login, with an upload and a 1Password vault:

```python
import os
from browser_use_sdk.v4 import BrowserUse

with BrowserUse() as client:
    ws = client.workspaces.create(name="invoices")
    client.workspaces.upload(ws.id, "invoice-1042.pdf")  # lands in uploads/

    run = client.runs.create(
        "Log in to https://portal.example.com, attach uploads/invoice-1042.pdf "
        "to a new invoice, submit it, and report the reference number.",
        workspace_id=ws.id,
        op_vault_id=os.environ["OP_VAULT_ID"],  # 1Password: password and TOTP code
    )
    done = client.runs.wait_for_completion(run.id)
    if done.status.value != "completed":  # check the portal before retrying
        raise RuntimeError(done.error or done.status.value)
    print(done.result)
```

## One run per row

Runs are independent: one browser per row. [Concurrency](https://docs.browser-use.com/cloud/guides/concurrency.md) is per project: it starts at 10 and rises with the project's total paid, up to 1,000 at once from $25,000. Keep in-flight runs across all of the project's keys at or under its limit, for example a thread pool with 10 workers. Each run bills model tokens plus browser time at $0.06 per hour, and $5/GB if it uses the residential proxies.

## Questions

- **A portal with no API?** Yes, as long as you are allowed to use it: your own accounts, or portals your clients authorize you to work in. Connector tools need an API on the other end; the agent reads field labels and roles like a person, so one task works across portals and keeps working when a field moves.
- **Download invoices from a portal with no API every day?** Stable portal: a Playwright script run by cron. Save the login with [storageState](https://playwright.dev/docs/auth), log in again when it expires, and call [download.saveAs](https://playwright.dev/docs/downloads) before the browser context closes. Portal that changes: from cron, start a Browser Use run with a [saved profile](https://docs.browser-use.com/cloud/guides/authentication.md) and a [workspace](https://docs.browser-use.com/cloud/agent/workspaces.md), and ask the agent to save the invoices there and to repair its [rerunnable script](https://docs.browser-use.com/cloud/agent/scripts.md) if the site changed. List the workspace files by API; download links last 60 seconds.
- **Behind a login with MFA?** Pass the password as a secret binding: the task names an alias and the value is typed only on the hostnames you list. Once typed, the value is on the page like any input. A 1Password vault also supplies TOTP codes and security answers, and a saved profile or cookies synced from your own Chrome skip the login while the site's cookies stay valid. `agentmail` gives the run its own email address; accounts registered with that address get their codes in the agent's inbox. Secret bindings, 1Password and AgentMail are not available in the EU region.
- **The CAPTCHA on the submit button?** Cloud browsers solve supported CAPTCHAs automatically by default, outside the EU region. Solving is not guaranteed: if one stays, a person can finish it in the live view while the browser is open, and a follow-up run continues in the same session.
- **Something I cannot undo?** Say so in the task, for example stop before payment or before the final submit. The run ends there and the browser stays open for 2 minutes, or longer with `keepAlive` (paid projects, up to the browser's 4-hour lifetime, billed as browser time), so a person can check the page in the live view. A follow-up run in the same session then submits; pass any secret bindings again. Check a run's status before resubmitting: a client wait timeout does not cancel the run.

---

BROWSER USE

- Browser Use Agents: give Browser Use a task and receive completed work. API V4 is current for new integrations.
- Browser Infrastructure: connect your agent or automation to managed browsers through SDK, REST, or CDP. Starts at $0.06/browser-hour.
- Developer tools: Open Source, Browser Harness, SDK, and MCP support the two products above.

[Developer Index](https://browser-use.com/index.md)
[Product Map](https://browser-use.com/llms.txt)
[Full Product Context](https://browser-use.com/llms-full.txt)
[Pricing](https://browser-use.com/pricing.md)
[Cloud Docs](https://docs.browser-use.com/cloud/quickstart)
[Open Source Docs](https://docs.browser-use.com/open-source/introduction)
