An open-source middleware script that gives AI agents a standardized command interface to interact with any website — with permissions, rate limiting, and full control for site owners.
// Add the bridge to your website
<script>
window.AIBridgeConfig = {
licenseKey: "WAB-XXXXX-XXXXX",
agentPermissions: { click: true, fillForms: true }
};
</script>
<script src="/script/ai-agent-bridge.js"></script>
A complete interface layer that makes websites AI-ready with security and control built in.
Automatically detects buttons, forms, and navigation elements — generating precise CSS selectors and action descriptions for AI agents.
Granular control over what AI agents can do. Enable clicking, form filling, API access, and more — each toggled independently.
Unified window.AICommands interface that any AI agent can read and execute — no more DOM guessing.
Built-in rate limiting prevents abuse. Configure max calls per minute to protect your site from aggressive automation.
Track how AI agents interact with your site. See which actions are used most, success rates, and usage patterns.
Register your own actions with custom handlers. Create complex workflows that AI agents can trigger with a single command.
Automatically detects add-to-cart, checkout, booking, and reservation flows — mapping them to named actions agents can call directly.
Reads schema.org JSON-LD and microdata (Products, Offers, Prices) and exposes them as queryable actions — zero manual setup.
7-strategy resilient element resolution. When the DOM changes, selectors auto-heal via ARIA, text similarity, and position heuristics.
Optional consent banner gates agent actions behind user approval. SDK agents can check hasConsent() or waitForConsent() programmatically.
Built-in SDK for Puppeteer and Playwright: runPipeline(), executeParallel(), screenshot(), and consent-aware workflows.
Standard WebDriver BiDi protocol support via window.__wab_bidi — compatible with any automation framework that speaks the standard.
WAB v2.0 goes beyond bridging — it protects users with negotiation, verification, and decentralized trust.
AI agents negotiate prices directly with WAB-enabled sites. Site owners define negotiation rules (bulk discounts, loyalty rewards, time-based offers). Agents submit counter-offers in multi-round sessions — no middleman, no hidden fees.
Cross-verification engine that catches AI lies before they reach users. Compares DOM values against vision screenshots, validates prices against market benchmarks, and checks temporal consistency across sessions.
Agents and sites build trust through cryptographic attestations. Every interaction gets scored — purchase success, data accuracy, delivery fulfillment. Scores are aggregated into transparent reputation profiles visible to all agents.
A real-time command center showing your digital fortress status — protected sites, fairness radar, privacy shield, negotiation logs, and verification checks all in one beautiful dark-mode dashboard.
Pre-built YAML agent templates for common use cases — hotel booking, grocery comparison, artisan marketplace, flight deals. Run any template with a single CLI command: npx wab-agent run template.yaml.
One agent manages multiple WAB-enabled sites simultaneously. Compare prices across stores, aggregate product data, run parallel actions — all from a single WABMultiAgent instance in the SDK.
WAB is the bridge — the AI model is your choice. Switch between Llama 3, GPT-4, Claude, Gemini, Mistral, or run fully local with Ollama. Your data, your model, your sovereignty.
Agents communicate, learn, and orchestrate autonomously — zero external LLM dependency. Your private fortress now has a distributed intelligence layer.
Agents communicate through a private mesh — sharing discoveries, broadcasting alerts, and exchanging tactics in real-time. 5 built-in channels: alerts, discoveries, tactics, negotiations, votes.
Agents learn from every user decision — accepted, rejected, or modified. Multi-armed bandit action selection, gradient-descent policy updates, and behavioral pattern mining. All local, zero tokens consumed.
Four specialized agents (Researcher, Analyst, Negotiator, Guardian) collaborate autonomously through rule-based engines. No external AI needed — the symphony runs entirely on local heuristics and learned preferences.
A premium 4-panel workspace for non-technical users — search, negotiate, and buy with AI assistance. Available in Arabic & English with multilingual agent support.
Full browser panel with URL bar, navigation controls, and secure iframe rendering. The agent opens pages, loads deals, and navigates sites — all visible in real-time.
Chat with the AI agent in any language — Arabic, English, French, Turkish, or mix them all. The agent understands your intent from any style, dialect, or slang.
Watch the agent work in real-time — step-by-step progress tracking, per-agent status cards, and live negotiation rounds with savings details.
Compare offers ranked by value with savings percentages, one-click deal links, and an "Agent Do It" button that lets the AI complete the purchase for you.
Full Arabic and English interface with auto-detection from browser language. Toggle instantly between languages with complete RTL/LTR layout support.
Free tier (5 tasks/day), Starter, Pro (unlimited + advanced negotiation), and Enterprise plans. Admin dashboard for managing users, deals, and analytics.
Detects when websites manipulate prices based on your device, location, cookies, or browsing history. The agent probes with 12 distinct identities to expose hidden pricing and find the lowest price invisible to normal users.
Get your website ready for AI agents in minutes, not days.
Include the bridge script in your HTML with your configuration. Set permissions, restrictions, and your license key.
Use the dashboard to fine-tune which actions AI agents can perform. Block sensitive areas and set rate limits.
AI agents read window.AICommands, discover available actions, and execute them precisely — no DOM scraping needed.
// AI Agent reads available commands const bridge = window.AICommands; // Discover all available actions const actions = bridge.getActions(); console.log(actions); // → [{ name: "signup", trigger: "click", ... }, ...] // Execute a form fill action const result = await bridge.execute("fill_contact_form", { name: "John Doe", email: "john@example.com", message: "Hello from AI!" }); // Wait for dynamic content await bridge.waitForElement(".success-message");
Start free, upgrade when you need advanced features. Open source forever.
Official packages for React, Vue, Svelte, and LangChain — with full TypeScript support.
@web-agent-bridge/react
Hooks: useWAB, useWABAction, useWABActions + WABProvider for auto-loading the script.
const { run, result } = useWABAction('addToCart'); await run({ sku: 'ABC123' });
@web-agent-bridge/vue
Composables: useWAB, useWABAction, useWABActions — reactive refs with loading/error/result state.
const cart = useWABAction('addToCart'); await cart.run({ sku: 'ABC123' }); // cart.result.value, cart.loading.value
@web-agent-bridge/svelte
Stores: createWAB, createWABAction — subscribe to $store for reactive state.
const cart = createWABAction('addToCart'); await cart.run({ sku: 'ABC123' }); // {#if $cart.loading}Adding...{/if}
Use WAB with LangChain, MCP, or build your own agent — every action becomes a tool the LLM can call.
@web-agent-bridge/langchain
WABToolkit wraps every WAB action as a LangChain StructuredTool. Works in HTTP mode (server) or browser mode (Puppeteer).
const tk = new WABToolkit({ siteUrl: 'https://shop.example.com' }); const tools = await tk.getTools(); // Pass tools to any LangChain agent
wab-mcp-adapter
Converts WAB actions into MCP tools so any MCP-compatible agent (Claude, etc.) can interact with WAB sites through MCP.
const adapter = new WABMCPAdapter({ siteUrl: '...' }); const tools = adapter.listTools(); // Built-in: discover, execute, read, search
web-agent-bridge/sdk
First-class Puppeteer/Playwright SDK with pipeline execution, parallel actions, screenshot capture, and consent-aware workflows.
const agent = new WABAgent(page); await agent.waitForConsent(); await agent.runPipeline([...steps]);
Ready-to-use examples for popular platforms — see how WAB fits into your stack.
React Server Components + WABProvider for client-side bridge with useWABAction hooks.
Hydrogen storefront with cart actions: getCartCount, addFirstVisibleProductToCart.
Elementor page builder + WAB schema scanner for auto-discovered product and form actions.
Notion-style SaaS with KPI reads, customer lookup, and invoice workflow triggers.
Headless browser agent that discovers and executes actions automatically via the SDK.
Natural language intent resolution — "add product to cart" maps to the right WAB action.
From link protection widgets to AI safety layers, bounty networks to threat intelligence — everything you need to build a safer, fairer web.
Building an AI agent that browses the web? Use WAB AI Safety Layer as a mandatory security wrapper. It scans every URL before your agent visits it.
Like credit agencies rate banks, WAB Score rates digital platforms. Search any platform and get a transparency score based on 15 fairness signals.
Prove to your customers that your store is fair and safe. Add a wab.json file to your site and print a verified trust badge — the SSL padlock for platform fairness.
Join the WAB Bounty Network and report phishing, scams, and malware that automated systems haven't caught yet. Earn credits redeemable for cash.
WAB Data Marketplace provides curated threat intelligence datasets for cybersecurity companies and AI model training.
Real-time phishing, malware, and scam URL data from 47 databases. Updated continuously.
Explore Data →Quarterly transparency scores for 500+ marketplaces — hidden fees, return policies, dark patterns.
Explore Data →Commission benchmarks, fraud patterns, and network reliability scores across all major affiliate platforms.
Explore Data →94% of cyber breaches start with a phishing email. Install the WAB extension and every link and sender in your inbox gets scanned by WAB automatically.
WAB Affiliate Intelligence analyzes your affiliate data and compares it with industry benchmarks to detect commission shaving, cookie stuffing, and payment delays.
Join the open-source movement that's bridging the gap between AI agents and the web.