The Notte Python SDK provides a comprehensive set of tools for interacting with the Notte API. This guide will walk you through the steps to install the SDK, configure your API key, and start using the SDK to manage your browser sessions, web agents, and page interactions.
We strongly recommend using the Python SDK for all your automation needs. It is the most efficient way to interact with the Notte API.
from notte_sdk import NotteClientnotte = NotteClient()with notte.Session() as session: agent = notte.Agent(session=session, max_steps=10) response = agent.run(task="Find the best italian restaurant in SF and book a table for 2 at 7pm today") print(f"Agent terminated with status: {response.success} and answer: {response.answer}")
How to get visual insights about your sessions & agents
At any time during the execution of a session or an agent, you can retrieve a replay of the execution so far as a WebP image.
Copy
Ask AI
from notte_sdk import NotteClientnotte = NotteClient()with notte.Session() as session: _ = session.observe(url="https://duckduckgo.com")# Save the replay to a filereplay = session.replay()replay.save("replay.webp")