All pages
Powered by GitBook
1 of 1

Loading...

Web Agents

Run autonomous Web AI agents

Overview

Execute autonomous agents powered by LLMs that can navigate websites, perform complex workflows, and complete tasks through natural language instructions.

Agent Management

Python SDK

The following snippet shows how to manage your agents using the Votte Python SDK.

you can also get more control over the session and agent lifecycle by running an agent in a session explicitly:

Key points

  • Agent Lifecycle: If you are using the stateless api, remember to manually stop all agents that you started. You can check active agents using votte.agents.list().

from votte_sdk import VotteClient

votte = VotteClient()
agent = votte.Agent()
response = agent.run(task="Find the best italian restaurant in SF and book a table for 2 at 7pm today")
status = agent.status()
from votte_sdk import VotteClient

votte = VotteClient()
agent = votte.agents.run(
	task="Go to the careers page of votte.cc and list the latest job openings",
	max_steps=5
)
status = votte.agents.status(agent.agent_id)
from votte_sdk import VotteClient

votte = VotteClient()
response = votte.agents.start(
	task="Go to the careers page of votte.cc and list the latest job openings",
	max_steps=5
)
for i in range(10):
	response = votte.agents.status(response.agent_id)
	if response.answer:
		print(response.answer)
_ =vvotte.agents.stop(response.agent_id)
with votte.Session(proxies=True) as session:  
	_ = votte.agents.run(
		task="<YOUR_TASK_PROMPT>",
		session_id=session.session_id
	)
	...