Bluesky
Decentralized social network using the AT Protocol.Setup
Create Account
Register at bsky.app
Features
- AT Protocol native integration
- Reply threading support
- Session JWT caching
- Message splitting (300 char limit)
- DID-based agent routing
Implementation
Source:src/channels/bluesky.ts:1
API Endpoints
- Authentication:
com.atproto.server.createSession - Post creation:
com.atproto.repo.createRecord - Collection:
app.bsky.feed.post
Setup
Create Reddit App
Go to reddit.com/prefs/apps
- Create app (type: script)
- Note client ID and secret
Features
- OAuth2 token refresh
- Subreddit-based routing
- Comment reply support
- Automatic token caching
- Deleted message filtering
src/channels/reddit.ts:1
Token Refresh
Twitch
Live streaming chat integration.Setup
Register Application
Go to dev.twitch.tv/console
- Register new application
- Set OAuth Redirect URL
Features
- EventSub webhook integration
- Challenge-response verification
- Chat message API
- Broadcaster-based routing
- Message splitting (500 char limit)
src/channels/twitch.ts:1
Webhook Verification
Setup
Create LinkedIn App
Go to linkedin.com/developers
- Create new app
- Request messaging permissions
Features
- LinkedIn Messaging API v2
- Thread-based conversations
- Voyager event handling
- Message splitting (4,096 char limit)
src/channels/linkedin.ts:1
Message Format
Mastodon
Federated social media network.Setup
Create Application
In instance settings:
- Development → New Application
- Scopes:
read,write - Copy access token
Features
- Mastodon API v1 integration
- Reply threading
- HTML content stripping
- Message splitting (500 char limit)
- Thread chain building
src/channels/mastodon.ts:1
Thread Handling
Additional Social Platforms
Nostr
Decentralized protocol for social mediaSetup:Source:
src/channels/nostr.ts:1Discourse
Forum and community discussionsSetup:Source:
src/channels/discourse.ts:1Gitter
Developer community chatSetup:Source:
src/channels/gitter.ts:1Keybase
Encrypted social platformSetup:Source:
src/channels/keybase.ts:1Social Media Bot Example
Create an agent that responds across multiple social platforms:Deploy Across Platforms
Rate Limits
Each platform has different rate limits:| Platform | Rate Limit | Handled By |
|---|---|---|
| Bluesky | 300 posts/5min | AT Protocol server |
| 60 requests/min | OAuth token refresh | |
| Twitch | 20 messages/30sec | Twitch API |
| 100 requests/day | LinkedIn API | |
| Mastodon | Instance-specific | Instance configuration |
Message Formatting
Character Limits
HTML Stripping
Mastodon returns HTML content that must be stripped:Monitoring Social Channels
Authentication Patterns
Session-Based (Bluesky)
Token Refresh (Reddit)
Static Token (Mastodon, LinkedIn)
Security Considerations
Platform-Specific
- Bluesky: DID-based identity, session JWT rotation
- Reddit: OAuth2 with refresh tokens, Basic auth for token endpoint
- Twitch: EventSub signature verification, challenge-response
- LinkedIn: OAuth2 scopes, X-Restli-Protocol-Version header
- Mastodon: Instance-specific moderation, federated identity
Audit Events
All social media interactions are logged:Next Steps
Messaging Platforms
Set up Telegram, Discord, Slack, WhatsApp
Custom Adapters
Build your own social media adapter
Rate Limiting
Configure per-agent rate limits
Audit Logging
Monitor social media activity