多渠道参与代理:自主社交自动化 - Openclaw Skills
作者:互联网
2026-03-26
什么是 多渠道参与代理?
多渠道参与代理是 Openclaw Skills 生态系统中一款强大的自动化工具,使开发者和创作者能够在多个去中心化和传统平台上保持真实的社交存在。通过利用高级 LLM 推理,该代理分析热门话题并生成符合特定用户定义角色的上下文回复。
与通用的垃圾邮件机器人不同,这款 Openclaw Skills 代理优先考虑质量和增值互动。它在本地跟踪状态以防止重复回复,并支持包括 T@witter、Farcaster 和 Moltbook 在内的广泛平台,确保您的参与策略多样化且稳健。
下载入口:https://github.com/openclaw/skills/tree/main/skills/story91/multi-channel-engagement-agent
安装与下载
1. ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install multi-channel-engagement-agent
2. 手动安装
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
/skills/
优先级:工作区 > 本地 > 内置
3. 提示词安装
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 multi-channel-engagement-agent。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
多渠道参与代理 应用场景
- 同时在 Farcaster 和 T@witter 生态系统中扩大品牌知名度。
- 在不失人文关怀的情况下,为 Web3 项目实现社区参与自动化。
- 构建一个数字角色,针对热门行业新闻提供技术见解或专业分析。
- 通过单一自主界面坚控并响应多个社交渠道的提及。
- 代理通过从中央 JSON 文件加载平台凭据和角色配置进行初始化。
- 它使用 Neynar (针对 Farcaster) 或 X API (针对 T@witter) 等 API 从选定平台获取热门内容。
- 该技能检查本地 engagement-state.json,以过滤掉任何已处理的帖子。
- AI 模型分析剩余内容,生成高质量、符合角色的回复。
- 代理通过平台的 API 执行回复或引用转发操作,并更新其内部跟踪状态和分析数据。
多渠道参与代理 配置指南
要将此技能集成到您的 Openclaw Skills 工作流程中,请遵循以下步骤:
- 准备您的配置文件:
cp assets/sample-config.json config.json
- 对于 Farcaster 支持,确保您已安装 farcaster-agent 依赖项并注册了 FID:
clawhub install farcaster-agent
- 通过 OAuth 1.0a 或 AISA API 配置您的 T@witter 凭据以进行搜索优化。
- 为所有已启用的平台运行参与脚本:
node scripts/engage.mjs --all
多渠道参与代理 数据架构与分类体系
多渠道参与代理使用结构化数据模型来保持一致性并防止垃圾信息:
| 文件 | 描述 |
|---|---|
| config.json | 存储特定平台的 API 密钥和全局设置。 |
| engagement-state.json | 跟踪已回复帖子的唯一 ID 和平台特定元数据。 |
| analytics.json | 记录每日互动次数、参与率和平台分布。 |
| persona-config.md | 用于定义 AI 语气、签名表情符号和价值观的 Markdown 指南。 |
name: multi-channel-engagement-agent
description: Autonomous social media engagement across T@witter, Farcaster, and Moltbook. Fetches trending content, generates persona-driven contextual replies, and tracks state to prevent duplicates. Use when you want to engage with trending posts, reply to social media content, build audience through authentic engagement, or automate social presence across multiple platforms. Triggers on "engage on twitter", "farcaster engagement", "reply to trending", "social engagement bot", "multi-platform engagement", "autonomous social replies". Features include content filtering, mention tracking, webhook notifications, user blacklist/whitelist, analytics tracking, and quote tweet/recast support.
Multi-Channel Engagement Agent
Autonomous engagement bot for T@witter, Farcaster, and Moltbook. Fetches trending content, generates persona-driven contextual replies, tracks replied posts to prevent duplicates.
Quick Start
1. Create Config
Copy assets/sample-config.json to config.json and fill in your credentials (see Setup Guides section below).
2. Run Engagement
# Engage on specific platform
node scripts/engage.mjs --platform twitter
node scripts/engage.mjs --platform farcaster
node scripts/engage.mjs --platform moltbook
# Engage on all enabled platforms
node scripts/engage.mjs --all
Dependencies & Setup Guides
This skill integrates multiple platforms. Setup each one:
Farcaster Setup (required for Farcaster engagement)
Skill: farcaster-agent (https://clawhub.com/skills/farcaster-agent)
Prerequisites:
- Minimum $1 ETH or USDC on any chain (Ethereum, Optimism, Base, Arbitrum, Polygon)
- Minimum 0.0005 ETH on Optimism for FID registration
Auto-setup command:
clawhub install farcaster-agent
PRIVATE_KEY=0x... node src/auto-setup.js "Your first cast"
What you'll get:
{
"fid": 123456,
"neynarApiKey": "...",
"signerPrivateKey": "...",
"custodyPrivateKey": "0x..."
}
Cost breakdown:
- FID registration: ~$0.20 (requires 0.0005 ETH + gas)
- Signer key: ~$0.05
- Bridging: ~$0.10-0.20
- Total: ~$0.50 (budget $1 for safety)
Neynar API:
- Free tier: 300 requests/minute
- Get key: https://dev.neynar.com
T@witter Setup (required for T@witter engagement)
Two options:
Option A: x-api (OAuth 1.0a, official)
- Get credentials at https://developer.x.com/en/portal/dashboard
- Create Project → App
- Set permissions: Read and Write
- Rate limits: Tweets 50/15min, Searches 450/15min
Option B: AISA API (alternative, good for trending)
- AISA API endpoint:
https://api.aisa.one/apis/v1/twitter/tweet/advanced_search - Get API key at https://aisa.one
- Searches via AISA are fast and reliable for trending
- Config: add
aisaT@witterApiKeyto twitter platform
Recommendation: Use AISA for trending discovery, x-api for posting (replies)
Moltbook Setup (required for Moltbook engagement)
API Base: https://www.moltbook.com/api/v1 (note: use www)
Get API key:
- Register at https://www.moltbook.com
- Get token from account settings
- Verify: https://www.moltbook.com/api/v1/posts
?? CRITICAL: Only send API key to www.moltbook.com, never to other domains
Verification: Posts require solving math captcha (automated in this skill)
Summary Config
All credentials go into config.json:
{
"platforms": {
"twitter": { "oauth": {...} },
"farcaster": { "neynarApiKey": "...", "fid": 123, ... },
"moltbook": { "apiKey": "..." }
}
}
Core Workflow
Step 1: Load Configuration
- Read
config.jsonfor platform credentials - Load persona settings (tone, values, style)
- Load state from
engagement-state.json(replied posts)
Step 2: Fetch Trending
T@witter (OAuth 1.0a via x-api approach):
// Uses twitter-api-v2 with OAuth 1.0a
const client = new T@witterApi({
appKey: config.twitter.oauth.consumerKey,
appSecret: config.twitter.oauth.consumerSecret,
accessToken: config.twitter.oauth.accessToken,
accessSecret: config.twitter.oauth.accessTokenSecret
});
const trending = await client.v2.search('crypto OR web3 OR base', { max_results: 10 });
Farcaster (Neynar API):
const response = await fetch('https://api.neynar.com/v2/farcaster/feed/trending?limit=5', {
headers: { 'x-api-key': config.farcaster.neynarApiKey }
});
Moltbook:
const response = await fetch('https://www.moltbook.com/api/v1/posts/trending', {
headers: { 'Authorization': `Bearer ${config.moltbook.apiKey}` }
});
Step 3: Filter Already Replied
- Load
engagement-state.json - Filter out posts with IDs in
repliedPosts[platform] - Select random unreplied post from remaining
Step 4: Generate Contextual Reply
Based on persona config, analyze post content and generate reply:
Reply Generation Rules:
- Read the post carefully - understand topic, tone, intent
- Match persona - use configured tone, values, signature emoji
- Add specific value - technical insight, question, or genuine reaction
- Avoid generic praise - no "Great post!", "Love this!"
- Keep it natural - crypto slang if persona dictates, short sentences
Tone Balance (configurable):
- Educational: technical insights, explanations, resources
- Community Vibes: celebration, encouragement, connection
- Humor: wit, self-aware jokes, memes (when appropriate)
Step 5: Post Reply
T@witter:
await client.v2.reply(replyText, originalTweetId);
Farcaster (via farcaster-agent pattern):
// Uses post-cast.js with PARENT_FID + PARENT_HASH
const result = await postCast({
privateKey: config.farcaster.custodyPrivateKey,
signerPrivateKey: config.farcaster.signerPrivateKey,
fid: config.farcaster.fid,
text: replyText,
parentFid: originalCast.author.fid,
parentHash: originalCast.hash
});
Moltbook:
await fetch('https://www.moltbook.com/api/v1/comments', {
method: 'POST',
headers: { 'Authorization': `Bearer ${config.moltbook.apiKey}` },
body: JSON.stringify({ postId, content: replyText })
});
Step 6: Update State
{
"lastUpdated": "2026-02-12T11:00:00Z",
"repliedPosts": {
"twitter": ["1234567890", "0987654321"],
"farcaster": ["0xabc123...", "0xdef456..."],
"moltbook": ["uuid-1", "uuid-2"]
},
"stats": {
"totalReplies": 47,
"byPlatform": { "twitter": 20, "farcaster": 15, "moltbook": 12 }
}
}
Persona Configuration Guide
See references/persona-config.md for detailed persona setup.
Quick Examples:
// Crypto-native builder
{
"tone": "crypto-native, technical, supportive",
"signatureEmoji": "??",
"values": ["shipping", "community", "open-source"],
"phrases": ["ships > talks", "ser", "wagmi", "based"]
}
// Professional analyst
{
"tone": "professional, analytical, educational",
"signatureEmoji": "??",
"values": ["accuracy", "depth", "clarity"],
"phrases": ["data suggests", "worth noting", "key insight"]
}
Platform-Specific Notes
See references/platform-apis.md for API details.
T@witter: OAuth 1.0a required. Rate limits: 50 tweets/15min, 300 tweets/3hr.
Farcaster: Neynar API + x402 payments (0.001 USDC/call). Requires FID + signer key.
Moltbook: API key auth. Verification captcha for posts/comments.
Reply Quality Guidelines
See references/reply-strategies.md for detailed strategies.
Golden Rules:
- Specific > Generic - If you can't add specific value, stay silent
- Quality > Quantity - One thoughtful reply beats five generic ones
- Authentic > Performative - Sound human, not bot
- Value > Visibility - Help the community, don't just farm engagement
What Works: ? Technical questions showing understanding ? Specific insights from experience ? Genuine celebration with substance ? Helpful resources and connections
What Fails: ? Generic praise ("Love this!", "Great post!") ? Corporate speak ("excited to announce") ? Surface-level comments ? Forced humor
Cron Integration
To run automatically, create a cron job:
{
"name": "Multi-Channel Engagement - Every 6h",
"schedule": { "kind": "cron", "expr": "0 */6 * * *" },
"payload": {
"kind": "agentTurn",
"message": "Run multi-channel-engagement-agent: engage on all platforms",
"model": "haiku"
}
}
Advanced Features
Content Filters
Skip spam, scams, and low-quality content automatically.
"filters": {
"skipKeywords": ["airdrop", "free money", "send dm", "check bio"],
"minEngagement": { "likes": 5, "replies": 2 },
"skipBots": true,
"languageFilter": ["en", "es"]
}
Mention Tracking
Reply to mentions of your account, not just trending.
node scripts/engage.mjs --mentions --platform=twitter
Webhook Notifications
Send engagement results to T@elegrimm or Discord.
"webhooks": {
"telegram": {
"enabled": true,
"botToken": "YOUR_BOT_TOKEN",
"ch@tId": "YOUR_CHAT_ID"
},
"discord": {
"enabled": false,
"webhookUrl": "https://discord.com/api/webhooks/..."
}
}
User Blacklist/Whitelist
Skip bots, prioritize builders.
"users": {
"blacklist": ["spambot123", "scammer456"],
"whitelist": ["jessepollak", "vitalik"],
"prioritizeVerified": true
}
Analytics Tracking
Track engagement stats over time in analytics.json.
{
"daily": {
"2026-02-12": {
"replies": 4,
"platforms": { "twitter": 2, "farcaster": 2 },
"engagement": { "likes": 15, "replies": 3 }
}
},
"allTime": {
"totalReplies": 247,
"avgEngagement": 4.2
}
}
Quote Support
Quote tweets/recasts instead of direct replies.
node scripts/engage.mjs --quote --platform=twitter
node scripts/engage.mjs --quote --platform=farcaster
Troubleshooting
"Already replied to all trending" - All top posts already engaged. Wait for new trending content.
T@witter rate limit - Wait 15 minutes. Consider reducing frequency.
Farcaster "unknown fid" - Hub not synced. Wait 30-60 seconds.
Moltbook verification failed - Solve the math captcha in verification response.
Files
scripts/engage.mjs- Main engagement scriptscripts/fetch-trending.mjs- Fetch trending by platformscripts/generate-reply.mjs- Persona-driven reply generationscripts/post-reply.mjs- Post reply to platformreferences/persona-config.md- Persona configuration guidereferences/platform-apis.md- Platform API documentationreferences/reply-strategies.md- Reply quality strategies
相关推荐
专题
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
最新数据
相关文章
信号管道:自动化营销情报工具 - Openclaw Skills
技能收益追踪器:监控 Openclaw 技能并实现变现
AI 合规准备就绪度:评估与治理工具 - Openclaw Skills
FOSMVVM ServerRequest 测试生成器:自动化 API 测试 - Openclaw Skills
酒店搜索器:AI 赋能的住宿与位置情报 - Openclaw Skills
Dub 链接 API:程序化链接管理 - Openclaw Skills
IntercomSwap:P2P BTC 与 USDT 跨链兑换 - Openclaw Skills
spotplay:macOS 原生 Spotify 播放控制 - Openclaw Skills
DeepSeek OCR:AI驱动的图像文本识别 - Openclaw Skills
Web Navigator:自动化网页研究与浏览 - Openclaw Skills
AI精选
