🌐
Web Agent
AI that can browse the web and automate tasks
Try Web Agent
Describe a web task for the agent to perform
SDK Examples
import { WebAgent } from '@ooretz/agent-sdk';
const agent = new WebAgent({
apiKey: process.env.OORETZ_API_KEY,
headless: true, // Run without visible browser
});
// Navigate and extract data
const result = await agent.run({
task: "Go to example.com and extract all links",
steps: [
{ action: 'navigate', url: 'https://example.com' },
{ action: 'extract', selector: 'a', fields: ['href', 'text'] }
]
});
console.log(result.data);Example Use Cases
Web Scraping
Go to news.ycombinator.com and extract the top 10 story titl...
[
{"title": "Show HN: ...", "url": ".....
Form Automation
Go to a contact form, fill in name "John", email "john@examp...
✓ Form submitted successfully...
Price Monitoring
Check the price of "MacBook Pro" on Amazon and return the cu...
{"product": "MacBook Pro", "price": "$1,...
Capabilities
🌐
URL Navigation
Navigate to any webpage
👆
Element Interaction
Click buttons, links, menus
📝
Form Filling
Input text, select options, submit forms
📊
Data Extraction
Scrape text, tables, structured data
📸
Screenshots
Capture full page or element screenshots
⚡
JavaScript Execution
Run custom scripts in browser context
Configuration Options
headlesstrue/false
timeout30000ms
viewport1920x1080
userAgentcustom
proxyoptional
Quick Install
# npm
npm i @ooretz/agent-sdk
# pip
pip install ooretz