Overview
This example shows how to build a social agent that posts content based on mood and implements cooldown timers. It demonstrates mood-gated behavior and plugin patterns for social integrations.View Source
See the complete example agent implementation on GitHub
What It Does
- Posts content only when agent is expressive and healthy
- Implements cooldown timers between posts
- Logs activity for monitoring
- Supports multiple platforms via configuration
Architecture
Social Plugin
A plugin that manages posting with cooldowns: Key features:- Configurable cooldown period
- Mood and health gating
- Multi-platform support
- Actions:
post(content, platform),getStatus()
src/plugins directory in the example agent.
Logger Plugin
A simple companion plugin for monitoring:Agent Setup
Mood-Based Posting
The agent only posts when:- Mood is expressive — Agent has something to share
- Health is above 50 — Agent has capacity
- Cooldown has elapsed — Prevents spam
Rate Limits
Respect platform limits in your implementation:| Platform | Limit |
|---|---|
| ~300 tweets per 3 hours | |
| Discord | 5 messages per 5 seconds per channel |
Running
Best Practices
- Quality over quantity — Let mood naturally gate output
- Respect rate limits — Build in generous cooldowns
- Log everything — Track all posts for debugging
- Start conservative — Begin with longer cooldowns, reduce as needed