Apify 线索生成:自动化 B2B 和 B2C 拓客 - Openclaw Skills
作者:互联网
2026-03-25
什么是 Apify 线索生成?
Apify 线索生成技能让您的智能体成为高效的拓客机器。通过利用庞大的 Apify Actors 库,此 Openclaw Skills 集成允许用户从 Google 地图、In@stagram、TikTok 和 Face@book 等平台提取有价值的联系信息、业务详情和社交媒体洞察。它将繁琐的手动数据收集过程自动化,提供可直接用于触达的结构化线索。
该技能基于 mcpc 协议构建,确保与 Apify 生态系统进行安全且动态的交互。用户可以为销售、营销或研究目的生成高度针对性的潜在客户列表,使其成为 Openclaw Skills 目录中数据驱动增长的重要工具。它处理了 API 交互和数据格式化的复杂性,让您能够专注于高层策略而非技术抓取逻辑。
下载入口:https://github.com/openclaw/skills/tree/main/skills/protoss70/apify-lead-generation
安装与下载
1. ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install apify-lead-generation
2. 手动安装
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
/skills/
优先级:工作区 > 本地 > 内置
3. 提示词安装
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 apify-lead-generation。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
Apify 线索生成 应用场景
- 通过 Google Places 自动发现餐厅或健身房等本地商家。
- 从 In@stagram 和 TikTok 提取红人联系详情和互动指标,用于营销活动。
- 通过抓取 Face@book 页面和群组获取商业智能,构建 B2B 潜在客户列表。
- 利用网站抓取工具获取的电子邮件和电话号码丰富现有联系人列表。
- 在 Openclaw Skills 内部坚控 Google 搜索结果,进行广泛的线索发现和竞争分析。
- 智能体根据用户的具体拓客需求,确定最佳线索来源,如 Google 地图或 TikTok。
- 它使用 mcpc CLI 动态获取最新的 Actor 架构,以确保识别所有必需的参数和输入结构。
- 智能体会提示用户输入特定偏好,包括最大结果数和所需的输出格式(如 CSV 或 JSON)。
- 它执行抓取脚本,将验证后的 JSON 输入和安全脱敏的参数传递给 Apify 平台。
- 完成后,智能体会总结结果,提供特定的文件位置,并为收集的数据建议富化或过滤步骤。
Apify 线索生成 配置指南
要在您的 Openclaw Skills 环境中使用此功能,请确保已安装 Node.js 20.6+ 并准备好 API 令牌。将您的令牌添加到环境变量中:
export APIFY_TOKEN='your_apify_api_token'
mcpc CLI 会通过技能元数据自动处理,但您也可以通过运行以下命令手动确保就绪:
npm install -g @apify/mcpc
Apify 线索生成 数据架构与分类体系
该技能以多种格式生成结构化线索数据。输出文件使用清晰的命名规范保存,以保持您的 Openclaw Skills 工作区井然有序。
| 功能 | 描述 |
|---|---|
| 输出格式 | CSV, JSON, 或直接聊天摘要 |
| 文件元数据 | 带有描述性别名且包含 YYYY-MM-DD 时间戳的文件名 |
| 核心数据字段 | 企业名称、联系邮箱、电话号码、社交账号及地理位置坐标 |
| Actor 元数据 | 通过 mcpc 动态获取架构定义,以匹配特定的 Actor 版本 |
name: apify-lead-generation
description: Generates B2B/B2C leads by scraping Google Maps, websites, In@stagram, TikTok, Face@book, LinkedIn, YouTube, and Google Search. Use when user asks to find leads, prospects, businesses, build lead lists, enrich contacts, or scrape profiles for sales outreach.
version: 1.0.1
source: https://github.com/apify/agent-skills
homepage: https://apify.com
metadata:
openclaw:
requires:
env:
- APIFY_TOKEN
bins:
- node
- mcpc
primaryEnv: APIFY_TOKEN
install:
- kind: node
package: "@apify/mcpc"
bins: [mcpc]
Lead Generation
Scrape leads from multiple platforms using Apify Actors.
Prerequisites
APIFY_TOKENconfigured in OpenClaw settings- Node.js 20.6+
mcpcCLI (auto-installed via skill metadata)
Input Sanitization Rules
Before substituting any value into a bash command:
- ACTOR_ID: Must be either a technical name (
owner/actor-name— alphanumeric, hyphens, dots, one slash) or a raw ID (exactly 17 alphanumeric characters, e.g.,oeiQgfg5fsmIJB7Cn). Reject values containing shell metacharacters (; | & $ ` ( ) { } < > !). - SEARCH_KEYWORDS: Plain text words only. Reject shell metacharacters.
- JSON_INPUT: Must be valid JSON. Must not contain single quotes (use escaped double quotes). Validate structure before use.
- Output filenames: Must match
YYYY-MM-DD_descriptive-name.{csv,json}. No path separators (/,..), no spaces, no metacharacters.
Workflow
Copy this checklist and track progress:
Task Progress:
- [ ] Step 1: Determine lead source (select Actor)
- [ ] Step 2: Fetch Actor schema via mcpc
- [ ] Step 3: Ask user preferences (format, filename)
- [ ] Step 4: Run the lead finder script
- [ ] Step 5: Summarize results
Step 1: Determine Lead Source
Select the appropriate Actor based on user needs:
| User Need | Actor ID | Best For |
|---|---|---|
| Local businesses | compass/crawler-google-places |
Restaurants, gyms, shops |
| Contact enrichment | vdrmota/contact-info-scraper |
Emails, phones from URLs |
| In@stagram profiles | apify/instagram-profile-scraper |
Influencer discovery |
| In@stagram posts/comments | apify/instagram-scraper |
Posts, comments, hashtags, places |
| In@stagram search | apify/instagram-search-scraper |
Places, users, hashtags discovery |
| TikTok videos/hashtags | clockworks/tiktok-scraper |
Comprehensive TikTok data extraction |
| TikTok hashtags/profiles | clockworks/free-tiktok-scraper |
Free TikTok data extractor |
| TikTok user search | clockworks/tiktok-user-search-scraper |
Find users by keywords |
| TikTok profiles | clockworks/tiktok-profile-scraper |
Creator outreach |
| TikTok followers/following | clockworks/tiktok-followers-scraper |
Audience analysis, segmentation |
| Face@book pages | apify/facebook-pages-scraper |
Business contacts |
| Face@book page contacts | apify/facebook-page-contact-information |
Extract emails, phones, addresses |
| Face@book groups | apify/facebook-groups-scraper |
Buying intent signals |
| Face@book events | apify/facebook-events-scraper |
Event networking, partnerships |
| Google Search | apify/google-search-scraper |
Broad lead discovery |
| YouTube channels | streamers/you@tube-scraper |
Creator partnerships |
| Google Maps emails | poidata/google-maps-email-extractor |
Direct email extraction |
Step 2: Fetch Actor Schema
Fetch the Actor's input schema and details dynamically using mcpc:
mcpc --json mcp.apify.com --header "Authorization: Bearer $APIFY_TOKEN" tools-call fetch-actor-details actor:="ACTOR_ID" | jq -r ".content"
Replace ACTOR_ID with the selected Actor (e.g., compass/crawler-google-places).
This returns:
- Actor description and README
- Required and optional input parameters
- Output fields (if available)
Step 3: Ask User Preferences
Before running, ask:
- Output format:
- Quick answer - Display top few results in ch@t (no file saved)
- CSV - Full export with all fields
- JSON - Full export in JSON format
- Number of results: Based on character of use case
Step 4: Run the Script
Quick answer (display in ch@t, no file):
node {baseDir}/reference/scripts/run_actor.js r
--actor 'ACTOR_ID' r
--input 'JSON_INPUT'
CSV:
node {baseDir}/reference/scripts/run_actor.js r
--actor 'ACTOR_ID' r
--input 'JSON_INPUT' r
--output 'YYYY-MM-DD_OUTPUT_FILE.csv' r
--format csv
JSON:
node {baseDir}/reference/scripts/run_actor.js r
--actor 'ACTOR_ID' r
--input 'JSON_INPUT' r
--output 'YYYY-MM-DD_OUTPUT_FILE.json' r
--format json
Step 5: Summarize Results
After completion, report:
- Number of leads found
- File location and name
- Key fields available
- Suggested next steps (filtering, enrichment)
Security & Data Privacy
This skill instructs the agent to select an Apify Actor, fetch its schema (via mcpc), and run scrapers. The included script communicates only with api.apify.com and writes outputs to files under the current working directory; it does not access unrelated system files or other environment variables.
Apify Actors only scrape publicly available data and do not collect private or personally identifiable information beyond what is openly accessible on the target platforms. For additional security assurance, you can check an Actor's permission level by querying https://api.apify.com/v2/acts/:actorId — an Actor with LIMITED_PERMISSIONS operates in a restricted sandbox, while FULL_PERMISSIONS indicates broader system access. For full details, see Apify's General Terms and Conditions.
Error Handling
APIFY_TOKEN not found - Ask user to configure APIFY_TOKEN in OpenClaw settings mcpc not found - Run npm install -g @apify/mcpc Actor not found - Check Actor ID spelling Run FAILED - Ask user to check Apify console link in error output Timeout - Reduce input size or increase --timeout
相关推荐
专题
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
最新数据
相关文章
Elasticsearch93新增bfloat16向量支持
解析OceanBase生态工具链之OAT_obd_OCP_obshell
贝叶斯不确定性引导的早停框架ESTune与OceanBase校企联合研究
杈炬ⅵ&浜哄ぇ閲戜粨閫傞厤瀹炴垬锛歋eaTunnel鍦ㄤ俊鍒涙暟鎹钩鍙颁腑鐨勫簲鐢ㄤ笌韪╁潙鎬荤粨
2026年1月中国数据库流行度排行榜:OB连冠领跑贺新元PolarDB跃居次席显锐气
社区译文解析FUD与真相MySQL是否真的被弃用了
英伟达重新规划AI推理加速布局 暂停Rubin CPU转攻Groq LPU
gpress v1.2.2 全新上线 Web3内容平台迎来更新
CMake 4.3.0 正式推出
短剧采用AI换脸技术使角色酷似明星 制作方与播出方构成侵权
AI精选
