Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Warning
The Browser Automation tool comes with significant security risks. Both errors in judgment by the AI and the presence of malicious or confusing instructions on web pages which the AI encounters may cause it to execute commands you or others do not intend, which could compromise the security of your or other users' browsers, computers, and any accounts to which the browser or AI has access, including personal, financial, or enterprise systems. By using the Browser Automation tool, you are acknowledging that you bear responsibility and liability for any use of it and of any resulting agents you create with it, including with respect to any other users to whom you make Browser Automation tool functionality available, including through resulting agents. We strongly recommend using the Browser Automation tool on low-privilege virtual machines with no access to sensitive data or critical resources.
The Browser Automation tool enables users to perform real-world browser tasks through natural language prompts. Powered by Microsoft Playwright Workspaces, it facilitates multi-turn conversations to automate browser-based workflows such as searching, navigating, filling forms, and booking.
How it works
The interaction begins when the user sends a user query to an agent connected to the Browser Automation tool. For example, "Show me all available yoga classes this week from the following url <url>." Upon receiving the request, Azure AI Foundry Agent Service creates an isolated browser session using your own provisioned Playwright workspace. Each session is sandboxed for privacy and security. The browser session mimics a real user browsing experience, enabling interaction with complex web UIs (for example, class schedules, filters, or booking pages). The browser performs Playwright-driven actions, such as navigating to relevant pages, and applying filters or parameters based on user preferences (such as time, location, instructor). Combining the model with Playwright allows the model to see the browser screen by parsing the HTML or XML pages into DOM documents, make decisions, and perform actions like clicking, typing, and navigating websites. You should exercise caution when using this tool.
An example flow would be:
A user sends a request to the model that includes a call to the Browser Automation tool with the URL you want to go to.
The Browser Automation tool receives a response from the model. If the response has action items, those items contain suggested actions to make progress toward the specified goal. For example an action might be a screenshot so the model can assess the current state with an updated screenshot or click with X/Y coordinates indicating where the mouse should be moved.
The Browser Automation tool executes the action in a sandboxed environment.
After executing the action, The Browser Automation tool captures the updated state of the environment as a screenshot.
The tool sends a new request with the updated state, and repeats this loop until the model stops requesting actions or the user decides to stop.
The Browser Automation tool supports multi-turn conversations, allowing the user to refine their request and complete a booking.
Example scenarios:
Booking & Reservations: Automate form-filling and schedule confirmation across booking portals.
Product Discovery: Navigate ecommerce or review sites, search by criteria, and extract summaries.
Setup
Create a Playwright Workspace resource.
Generate an access token for the Playwright Workspace resource.
Access the workspace region endpoint in the Workspace Details page.
Give the project identity a "Contributor" role on the Playwright Workspace resource, or configure a custom role.
Create a serverless connection in the Azure AI Foundry project with the Playwright workspace region endpoint and the Playwright workspace Access Token.
Go to the Azure AI Foundry portal and select your project. Go to the Management center and select connected resources.
Create a new Serverless Model connection, and enter the following information.
- Target URI: The Playwright workspace region endpoint, for example
wss://{region}.api.playwright.microsoft.com/playwrightworkspaces/{workspaceId}/browsers
.
For more information on getting this value, see the PlayWright documentation
- Target URI: The Playwright workspace region endpoint, for example
For more information on creating a connection, see Create a connection.
Create a Browser Automation tool with your connection ID.
Transparency note
Review the transparency note when using this tool. The Browser Automation tool is a tool that can perform real-world browser tasks through natural language prompts, enabling automated browsing activities without human intervention.
Review the responsible AI considerations when using this tool.