Browser Use n8n Integration
Browser Use can be integrated with n8n, a workflow automation platform, using our community node. This integration allows you to trigger browser automation tasks directly from your n8n workflows.Installing the n8n Community Node
There are several ways to install the Browser Use community node in n8n:Using n8n Desktop or Cloud
- Navigate to Settings > Community Nodes
- Click on Install
- Enter
n8n-nodes-browser-usein the Name field - Click Install
Using a Self-hosted n8n Instance
Run the following command in your n8n installation directory:For Development
If you want to develop with the n8n node:- Clone the repository:
- Install dependencies:
- Build the code:
- Link to your n8n installation:
- In your n8n installation directory:
Setting Up Browser Use Cloud API Credentials
To use the Browser Use node in n8n, you need to configure API credentials:- Sign up for an account at Browser Use Cloud
- Navigate to the Settings or API section
- Generate or copy your API key
- In n8n, create a new credential:
- Go to Credentials tab
- Click Create New
- Select Browser Use Cloud API
- Enter your API key
- Save the credential
Using the Browser Use Node
Once installed, you can add the Browser Use node to your workflows:- In your workflow editor, search for “Browser Use” in the nodes panel
- Add the node to your workflow
- Set-up the credentials
- Choose your saved credentials
- Select an operation:
- Run Task: Execute a browser automation task with natural language instructions
- Get Task: Retrieve task details
- Get Task Status: Check task execution status
- Pause/Resume/Stop Task: Control running tasks
- Get Task Media: Retrieve screenshots, videos, or PDFs
- List Tasks: Get a list of tasks
Example: Running a Browser Task
Here’s a simple example of how to use the Browser Use node to run a browser task:- Add the Browser Use node to your workflow
- Select the “Run Task” operation
- In the “Instructions” field, enter a natural language description of what you want the browser to do, for example:
- Optionally enable “Save Browser Data” to preserve cookies and session information
- Connect the node to subsequent nodes to process the results
Workflow Examples
The Browser Use n8n node enables various automation scenarios:- Web Scraping: Extract data from websites on a schedule
- Form Filling: Automate data entry across web applications
- Monitoring: Check website status and capture visual evidence
- Report Generation: Generate PDFs or screenshots of web dashboards
- Multi-step Processes: Chain browser tasks together using session persistence
Troubleshooting
If you encounter issues with the Browser Use node:- Verify your API key is valid and has sufficient credits
- Check that your instructions are clear and specific
- For complex tasks, consider breaking them into multiple steps
- Refer to the Browser Use documentation for instruction best practices