Get the FREE Ultimate OpenClaw Setup Guide →
k

Perplexity Web Search

Verified

@aligurelli

npx machina-cli add skill @aligurelli/perplexity-web-search --openclaw
Files (1)
SKILL.md
3.6 KB

Web Search Skill

Web search via Perplexity (default: sonar) and URL content fetching. Sonar-pro is optional for deeper analysis.

Credentials

This skill uses the Perplexity key configured in your OpenClaw setup. No shared or third-party keys are used.

If your environment is not already configured, set PERPLEXITY_API_KEY or configure the key in OpenClaw config.

Recommended default (cost-effective):

{
  tools: {
    web: {
      search: {
        provider: "perplexity",
        perplexity: {
          apiKey: "<your-perplexity-api-key>",
          baseUrl: "https://api.perplexity.ai",
          model: "sonar"
        }
      }
    }
  }
}

Optional deep mode (higher quality, higher cost):

{
  tools: {
    web: {
      search: {
        perplexity: {
          model: "sonar-pro"
        }
      }
    }
  }
}

Use sonar-pro only when you explicitly need deeper analysis.

Get your API key at: https://www.perplexity.ai/settings/api

Data Handling

  • All search queries are sent to Perplexity's API (https://api.perplexity.ai)
  • web_fetch fetched page contents are processed locally by OpenClaw (not sent to Perplexity)
  • This instruction-only skill does not persist data by itself; query handling/retention is governed by OpenClaw + Perplexity policies
  • Search queries are sent to Perplexity; do not include secrets or private data in queries
  • Your own Perplexity API key and account terms apply

web_search

Search the web. Returns AI-synthesized answers with citations.

Parameters:

  • query (required) — search query
  • count (1-10) — number of results
  • country — 2-letter code: TR, US, DE, ALL
  • search_lang — result language: tr, en, de, fr
  • freshness — time filter: pd (day), pw (week), pm (month), py (year)

Including Social Platform Results

For market research or user feedback queries, add social platform names naturally to the query. This makes Perplexity include results from Reddit, Twitter, Quora etc. alongside normal web results — no filtering, no restriction, just broader coverage.

web_search(query="cell tower finder app complaints features users want reddit twitter quora")

Perplexity will pull from both regular websites AND social platforms in one search.

For cases where you ONLY want a specific platform, use site: operator:

web_search(query="site:reddit.com best stud finder app")

Examples:

web_search(query="latest Flutter updates", freshness="pw")
web_search(query="İstanbul hava durumu", country="TR", search_lang="tr")
web_search(query="AI news", count=5, freshness="pd")
web_search(query="GLP-1 tracker app wish features complaints reddit twitter quora")

web_fetch

Fetch URL content as markdown/text. No JS execution. Content is extracted locally.

Parameters:

  • url (required) — HTTP/HTTPS URL
  • extractMode — markdown (default) or text
  • maxChars — truncation limit

Perplexity Models (User Choice)

  • sonar (default) — fast Q&A + web search, cost-effective
  • sonar-pro — multi-step reasoning + web search (use when deeper analysis is needed)
  • sonar-reasoning-pro — deep chain-of-thought research (expensive, use sparingly)

Set the model in config based on your budget/quality preference.

Source

git clone https://clawhub.ai/aligurelli/perplexity-web-searchView on GitHub

Overview

Perplexity-based web search uses Perplexity (default sonar; optional sonar-pro) to search the web and fetch URL content. It returns AI-synthesized answers with citations and can pull page content via web_fetch for local processing. Credential handling relies on PERPLEXITY_API_KEY configured in OpenClaw.

How This Skill Works

Configure a Perplexity model in your OpenClaw settings (sonar by default, sonar-pro for deeper analysis). Use web_search to query the web; Perplexity returns synthesized results with citations. For raw page content, call web_fetch on a URL; content is extracted locally and not sent back to Perplexity.

When to Use It

  • You need up-to-date information or news and want results with citations.
  • You want to summarize or extract content from a specific URL.
  • You are doing market research and want results from social platforms included in the results.
  • You require deeper, multi-step analysis by enabling sonar-pro for complex topics.
  • You want a cost-effective quick Q&A with web-sourced citations.

Quick Start

  1. Step 1: Ensure PERPLEXITY_API_KEY is configured in OpenClaw (or in your config).
  2. Step 2: Run web_search(query="your query", count=5, freshness="pd", country="US").
  3. Step 3: If you need the original page content, call web_fetch(url="https://example.com").

Best Practices

  • Specify country and language when relevant using the country and search_lang parameters.
  • Use freshness and count to control recency and scope of results.
  • Use site: filters to target specific platforms or domains.
  • Switch to sonar-pro only when deeper, multi-step analysis is needed.
  • Do not include secrets or private data in queries; follow API key/privacy guidelines.

Example Use Cases

  • Research latest Flutter updates and pull citations for a product roadmap.
  • Compare feature sets across vendors and summarize the differences.
  • Fetch and summarize content from a key URL (e.g., a news article or whitepaper).
  • Include social platforms (reddit/twitter/quora) to gauge public sentiment on a topic.
  • Verify claims by cross-referencing multiple sources with cited results.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers