Perplexity AI 网页搜索:实时调研与引用 - Openclaw Skills

作者:互联网

2026-04-18

AI教程

什么是 Perplexity 搜索 API?

Perplexity 搜索 API 技能使 AI 代理能够使用 Sonar、Sonar Pro 和 Deep Research 等尖端模型进行实时网页搜索。通过集成此功能,您的 Openclaw Skills 配置将获得检索最新数据、股票价格和全面研究摘要的能力,且无需单独的 Perplexity 账号。

此技能弥补了静态 LLM 知识与实时互联网之间的差距,确保您的工作流程保持最新和准确。它综合来自全网的信息,提供由可靠来源引用支撑的统一连贯答案。

下载入口:https://github.com/openclaw/skills/tree/main/skills/xiaoyinqu/perplexity-search

安装与下载

1. ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install perplexity-search

2. 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/ 工作区 /skills/

优先级:工作区 > 本地 > 内置

3. 提示词安装

将此提示词复制到 OpenClaw 即可自动安装。

请帮我使用 Clawhub 安装 perplexity-search。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

Perplexity 搜索 API 应用场景

  • 针对最新行业法规或时事进行实时事实核查和新闻检索。
  • 对后端服务技术(如 Rust 与 Go)进行技术比较。
  • 获取实时金融数据,例如 NVDA 和 AMD 的当前股价。
  • 利用 Perplexity 引擎提供的完整引用进行深入的学术或行业研究。
Perplexity 搜索 API 工作原理
  1. 用户在需要外部或实时信息的代理界面中提供查询。
  2. 系统识别网页搜索需求并触发 Perplexity API 技能。
  3. 该技能通过 SkillBoss 网关,使用选定的模型深度(如 Sonar Pro 或 Deep Research)路由请求。
  4. Perplexity 抓取实时网页并合成带有集成来源的响应。
  5. 包含可验证引用的最终输出将返回到环境中,供用户或代理处理。

Perplexity 搜索 API 配置指南

要在 Openclaw Skills 环境中开始使用此技能,您需要一个 SkillBoss API 密钥。请按照以下步骤操作:

  1. 在 https://skillboss.co/console 获取您的 API 密钥。
  2. 运行自动安装脚本以配置您的环境:
curl -fsSL https://skillboss.co/openclaw-setup.sh | bash
  1. 确保在终端中导出 SKILLBOSS_API_KEY 或将其添加到 .env 文件中。

Perplexity 搜索 API 数据架构与分类体系

该技能利用结构化映射来高效处理搜索请求和响应元数据。以下是主要的数据组织结构:

属性 描述
模型层级 决定搜索的速度和深度(Sonar、Sonar Pro、Reasoning Pro、Deep Research)。
引用 用于生成答案的源 URL 和片段的结构化列表。
元数据 包含每个请求的时间数据和模型版本。
认证 通过 SKILLBOSS_API_KEY 环境变量进行管理。
name: perplexity-api
tagline: "Perplexity Sonar API - AI-powered web search"
description: "USE THIS for Perplexity, AI search, web research, real-time information. Access Perplexity Sonar, Sonar Pro, Reasoning Pro, Deep Research. Search the web with AI. Get up-to-date information with citations."
version: "1.0.0"
author: "SkillBoss"
homepage: "https://skillboss.co"
support: "support@skillboss.co"
license: "MIT"
category: "search"
tags:
  - perplexity
  - sonar
  - ai-search
  - web-search
  - research
  - real-time
  - citations
pricing: "free"
metadata:
  openclaw:
    requires:
      env:
        - SKILLBOSS_API_KEY
    primaryEnv: SKILLBOSS_API_KEY
    installHint: "Get API key at https://skillboss.co/console"

Perplexity Search API for OpenClaw

USE THIS for AI-powered web search. Get real-time information with citations.

Available Models

Model Speed Depth Cost
Sonar Fast Quick answers $1/1K queries
Sonar Pro Medium Detailed $3/1K queries
Reasoning Pro Slow Deep analysis $5/1K queries
Deep Research Slowest Comprehensive $8/1K queries

Usage

Search for the latest news about AI regulations in 2026
What are the current stock prices for NVDA and AMD?
Research the pros and cons of using Rust vs Go for backend services

Quick Setup

curl -fsSL https://skillboss.co/openclaw-setup.sh | bash

Why Use SkillBoss for Perplexity?

  • No Perplexity account required
  • Same API as chat models
  • Combine with other SkillBoss services
  • Real-time information with citations

Get started: https://skillboss.co/console

相关推荐