AI & Machine Learning

Salesforce AI Research Launches WALT: Web Agents That Autonomously Learn Reusable Tools from Any Website

Discover WALT, Salesforce AI's groundbreaking framework that empowers LLM agents to automatically extract and reuse tools from websites, revolutionizing web automation without manual API engineering.

A

Andrew Snyder

AI & Automation Editor

December 29, 2025 min read
Share:

What Are Web Agents and Why Do They Need to Learn Tools?

Web agents powered by large language models (LLMs) promise to automate complex online tasks, from booking flights to managing e-commerce carts. However, a major bottleneck persists: most websites lack structured APIs, forcing agents to rely on brittle screen-scraping or predefined actions. This limits scalability and reusability across diverse sites. Enter WALT (Web Agents that Learn Tools), a novel system from Salesforce AI Research that addresses this head-on. WALT enables LLM agents to automatically discover and generate reusable tools directly from any website's HTML, transforming static web pages into dynamic, callable APIs.

In essence, WALT shifts the paradigm from rigid, site-specific scripting to semantic tool discovery. By analyzing a website's structure and content, it identifies interactive elements—like forms, buttons, and search bars—and synthesizes Python functions that agents can invoke repeatedly. This not only boosts agent performance on benchmarks but also paves the way for general-purpose web automation.

How Does WALT Break Down Websites into Actionable Tools?

WALT's core innovation lies in its hierarchical decomposition of web interfaces. Rather than treating a webpage as a monolithic entity, it parses it into semantic units: distinct components such as navigation menus, search interfaces, product listings, and checkout flows. This mirrors how humans intuitively segment UIs.

Here's the step-by-step process WALT follows:

  1. HTML Parsing and Semantic Segmentation: Using lightweight heuristics and LLM reasoning, WALT scans the DOM tree to group elements into functional blocks. For instance, on an e-commerce site, it might isolate the "product grid" from the "shopping cart summary."

  2. Action Inference: For each segment, WALT infers possible user actions. A login form yields actions like enter_username() and submit_credentials(). It leverages vision-language models (VLMs) for visual cues if needed, ensuring robustness to dynamic content.

  3. Tool Synthesis: WALT generates executable Python code for each action, encapsulating browser interactions via libraries like Playwright. Tools include parameters (e.g., query: str for a search bar) and return structured outputs (e.g., JSON lists of search results).

  4. Verification and Refinement: Synthesized tools undergo sandboxed testing on the target site. If failures occur, WALT iteratively refines the code using error feedback.

This pipeline produces a tool library per website—reusable across sessions and even shareable for multi-site agents. For example, learning tools from Mind2Web benchmark sites allows agents to handle tasks like "Find apartments under $2000 in Seattle on Zillow."

Practical Example: Automating E-Commerce Search

Consider applying WALT to a retail site like those in the Mind2Web dataset. WALT might generate:

class RetailSiteTools:
    def search_product(self, query: str) -> list[dict]:
        """Searches for products and returns structured results."""
        page.fill('#search-input', query)
        page.click('#search-button')
        results = page.locator('.product-card').all()
        return [{'name': r.locator('.title').text_content(), 'price': r.locator('.price').text_content()} for r in results]

    def add_to_cart(self, product_id: str) -> bool:
        """Adds a product to cart by ID."""
        page.click(f'.product-{product_id} button.add-cart')
        return 'Added to cart' in page.locator('.notification').text_content()

An LLM agent can now chain these: tools.search_product('laptop'); tools.add_to_cart(product_id=3). This is far more reliable than pure prompting over screenshots.

Benchmark Performance: WALT in Action

Salesforce researchers evaluated WALT on established benchmarks, demonstrating substantial gains:

  • Mind2Web: 48.9% task success rate (TSR), up from 35.2% for baselines like ReAct. Handles 137 tasks across 137 websites in categories like maps, social forums, and shopping.
  • WebArena: 21.4% TSR on realistic open-domain tasks, outperforming GUI agents by 2x.
  • MiniWoB++: Near-perfect scores on pixel-based RL tasks, validating tool precision.
BenchmarkBaseline (e.g., ReAct)WALTImprovement
Mind2Web35.2%48.9%+13.7%
WebArena10.2%21.4%+11.2%
MiniWoB++78.5%96.2%+17.7%

These results stem from WALT's zero-shot tool learning—no site-specific training required. It even generalizes to unseen sites, with cross-site tool transfer improving performance by 15%.

Ablation Studies: What Makes WALT Tick?

Key insights from ablations:

  • Semantic Segmentation: Boosts TSR by 12% vs. flat action extraction.
  • Code Synthesis with VLMs: GPT-4V outperforms text-only by 8% on visually complex UIs.
  • Iterative Refinement: Reduces tool errors from 22% to 4%.

Real-World Applications and Extensions

WALT's implications extend beyond benchmarks:

  • Enterprise Automation: Salesforce envisions WALT powering CRM agents that scrape vendor sites for lead data or automate procurement.
  • Personal Assistants: Integrate with browsers to learn user-favorite sites (e.g., tools for Gmail, Twitter).
  • Multi-Site Orchestration: Combine tools from Amazon, Expedia, and Yelp for end-to-end travel planning.

To get started, check the official WALT GitHub repository, which includes code, models, and setup instructions. Installation is straightforward:

git clone https://github.com/SalesforceAIResearch/WALT.git
cd WALT
pip install -r requirements.txt
python run_walt.py --url https://example.com --tasks search,login

Researchers also reference Mind2Web GitHub for dataset exploration.

Challenges and Future Directions

While transformative, WALT faces hurdles:

  • Dynamic Content: JavaScript-heavy SPAs may require headless browser warm-up.
  • Privacy/Security: Tool execution needs sandboxing to prevent XSS.
  • Scalability: Parallel tool learning for 1000+ sites demands optimized crawling.

Future work could incorporate fine-tuned VLMs or federated learning for collaborative tool sharing. Compared to rivals like WebVoyager or SeeAct, WALT uniquely emphasizes reusability, making it ideal for production agents.

Why WALT Matters for AI Developers and Researchers

For developers building LLM agents, WALT democratizes web access—no more hand-crafting Selenium scripts. Researchers gain a new primitive for grounding agents in real-world UIs. Experiment with it on your sites: Does it capture your navbar perfectly? How does it handle iframes?

In summary, WALT exemplifies how targeted LLM orchestration can unlock unstructured web data, accelerating autonomous agents toward human-level web proficiency. Dive into the repo and build on it today.


<div style="text-align: center; margin-top: 2rem;"> <a href="https://www.marktechpost.com/2025/10/24/salesforce-ai-research-introduces-walt-web-agents-that-learn-tools-enabling-llm-agents-to-automatically-discover-reusable-tools-from-any-website/" target="_blank" rel="noopener noreferrer" class="view-full-resource-btn" style="display: inline-block; background-color: #f97316; color: white; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: background-color 0.2s;">View Full Resource</a> </div>
The #1 Newsletter in AI

Stay ahead of the AI curve

The most important updates, news, and content — delivered in one weekly newsletter.

No spam. Unsubscribe anytime. Privacy policy

AI Agents
LLM Tools
Web Automation
Salesforce AI
Tool Learning
ai-agents
A

About Andrew Snyder

AI & Automation Editor

Andrew covers practical AI automation, workflow design, and the tools teams use to streamline everyday operations.

Comments (0)