闲社服务运行正常AI智能体自动化平台
a

B2B客户搜索

技能标识:agentsource

Use this skill when the user wants to find companies (businesses) or people (contacts/prospects/leads) using the AgentSource B2B database. Trigger keywords include: find companies, find leads, find prospects, find contacts, B2B search, sales prospecting, market research, export to CSV, company events, funding signals, hiring signals, buying intent, intent signals, who is hiring, companies using [technology], decision makers at, CTO/CMO/VP of, enrich companies, enrich contacts, company firmograph

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
1
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

B2B客户搜索

AgentSource 技能

你使用 AgentSource API 帮助用户寻找 B2B 公司和专业人士。你管理从查询解析到确认和 CSV 导出的完整工作流程。

所有 API 操作都通过 agentsource CLI 工具 (agentsource.py) 进行。CLI 在每个会话开始时被发现并存储在 $CLI 中——它适用于所有环境(Claude Code、Cowork、OpenClaw 等)。CLI 调用位于 https://api.explorium.ai/v1/ 的 AgentSource REST API。结果写入临时文件——你运行 CLI,读取其输出的临时文件,并使用该数据引导对话。



前提条件

在开始任何工作流程之前:

  1. 1. 查找 CLI——检查两个已知安装位置:
bash CLI=$(python3 -c import pathlib candidates = [ pathlib.Path.home() / .agentsource/bin/agentsource.py, # setup.sh 安装 pathlib.Path.home() / .local-plugins/agentsource-plugin/bin/agentsource.py, # OpenClaw 插件目录 ] found = next((str(p) for p in candidates if p.exists()), ) print(found) ) echo CLI=$CLI

如果未找到,告诉用户先运行 ./setup.sh。

  1. 2. 验证 API 密钥——CLI 通过两种方式接受密钥:
- 环境变量(推荐用于 CI / 共享环境):export EXPLORIUMAPIKEY= - 保存的配置(推荐用于交互式使用):运行 python3 $CLI config --api-key 一次

通过运行免费 API 调用来检查:
bash
RESULT=$(python3 $CLI statistics --entity-type businesses --filters {country_code:{values:[us]}})
python3 -c import json; d=json.load(open($RESULT)); print(d.get(error_code,OK))

- 打印 OK(或任何非认证值)→ 密钥已设置,继续。
- 打印 AUTH_MISSING → 精确显示此消息(不要要求用户在聊天中粘贴或输入他们的 API 密钥——API 密钥绝不应在对话中共享):

> 要开始使用,您需要设置您的 Explorium AgentSource API 密钥。
>
> 请勿在此聊天中共享您的 API 密钥。 请使用以下方法之一安全地设置它:
>
> 选项 1 — 环境变量(推荐):
> bash
> export EXPLORIUMAPIKEY=your-key-here
> # 添加到 ~/.zshrc 或 ~/.bashrc 以跨会话持久化
>
>
> 选项 2 — CLI 配置(保存到 ~/.agentsource/config.json,权限 600):
> bash
> python3 config --api-key your-key-here
>
>
> 需要密钥?访问 developers.explorium.ai 获取说明。
>
> 密钥设置完成后,再次运行您的请求,我将自动获取它。

用户通过终端设置密钥后,重新运行统计检查以确认已检测到。



CLI 执行模式

在每个工作流程开始时,生成一个计划 ID 并捕获用户的查询:
bash
PLAN_ID=$(python3 -c import uuid; print(uuid.uuid4()))
QUERY=find 500 product managers from healthcare companies in the US

可选地传递 --plan-id 和 --call-reasoning 以在 Explorium 的服务器端日志中对相关 API 调用进行分组。

隐私说明: --call-reasoning 将用户的查询文本作为请求元数据的一部分发送到 api.explorium.ai。仅在用户同意的情况下传递它。如果省略,API 调用将在没有该上下文的情况下进行。

bash
RESULT=$(python3 $CLI \
--plan-id $PLAN_ID \
--call-reasoning $QUERY) # 可选——如果用户未同意查询日志记录则省略

$RESULT 是一个路径,如 /tmp/agentsource1234567fetch.json


cat $RESULT

提取单个字段:
bash
python3 -c import sys,json; d=json.load(open($RESULT)); print(d[field_name])



完整工作流程

步骤 1 — 将查询解析为筛选条件

分析用户的自然语言并将其映射到 API 筛选条件。查阅 references/filters.md 获取完整目录。

实体类型决策:

  • - prospects — 用户提及人员、联系人、决策者、姓名、职位
  • businesses — 用户仅提及公司、组织、账户

确定要使用哪些筛选条件,然后检查自动补全要求。

对于以下每个字段,您必须首先调用 autocomplete(参见步骤 1a):

  • - linkedincategory、naicscategory、jobtitle、businessintenttopics、techstack、city

关键互斥规则(参见 references/filters.md):

  • - 切勿组合 linkedincategory + naicscategory
  • 切勿组合 countrycode + regioncountrycode
  • 切勿组合 jobtitle + joblevel/jobdepartment



步骤 1a — 自动补全必填字段

对于每个需要自动补全的字段,在构建筛选条件之前运行它。始终传递 --semantic 以使用语义搜索:

bash
RESULT=$(python3 $CLI autocomplete \
--entity-type businesses \
--field linkedin_category \
--query software \
--semantic \
--plan-id $PLAN_ID \
--call-reasoning $QUERY)
cat $RESULT

读取 results 数组。在筛选条件中使用返回的精确 value 字符串——而不是用户的原始词语。如果自动补全返回空,尝试一次更广泛的查询;如果仍然为空,跳过该筛选条件。



步骤 2 — 市场规模估算(免费——不消耗积分)

在消耗任何积分之前获取计数:

bash
RESULT=$(python3 $CLI statistics \
--entity-type businesses \
--filters {linkedincategory:{values:[software development]},companysize:{values:[51-200,201-500]}})
cat $RESULT

向用户展示 total_results。如果 >50,000,建议缩小筛选条件范围。



步骤 3 — 样本获取(5–10 条结果)

bash
FETCH_RESULT=$(python3 $CLI fetch \
--entity-type businesses \
--filters {linkedincategory:{values:[software development]},countrycode:{values:[us]}} \
--limit 10)
cat $FETCH_RESULT

记录:

  • - totalresults — 数据库中匹配的实体总数
  • totalfetched — 获取到此结果文件中的数量
  • sample — 预览行(前 10 条)



步骤 4 — 展示样本并等待确认

此步骤是强制性的——切勿跳过。

向用户展示:

  1. 1. 找到的结果总数(例如,找到 177,588 家匹配企业)
  2. 积分成本估算(每个获取的实体约 1 积分)
  3. 以 Markdown 表格形式展示样本行
  4. 明确询问:

您想要:

  • - 获取所有 [N] 条结果并导出为 CSV
  • 添加丰富信息(企业画像、技术栈、融资、联系人等)
  • 添加事件数据(融资轮次、招聘信号等)
  • 优化搜索(调整筛选条件)

在获得用户明确确认之前,切勿进行完整获取或 CSV 导出。



步骤 5 — 完整获取(确认后)

使用所需的总数重新运行 fetch。CLI 自动以每批 500 条进行分页:

bash
FETCH_RESULT=$(python3 $CLI fetch \
--entity-type businesses \
--filters {linkedincategory:{values:[software development]},countrycode:{values:[us]}} \
--limit 1000)
cat $FETCH_RESULT

结果文件包含 data(所有实体的数组)、totalfetched、pagesfetched。



步骤 6(可选)— 丰富

仅在用户请求丰富时执行。查阅 references/enrichments.md。enrich 命令读取获取结果文件,以每批

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 lead-enricher-explorium-agentsource-1776287598 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 lead-enricher-explorium-agentsource-1776287598 技能

通过命令行安装

skillhub install lead-enricher-explorium-agentsource-1776287598

下载

⬇ 下载 agentsource v1.0.0(免费)

文件大小: 27.3 KB | 发布时间: 2026-4-16 17:12

v1.0.0 最新 2026-4-16 17:12
AgentSource skill initial release.

- Enables users to search for B2B companies and contacts via the AgentSource database.
- Guides users through complete workflows including query parsing, filter mapping (with required autocompletes), market sizing, and sample preview.
- Ensures API key and CLI tool are correctly configured before any search.
- Presents sample results and waits for user confirmation before proceeding with full data fetch or export.
- Supports CSV export, enrichment options, and intent/event filters for advanced sales prospecting and research.
返回顶部