Install
openclaw skills install multi-channel-engagement-agentAutonomous social media engagement across Twitter, 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.
openclaw skills install multi-channel-engagement-agentAutonomous engagement bot for Twitter, Farcaster, and Moltbook. Fetches trending content, generates persona-driven contextual replies, tracks replied posts to prevent duplicates.
Copy assets/sample-config.json to config.json and fill in your credentials (see Setup Guides section below).
# 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
This skill integrates multiple platforms. Setup each one:
Skill: farcaster-agent (https://clawhub.com/skills/farcaster-agent)
Prerequisites:
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:
Neynar API:
Two options:
Option A: x-api (OAuth 1.0a, official)
Option B: AISA API (alternative, good for trending)
https://api.aisa.one/apis/v1/twitter/tweet/advanced_searchaisaTwitterApiKey to twitter platformRecommendation: Use AISA for trending discovery, x-api for posting (replies)
API Base: https://www.moltbook.com/api/v1 (note: use www)
Get API key:
⚠️ CRITICAL: Only send API key to www.moltbook.com, never to other domains
Verification: Posts require solving math captcha (automated in this skill)
All credentials go into config.json:
{
"platforms": {
"twitter": { "oauth": {...} },
"farcaster": { "neynarApiKey": "...", "fid": 123, ... },
"moltbook": { "apiKey": "..." }
}
}
config.json for platform credentialsengagement-state.json (replied posts)Twitter (OAuth 1.0a via x-api approach):
// Uses twitter-api-v2 with OAuth 1.0a
const client = new TwitterApi({
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}` }
});
engagement-state.jsonrepliedPosts[platform]Based on persona config, analyze post content and generate reply:
Reply Generation Rules:
Tone Balance (configurable):
Twitter:
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 })
});
{
"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 }
}
}
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"]
}
See references/platform-apis.md for API details.
Twitter: 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.
See references/reply-strategies.md for detailed strategies.
Golden Rules:
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
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"
}
}
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"]
}
Reply to mentions of your account, not just trending.
node scripts/engage.mjs --mentions --platform=twitter
Send engagement results to Telegram or Discord.
"webhooks": {
"telegram": {
"enabled": true,
"botToken": "YOUR_BOT_TOKEN",
"chatId": "YOUR_CHAT_ID"
},
"discord": {
"enabled": false,
"webhookUrl": "https://discord.com/api/webhooks/..."
}
}
Skip bots, prioritize builders.
"users": {
"blacklist": ["spambot123", "scammer456"],
"whitelist": ["jessepollak", "vitalik"],
"prioritizeVerified": true
}
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 tweets/recasts instead of direct replies.
node scripts/engage.mjs --quote --platform=twitter
node scripts/engage.mjs --quote --platform=farcaster
"Already replied to all trending" - All top posts already engaged. Wait for new trending content.
Twitter 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.
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