openclaw-search

Intelligent search for agents. Multi-source retrieval with confidence scoring - web, academic, and Tavily in one unified API.

3,891 stars
Complexity: easy

About this skill

OpenClaw Search is a powerful AI agent skill designed for comprehensive and intelligent information retrieval. It acts as a research assistant, market researcher, or competitive analysis tool by unifying multiple search streams—academic (Scholar), general web, intelligent mixed-mode (Smart), and external validation (Tavily)—into a single API. This allows agents to access a broad spectrum of information without managing multiple separate search tools. The skill employs a two-phase architecture: "Discovery" for parallel retrieval across its diverse sources, followed by "Reasoning" where AIsa Explain performs meta-analysis. This meta-analysis generates confidence scores for answers, analyzes source agreement, and synthesizes concise, accurate responses, enhancing the reliability of the information provided to the agent. Developers and autonomous agents can easily integrate OpenClaw Search by setting an `AISA_API_KEY` and using standard command-line tools like `curl` or Python. This enables agents to perform deep dives, aggregate news, and conduct sophisticated research across various domains, receiving trust-scored, consolidated results.

Best use case

The primary use case is enabling AI agents to perform deep, confident, and multi-faceted research across web and academic sources. This skill benefits autonomous agents, research assistants, and any AI application requiring reliable, synthesized information to inform decisions or generate reports, especially when accuracy and source validation are critical.

Intelligent search for agents. Multi-source retrieval with confidence scoring - web, academic, and Tavily in one unified API.

Users should expect synthesized answers, confidence scores, and source agreement analysis derived from a comprehensive search across web and academic data, presented in a structured format.

Practical example

Example input

"Search for the latest papers on transformer architectures from 2024-2025"

Example output

A structured response including synthesized findings, confidence scores (e.g., 85/100), key sources (web links, academic papers), and a summary of source agreement on the topic.

When to use this skill

  • When an AI agent needs to conduct comprehensive research across both web and academic sources.
  • To get confidence-scored answers and source agreement analysis on complex queries.
  • For market research, competitive analysis, or academic literature reviews requiring diverse data.
  • When aggregating news or performing deep dives on specific topics with high reliability.

When not to use this skill

  • For simple, single-source lookups where a basic search API suffices.
  • When ultra-low latency is paramount and a multi-stage retrieval process is an overhead.
  • If the required information is proprietary or confined within a private database not accessible by public search.
  • For tasks that purely involve data manipulation or generation without external information retrieval needs.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/aisa-multi-source-search/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/aisapay/aisa-multi-source-search/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/aisa-multi-source-search/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How openclaw-search Compares

Feature / Agentopenclaw-searchStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityeasyN/A

Frequently Asked Questions

What does this skill do?

Intelligent search for agents. Multi-source retrieval with confidence scoring - web, academic, and Tavily in one unified API.

How difficult is it to install?

The installation complexity is rated as easy. You can find the installation instructions above.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# OpenClaw Search 🔍

**Intelligent search for autonomous agents. Powered by AIsa.**

One API key. Multi-source retrieval. Confidence-scored answers.

> Inspired by [AIsa Verity](https://github.com/AIsa-team/verity) - A next-generation search agent with trust-scored answers.

## 🔥 What Can You Do?

### Research Assistant
```
"Search for the latest papers on transformer architectures from 2024-2025"
```

### Market Research
```
"Find all web articles about AI startup funding in Q4 2025"
```

### Competitive Analysis
```
"Search for reviews and comparisons of RAG frameworks"
```

### News Aggregation
```
"Get the latest news about quantum computing breakthroughs"
```

### Deep Dive Research
```
"Smart search combining web and academic sources on 'autonomous agents'"
```

## Quick Start

```bash
export AISA_API_KEY="your-key"
```

---

## 🏗️ Architecture: Multi-Stage Orchestration

OpenClaw Search employs a **Two-Phase Retrieval Strategy** for comprehensive results:

### Phase 1: Discovery (Parallel Retrieval)

Query 4 distinct search streams simultaneously:
- **Scholar**: Deep academic retrieval
- **Web**: Structured web search
- **Smart**: Intelligent mixed-mode search
- **Tavily**: External validation signal

### Phase 2: Reasoning (Meta-Analysis)

Use **AIsa Explain** to perform meta-analysis on search results, generating:
- Confidence scores (0-100)
- Source agreement analysis
- Synthesized answers

```
┌─────────────────────────────────────────────────────────────┐
│                      User Query                              │
└─────────────────────────────────────────────────────────────┘
                              │
              ┌───────────────┼───────────────┐
              ▼               ▼               ▼
        ┌─────────┐     ┌─────────┐     ┌─────────┐
        │ Scholar │     │   Web   │     │  Smart  │
        └─────────┘     └─────────┘     └─────────┘
              │               │               │
              └───────────────┼───────────────┘
                              ▼
                    ┌─────────────────┐
                    │  AIsa Explain   │
                    │ (Meta-Analysis) │
                    └─────────────────┘
                              │
                              ▼
                    ┌─────────────────┐
                    │ Confidence Score│
                    │  + Synthesis    │
                    └─────────────────┘
```

---

## Core Capabilities

### Web Search

```bash
# Basic web search
curl -X POST "https://api.aisa.one/apis/v1/scholar/search/web?query=AI+frameworks&max_num_results=10" \
  -H "Authorization: Bearer $AISA_API_KEY"

# Full text search (with page content)
curl -X POST "https://api.aisa.one/apis/v1/search/full?query=latest+AI+news&max_num_results=10" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

### Academic/Scholar Search

```bash
# Search academic papers
curl -X POST "https://api.aisa.one/apis/v1/scholar/search/scholar?query=transformer+models&max_num_results=10" \
  -H "Authorization: Bearer $AISA_API_KEY"

# With year filter
curl -X POST "https://api.aisa.one/apis/v1/scholar/search/scholar?query=LLM&max_num_results=10&as_ylo=2024&as_yhi=2025" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

### Smart Search (Web + Academic Combined)

```bash
# Intelligent hybrid search
curl -X POST "https://api.aisa.one/apis/v1/scholar/search/smart?query=machine+learning+optimization&max_num_results=10" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

### Tavily Integration (Advanced)

```bash
# Tavily search
curl -X POST "https://api.aisa.one/apis/v1/tavily/search" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"latest AI developments"}'

