In short.
Browser Use’s Chat UI tutorial teaches web developers to connect a chat interface to an AI browser agent, but it uses SDK v3 while the page recommends V4 for new integrations. Its strongest material is the session and streaming flow, including live preview, follow-ups, task stopping and recording retrieval. The snippets leave an unresolved server-side integration boundary and omit several lifecycle details. Nothing was executed, so compatibility, successful operation and actual costs are not established.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is the complete documentation page at https://docs.browser-use.com/cloud/tutorials/chat-ui.md, including its documentation-index notice, prefatory Cloud product notices, tutorial text, code snippets, method summary and footer. Linked documentation, the example repository, pricing details and package contents are excluded. Product notices are source claims, not operational directions. No code was executed; runtime behavior, compatibility, performance, recording completion and actual costs remain unverified.
The overview
identity
This is Browser Use’s Chat UI documentation tutorial [https://docs.browser-use.com/cloud/tutorials/chat-ui.md]. It explains the SDK integration in a two-page Next.js application: a home page for submitting a task and a session page for interacting with the agent.
The page links a full example repository [https://github.com/browser-use/chat-ui-example]. The selected resource is the tutorial page; the repository’s contents are outside the supplied evidence.
assessment
The tutorial is useful for understanding how a chat application connects user messages to browser-agent sessions. It provides concrete examples rather than only describing features, particularly for asynchronous message streaming and continuing an existing session.
Its practical fit depends on API choice. Developers deliberately using SDK v3 can study its documented flow. Developers starting a new integration must account for the page’s V4 recommendation and cannot assume these snippets transfer unchanged. Successful execution and completeness as a deployable application are not established.
users
The intended readers are web developers building a conversational interface around a Browser Use agent. The live preview and follow-up features suit applications where users need to watch browser activity and refine a task.
Beginners will need familiarity with JavaScript or TypeScript, asynchronous iteration and Next.js concepts such as server actions, routing, React hooks and context. Experienced developers can use it as an integration walkthrough, but UI components and deployment concerns receive little explanation.
capabilities
The examples cover creating a session, obtaining a live browser URL, streaming messages, submitting follow-up tasks, retrieving recording URLs and stopping the current task while retaining the session.
The session page combines a chat column with a browser preview panel. These are documented capabilities, not observed results; the page supplies no evidence about browser-task accuracy, streaming latency or reliability.
Using it
requirements
The example assumes a Next.js/React application, the browser-use-sdk package exposing the browser-use-sdk/v3 import, and a Browser Use Cloud API key. The key is read from BROWSER_USE_API_KEY, without a NEXT_PUBLIC_ prefix, and the setup explicitly requires SDK access to remain server-side.
Minimum runtime and package versions, complete dependency installation instructions, deployment requirements and account-specific usage allowances are not established by the tutorial.
mechanism
The home page creates a session and receives its identifier, liveUrl and status. It then navigates to the session page with the initial task and liveUrl in URL parameters.
The session logic calls client.run(task, { sessionId }). A for-await loop appends arriving messages, and run.result supplies the final session state when iteration ends. Follow-ups reuse the same function and session identifier; the tutorial says the SDK automatically enables keepAlive when targeting an existing session.
setup
The documented setup imports BrowserUse from browser-use-sdk/v3 and constructs a client with the server-side API key. A server action creates sessions with keepAlive and enableRecording both set to true. The remaining examples connect navigation, session context, message rendering and the browser panel.
The server boundary needs clarification before implementation. Although the setup says SDK calls go through server actions, later session-context.tsx snippets call client.run() and client.sessions.waitForRecording() directly. The page does not show the transport or wrapper that reconciles these examples with the server-only requirement; this is not proof that a key is exposed.
example
An illustrative interaction would be asking the agent to find installation instructions on a public documentation site. The app would create a session, display its browser preview and append streamed messages. The user could then request a follow-up in that session.
The documented Stop action calls sessions.stop with strategy set to task, preserving the session for further requests. Recording retrieval is presented as a later step after the session ends. This interaction is illustrative; no agent response, browser result or successful recording is supplied.
Assessment & evidence
limitations
The example is explicitly V3. V4 notices elsewhere on the page describe different interfaces, including integer keepAlive durations rather than the tutorial’s boolean setting. Mixing these versions would require changes that this tutorial does not explain.
Recording lifecycle details remain incomplete. The tutorial keeps sessions alive and shows a recording helper that waits up to 15 seconds, while surrounding notices discuss browser shutdown and asynchronous processing. It does not demonstrate the complete shutdown flow or establish that recordings will always be ready within that wait.
The definitions behind isTerminal are not shown, even though that flag disables chat input and triggers recording retrieval. Session ownership, access controls, error recovery and deployment behavior are also not demonstrated.
reasoning
The teaching approach reduces the integration to a small set of operations: create a session, stream a task, continue the session, stop a task and retrieve recordings. This makes the relationship between the chat interface and browser session comparatively easy to follow.
The useful conclusion is limited to that documented architecture. Claims about rapid setup, production readiness, recording reliability or agent performance cannot be established from snippets alone. The server-boundary and lifecycle gaps prevent treating the page as a fully demonstrated implementation.
alternatives
The page recommends Cloud API V4 for new agent integrations and describes V3 as trading accuracy for speed and lower cost. Those comparisons are documentation claims; no measurements or migration example accompany this tutorial.
Within V3, the tutorial presents client.run() as an alternative to separately polling sessions.get() and sessions.messages(). It also mentions the open-source browser-use library, while warning that its API differs from the hosted SDK. The suitability and implementation effort of those alternatives are not assessed here.
evidence
The source is the complete Chat UI documentation page [https://docs.browser-use.com/cloud/tutorials/chat-ui.md], captured as selected-page.txt at 2026-11-23T20:09:03.939Z. Its source revision is sha256:fdfcfe1f04161c57bfe5e2925236a357368a041861ab94aa01987f830a2aedd2.
The page supplies explanatory text and code snippets. The linked repository, pricing page, SDK reference and other guides are outside this evidence. No execution logs, compatibility results, benchmarks or measured costs are supplied, and nothing was executed.
Access & freshness
costs
The page describes Cloud as pay as you go, with one-time signup credits and non-expiring purchased top-ups. Its surrounding notices describe concurrency grants, including 50 concurrent browsers after a $100 one-time top-up. That payment is a capacity-unlock threshold, not a complete estimate for operating this application.
The tutorial does not provide a complete V3 rate card, cost per task or app-hosting estimate. Actual browser, traffic and model costs remain unknown. The notices also describe API-key monthly spending caps as soft limits, so they do not establish a strict spending ceiling.
rights
The page links source code but includes no licence terms for the tutorial or example repository. Permissions for reuse, modification, commercial use and redistribution are therefore unknown from this evidence. A public source-code link alone does not establish those permissions.
freshness
The snapshot was captured on 23 November 2026 and includes product notices referring to changes effective from 16 November 2026. The tutorial itself still identifies its example as SDK v3.
The capture date does not establish compatibility with a particular installed package. No exact SDK package version, tutorial modification date or repository maintenance history is supplied.
actions
Choose the intended API generation before adapting the example. For V3, confirm the installed SDK’s interfaces, resolve how streaming stays behind a server-side boundary and define when a task finishes versus when the session or browser closes. For a new V4 integration, obtain V4-specific examples rather than copying these parameters unchanged.
Before using the application with real users, establish recording completion and failure behavior, session access controls and treatment of initial task text in URL parameters. Confirm applicable usage rates and licence terms separately; these remain unknown here.
