Use this file to discover all available pages before exploring further.
AI agent instructions
STOP. Do not read past this section until you have read and followed /quickstart.md.Goal: produce a reliable SDK automation script. The intended authoring flow is generate then edit, not write browser automation from scratch.Do not hand-write SDK code with element IDs, selectors, or form fields from memory. Element IDs, selectors, and field mappings must come from a live observe() call, CLI notte page observe output, or generated workflow code. Guessed browser targets fail on real pages.Use the Notte skill and CLI to inspect the live site, validate actions/selectors, handle auth/session state, and export workflow code with notte sessions workflow-code before using SDK docs or SDK code.SDK reference pages are for understanding, running, or editing generated workflow code. They are not the starting point for manually authoring the initial browser automation. SDK-first code is guesswork on real-world pages with dynamic selectors, auth state, CAPTCHAs, and anti-bot behavior.
Bot detection is a common challenge for web agents. This guide provides strategies to bypass these detection mechanisms using Notte’s stealth configuration options.Common Bot Detection Challenges:
Accessing e-commerce sites with anti-bot measures
Scraping content from news or social media platforms
Proxies are one of the most effective ways to bypass bot detection. Different proxy configurations can help you appear as legitimate traffic from various locations.
Enable Notte’s built-in residential proxies for better anonymity:
default_proxy.py
from notte_sdk import NotteClientclient = NotteClient()# Start a session with built-in proxieswith client.Session(proxies=True) as session: _ = session.observe(url="https://www.notte.cc/")
Different browsers have varying levels of detection resistance. Experiment with different browser types for your specific use case:
browser_type_selection.py
from typing import Literalfrom notte_sdk import NotteClientclient = NotteClient()# Try different browser typesBrowserType = Literal["chromium", "chrome"]browsers: list[BrowserType] = ["chromium", "chrome"]for browser in browsers: with client.Session(browser_type=browser, proxies=True, solve_captchas=True) as session: result = session.observe(url="https://example.com") print(f"Success with {browser}")
chromium is the default browser type but is the most easily detected.
Enable automatic CAPTCHA solving for sites that use these challenges:
solve_captchas.py
from notte_sdk import NotteClientclient = NotteClient()with client.Session(solve_captchas=True, open_viewer=True) as session: # Navigate to a page with a CAPTCHA agent = client.Agent(session=session, max_steps=5) resp = agent.run( task=("Try to solve the CAPTCHA using internal tools. If you fail, try to solve it manually."), url="https://www.google.com/recaptcha/api2/demo", )
Not all CAPTCHA types are supported. Some complex CAPTCHAs may still require manual intervention.
Here’s a comprehensive example combining all stealth techniques:
stealth_configuration.py
from notte_sdk import NotteClientclient = NotteClient()# Example stealth configuration# this is just one possible configuration, with an obvious fingerprint# rotating those values will raise your chanceswith client.Session( solve_captchas=True, proxies="us", user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36", viewport_width=1920, viewport_height=1080,) as session: result = session.observe(url="https://example.com") print("Success with fallback configuration")