# Extract content from URLs
curl -X POST "https://api.aisa.one/apis/v1/tavily/extract" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://example.com/article"]}'

# Crawl web pages
curl -X POST "https://api.aisa.one/apis/v1/tavily/crawl" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com","max_depth":2}'

# Site map
curl -X POST "https://api.aisa.one/apis/v1/tavily/map" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com"}'
```

### Explain Search Results (Meta-Analysis)

```bash
# Generate explanations with confidence scoring
curl -X POST "https://api.aisa.one/apis/v1/scholar/explain" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"results":[...],"language":"en","format":"summary"}'
```

---

## 📊 Confidence Scoring Engine

Unlike standard RAG systems, OpenClaw Search evaluates credibility and consensus:

### Scoring Rubric

| Factor | Weight | Description |
|--------|--------|-------------|
| **Source Quality** | 40% | Academic > Smart/Web > External |
| **Agreement Analysis** | 35% | Cross-source consensus checking |
| **Recency** | 15% | Newer sources weighted higher |
| **Relevance** | 10% | Query-result semantic match |

### Score Interpretation

| Score | Confidence Level | Meaning |
|-------|-----------------|---------|
| 90-100 | Very High | Strong consensus across academic and web sources |
| 70-89 | High | Good agreement, reliable sources |
| 50-69 | Medium | Mixed signals, verify independently |
| 30-49 | Low | Conflicting sources, use caution |
| 0-29 | Very Low | Insufficient or contradictory data |

---

## Python Client

```bash
# Web search
python3 {baseDir}/scripts/search_client.py web --query "latest AI news" --count 10

# Academic search
python3 {baseDir}/scripts/search_client.py scholar --query "transformer architecture" --count 10
python3 {baseDir}/scripts/search_client.py scholar --query "LLM" --year-from 2024 --year-to 2025

# Smart search (web + academic)
python3 {baseDir}/scripts/search_client.py smart --query "autonomous agents" --count 10

# Full text search
python3 {baseDir}/scripts/search_client.py full --query "AI startup funding"

# Tavily operations
python3 {baseDir}/scripts/search_client.py tavily-search --query "AI developments"
python3 {baseDir}/scripts/search_client.py tavily-extract --urls "https://example.com/article"

# Multi-source search with confidence scoring
python3 {baseDir}/scripts/search_client.py verity --query "Is quantum computing ready for enterprise?"
```

---

## API Endpoints Reference

| Endpoint | Method | Description |
|----------|--------|-------------|
| `/scholar/search/web` | POST | Web search with structured results |
| `/scholar/search/scholar` | POST | Academic paper search |
| `/scholar/search/smart` | POST | Intelligent hybrid search |
| `/scholar/explain` | POST | Generate result explanations |
| `/search/full` | POST | Full text search with content |
| `/search/smart` | POST | Smart web search |
| `/tavily/search` | POST | Tavily search integration |
| `/tavily/extract` | POST | Extract content from URLs |
| `/tavily/crawl` | POST | Crawl web pages |
| `/tavily/map` | POST | Generate site maps |

---

## Search Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| query | string | Search query (required) |
| max_num_results | integer | Max results (1-100, default 10) |
| as_ylo | integer | Year lower bound (scholar only) |
| as_yhi | integer | Year upper bound (scholar only) |

---

## 🚀 Building a Verity-Style Agent

Want to build your own confidence-scored search agent? Here's the pattern:

### 1. Parallel Discovery

```python
import asyncio

