Browserbase icon

Browserbase

Browser automation, web search, and page fetches with Browserbase.

Search → Run an Agent

AI-generated

Summary

Run an AI browser agent from a starting URL to carry out an instruction, then return the task result and Browserbase session details.

Inputs

  • Model (required) — Choose the model that drives the browser. In Model Options, optionally set a separate Agent Model for the selected mode; with a user-provided API key, both models must use the same provider.
  • Starting URL (required) — The page where the agent begins. The node adds https:// when the URL has no http:// or https:// prefix.
  • Instruction (required) — Describe the browser task, such as finding a page and extracting information.
  • Model Options — Configure the interaction mode (CUA, DOM, or experimental Hybrid), optional Agent Model, model source, system prompt, maximum steps, and cursor highlighting. CUA and Hybrid enforce compatible agent models.
  • Variables — In DOM or Hybrid mode, provide named values and optional descriptions for use as %name% placeholders. Values are passed to the agent execution request; CUA mode does not use this field.
  • Browser Options — Set ad blocking, session logging and recording, captcha solving, verified identity, and viewport dimensions.
  • Session Options — Set the Browserbase region and timeout, proxy routing, keep-alive behavior, session metadata, and an optional Context ID. With a context ID, choose whether to persist session changes.

Output shape

One n8n item per input item, each with a JSON object containing the agent result and session ID.

The JSON includes success, message, actions, completed, and usage, using defaults when those fields are absent from the API response. It also includes contextId when provided. The node starts a browser session, navigates to the starting URL, runs the agent, and ends the session; it attempts to end the session on errors too. With Continue On Fail enabled, an item contains an error field instead.

Links

Discussion