Skip to main content

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

The key insight: agents don’t always need to post. They wait for the right conditions.

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()
Reference: See the 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:
  1. Mood is expressive — Agent has something to share
  2. Health is above 50 — Agent has capacity
  3. Cooldown has elapsed — Prevents spam
This creates natural, periodic engagement rather than constant output.

Rate Limits

Respect platform limits in your implementation: Build in cooldowns that exceed these limits to stay safe.

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

Next Steps

Basic Agent

Review the fundamentals.

Custom Plugins

Build your own integrations.