async def discover(query):
    """Phase 1: Parallel retrieval from multiple sources."""
    tasks = [
        search_scholar(query),
        search_web(query),
        search_smart(query),
        search_tavily(query)
    ]
    results = await asyncio.gather(*tasks)
    return {
        "scholar": results[0],
        "web": results[1],
        "smart": results[2],
        "tavily": results[3]
    }
```

### 2. Confidence Scoring

```python
def score_confidence(results):
    """Calculate deterministic confidence score."""
    score = 0
    
    # Source quality (40%)
    if results["scholar"]:
        score += 40 * len(results["scholar"]) / 10
    
    # Agreement analysis (35%)
    claims = extract_claims(results)
    agreement = analyze_agreement(claims)
    score += 35 * agreement
    
    # Recency (15%)
    recency = calculate_recency(results)
    score += 15 * recency
    
    # Relevance (10%)
    relevance = calculate_relevance(results, query)
    score += 10 * relevance
    
    return min(100, score)
```

### 3. Synthesis

```python
async def synthesize(query, results, score):
    """Generate final answer with citations."""
    explanation = await explain_results(results)
    return {
        "answer": explanation["summary"],
        "confidence": score,
        "sources": explanation["citations"],
        "claims": explanation["claims"]
    }
```

For a complete implementation, see [AIsa Verity](https://github.com/AIsa-team/verity).

---

## Pricing

| API | Cost |
|-----|------|
| Web search | ~$0.001 |
| Scholar search | ~$0.002 |
| Smart search | ~$0.002 |
| Tavily search | ~$0.002 |
| Explain | ~$0.003 |

Every response includes `usage.cost` and `usage.credits_remaining`.

---

## Get Started

1. Sign up at [aisa.one](https://aisa.one)
2. Get your API key
3. Add credits (pay-as-you-go)
4. Set environment variable: `export AISA_API_KEY="your-key"`

## Full API Reference

See [API Reference](https://aisa.mintlify.app/api-reference/introduction) for complete endpoint documentation.

## Resources

- [AIsa Verity](https://github.com/AIsa-team/verity) - Reference implementation of confidence-scored search agent
- [AIsa Documentation](https://aisa.mintlify.app) - Complete API documentation

Related Skills

tavily-search

3891
from openclaw/skills

Use Tavily API for real-time web search and content extraction. Use when: user needs real-time web search results, research, or current information from the web. Requires Tavily API key.

Data & Research

baidu-search

3891
from openclaw/skills

Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.

Data & Research

search-cluster

3891
from openclaw/skills

Aggregated search aggregator using Google CSE, GNews RSS, Wikipedia, Reddit, and Scrapling.

Data & Research

exa-web-search-free

3891
from openclaw/skills

Free AI search via Exa MCP. Web search for news/info, code search for docs/examples from GitHub/StackOverflow, company research for business intel. No API key needed.

Data & Research

duckduckgo-search

3891
from openclaw/skills

Performs web searches using DuckDuckGo to retrieve real-time information from the internet. Use when the user needs to search for current events, documentation, tutorials, or any information that requires web search capabilities.

Data & Research

openclaw-stock-skill

3891
from openclaw/skills

使用 data.diemeng.chat 提供的接口查询股票日线、分钟线、财务指标等数据,支持 A 股等市场。

Data & Research

youtube-search

3891
from openclaw/skills

YouTube Search API via AIsa unified endpoint. Search YouTube videos, channels, and playlists with a single AIsa API key — no Google API key or OAuth required. Use this skill when users want to search YouTube content. For other AIsa capabilities (LLM, financial data, Twitter, web search), see the aisa-core skill.

Data & Research

X/Twitter Research Skill

3891
from openclaw/skills

Research trending topics, ideas, and conversations on X (Twitter) using twitterapi.io.

Data & Research

token-research

3891
from openclaw/skills

Comprehensive token research for EVM chains (Base, ETH, Arbitrum) and Solana. Use this skill when you want to research crypto tokens, deep-dive projects or monitor tokens.

Data & Research

notebooklm

3891
from openclaw/skills

Google NotebookLM 非官方 Python API 的 OpenClaw Skill。支持内容生成(播客、视频、幻灯片、测验、思维导图等)、文档管理和研究自动化。当用户需要使用 NotebookLM 生成音频概述、视频、学习材料或管理知识库时触发。

Data & Research

aisa-tavily

3891
from openclaw/skills

AI-optimized web search via AIsa's Tavily API proxy. Returns concise, relevant results for AI agents through AIsa's unified API gateway.

Data & Research

Market Sizing — TAM/SAM/SOM Calculator

3891
from openclaw/skills

Build defensible market sizing for any product, pitch deck, or business case. Top-down and bottom-up methodologies combined.

Data & Research