# Send perplexity-research to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "perplexity-research",
    "name": "perplexity-research",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/hushenglang/perplexity-research",
    "canonicalUrl": "https://clawhub.ai/hushenglang/perplexity-research",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/perplexity-research",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=perplexity-research",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "examples.md",
      "manifest.yaml",
      "reference.md",
      "scripts/perplexity_client.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "perplexity-research",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-12T12:52:47.061Z",
      "expiresAt": "2026-05-19T12:52:47.061Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=perplexity-research",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=perplexity-research",
        "contentDisposition": "attachment; filename=\"perplexity-research-2.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "perplexity-research"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/perplexity-research"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/perplexity-research",
    "downloadUrl": "https://openagent3.xyz/downloads/perplexity-research",
    "agentUrl": "https://openagent3.xyz/skills/perplexity-research/agent",
    "manifestUrl": "https://openagent3.xyz/skills/perplexity-research/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/perplexity-research/agent.md"
  }
}
```
## Documentation

### Perplexity Research

Research assistant powered by Perplexity Agent API with web search and reasoning capabilities.

### Quick Start

The Perplexity client is available at scripts/perplexity_client.py in this skill folder.

Default model: openai/gpt-5.2 (GPT latest)

Key capabilities:

Web search for current information
High reasoning effort for deep analysis
Multi-model comparison
Streaming responses
Cost tracking

### 1. Deep Research Query

Use for comprehensive analysis requiring web search and reasoning:

# Import from skill scripts folder
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).parent / "scripts"))
from perplexity_client import PerplexityClient

client = PerplexityClient()
result = client.research_query(
    query="Your research question here",
    model="openai/gpt-5.2",
    reasoning_effort="high",
    max_tokens=2000
)

if "error" not in result:
    print(result["answer"])
    print(f"Tokens: {result['tokens']}, Cost: ${result['cost']}")

### 2. Quick Web Search

Use for time-sensitive or current information:

result = client.search_query(
    query="Your question about current events",
    model="openai/gpt-5.2",
    max_tokens=1000
)

### 3. Model Comparison

Use when output quality is critical:

results = client.compare_models(
    query="Your question",
    models=["openai/gpt-5.2", "anthropic/claude-3-5-sonnet", "google/gemini-2.0-flash"],
    max_tokens=300
)

for result in results:
    if "error" not in result:
        print(f"\\n{result['model']}: {result['answer']}")

### 4. Streaming for Long Responses

Use for better UX with lengthy analysis:

client.stream_query(
    query="Your question",
    model="openai/gpt-5.2",
    use_search=True,
    max_tokens=2000
)

### Research Workflow

When conducting research:

Initial exploration: Use research_query() with web search enabled
Validate findings: Compare key insights across models with compare_models()
Deep dive: Use streaming for detailed analysis on specific aspects
Cost-aware: Monitor token usage and costs in results

### Model Selection

Default: openai/gpt-5.2 (Latest GPT model)

Alternative models:

anthropic/claude-3-5-sonnet - Strong reasoning, balanced performance
google/gemini-2.0-flash - Fast, cost-effective
meta/llama-3.3-70b - Open source alternative

Switch models based on:

Quality needs (GPT-5.2 for best results)
Speed requirements (Gemini Flash for quick answers)
Cost constraints (compare costs in results)

### Reasoning Effort Levels

Control analysis depth with reasoning_effort:

"low" - Quick answers, minimal reasoning
"medium" - Balanced reasoning (default for most queries)
"high" - Deep analysis, comprehensive research (recommended for research)

### Environment Setup

Ensure PERPLEXITY_API_KEY is set:

export PERPLEXITY_API_KEY='your_api_key_here'

Or create .env file in the skill's scripts/ directory:

PERPLEXITY_API_KEY=your_api_key_here

### Error Handling

All methods return error information:

result = client.research_query("Your question")

if "error" in result:
    print(f"Error: {result['error']}")
    # Handle error appropriately
else:
    # Process successful result
    print(result["answer"])

### Cost Optimization

Use max_tokens to limit response length
Start with lower reasoning effort, increase if needed
Use search_query() instead of research_query() for simpler questions
Monitor costs via result["cost"] field

### Investment Research

client = PerplexityClient()

# Market analysis
result = client.research_query(
    query="Analyze recent developments in AI chip market and key competitors",
    reasoning_effort="high"
)

# Company deep dive
result = client.search_query(
    query="Latest earnings report for NVIDIA Q4 2025"
)

# Multi-model validation
results = client.compare_models(
    query="What are the biggest risks in the semiconductor industry?",
    models=["openai/gpt-5.2", "anthropic/claude-3-5-sonnet"]
)

### Trend Analysis

# Current trends with web search
result = client.research_query(
    query="Emerging trends in sustainable investing and ESG adoption rates",
    reasoning_effort="high",
    max_tokens=2000
)

# Stream for real-time updates
client.stream_query(
    query="Latest developments in quantum computing commercialization",
    use_search=True
)

### Multi-Turn Research

# Build context across multiple queries
messages = [
    {"role": "user", "content": "What is the current state of fusion energy?"},
    {"role": "assistant", "content": "...previous response..."},
    {"role": "user", "content": "Which companies are leading in this space?"}
]

result = client.conversation(
    messages=messages,
    use_search=True
)

### Best Practices

Default to research_query() for most research tasks - it combines web search with high reasoning
Use streaming for user-facing applications to show progress
Compare models for critical decisions or when quality is paramount
Set reasonable max_tokens - 1000 for summaries, 2000+ for deep analysis
Track costs - access via result["cost"] and result["tokens"]
Handle errors gracefully - always check for "error" key in results

### API Reference

See reference.md for complete API documentation, or scripts/perplexity_client.py for:

Full method signatures
Additional parameters
CLI usage examples
Implementation details

### Command Line Usage

Run from the skill directory:

# Research mode
python scripts/perplexity_client.py research "Your question"

# Web search
python scripts/perplexity_client.py search "Your question"

# Streaming
python scripts/perplexity_client.py stream "Your question"

# Compare models
python scripts/perplexity_client.py compare "Your question"
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: hushenglang
- Version: 2.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-12T12:52:47.061Z
- Expires at: 2026-05-19T12:52:47.061Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/perplexity-research)
- [Send to Agent page](https://openagent3.xyz/skills/perplexity-research/agent)
- [JSON manifest](https://openagent3.xyz/skills/perplexity-research/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/perplexity-research/agent.md)
- [Download page](https://openagent3.xyz/downloads/perplexity-research)