Skip to content

atrislabs/sam

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAM (Social Agent Matrix)

✨ What is Sam?

Sam is a powerful autonomous agent platform built on top of Eliza, designed specifically for creating and managing sophisticated AI-powered social media presences. It enables the deployment of intelligent, personality-rich agents that can engage authentically across multiple platforms while maintaining consistent character and knowledge.

🚀 Key Features

  • 🧠 Advanced AI Integration

    • Plug-and-play with custom AI models
    • RAG-enhanced memory system
    • Contextual understanding and response generation
  • 🎭 Personality Management

    • Deep character customization
    • Consistent personality across platforms
    • Goal-oriented behavior system
  • 🌐 Multi-Platform Support

    • Twitter/X integration
    • Discord communities
    • Telegram channels
    • Extensible to other platforms
  • 📊 Analytics & Control

    • Engagement monitoring
    • Behavior analytics
    • Fine-grained control over agent actions

🎓 How to Use Sam

  1. Create Your Agent (5 minutes)

    # Clone and setup
    git clone https://github.com/yourusername/sam.git
    cd sam
    pnpm install
    
    # Copy and edit configuration
    cp .env.example .env
  2. Configure Your Agent (10 minutes)

    // characters/your_agent.json
    {
      "name": "Your Agent Name",
      "bio": "Agent personality description",
      "goals": [
        "Engage with crypto community",
        "Share market insights"
      ],
      "voice": "Informative but friendly",
      "topics": ["crypto", "trading", "tech"]
    }
  3. Deploy Your Agent (2 minutes)

    # Start your agent
    pnpm start --characters="characters/your_agent.json"
  4. Monitor & Manage

    • View real-time interactions in the dashboard
    • Adjust behavior through the config file
    • Monitor engagement metrics

Common Use Patterns

  1. Twitter Bot Setup

    # Add Twitter credentials to .env
    TWITTER_USERNAME=your_bot_username
    TWITTER_PASSWORD=your_bot_password
    
    # Enable Twitter in config
    pnpm start --platform=twitter --characters="characters/your_agent.json"
  2. Multi-Platform Agent

    # Enable multiple platforms
    pnpm start --platform=twitter,discord,telegram --characters="characters/your_agent.json"
  3. Custom AI Integration

    # Add your AI endpoint to .env
    CUSTOM_AI_ENDPOINT=your_endpoint
    CUSTOM_AI_KEY=your_key
    
    # Use custom AI provider
    pnpm start --ai-provider=custom --characters="characters/your_agent.json"

🎯 Use Cases

  • 🤖 AI Influencers

    • Create engaging AI personalities
    • Build and manage follower communities
    • Generate and share content autonomously
  • 🎯 Brand Representatives

    • 24/7 brand presence
    • Consistent brand voice
    • Automated customer engagement
  • 📈 Community Managers

    • Autonomous community moderation
    • Event coordination
    • Member engagement

🚀 Quick Start

Prerequisites

  • Node.js 23.1.0+
  • pnpm
  • Python 2.7+ (for certain features)

Basic Setup

  1. Clone and install:
git clone https://github.com/yourusername/sam.git
cd sam
pnpm install
  1. Configure your agent:
cp .env.example .env
# Edit .env with your API keys and configuration
  1. Launch:
pnpm start --characters="path/to/your/character.json"

📚 Documentation

🛠 Advanced Features

  • Custom AI Integration

    • Bring your own AI model
    • Custom embedding systems
    • Specialized training data
  • Memory Management

    • Long-term memory storage
    • Context-aware retrieval
    • Cross-platform memory sharing
  • Action System

    • Custom action definitions
    • Platform-specific behaviors
    • Advanced interaction patterns

🤝 Contributing

We welcome contributions! See our Contributing Guide for details.

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

🌟 Acknowledgments

Built on top of the excellent Eliza framework.

About

Built on ai16z

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 89.5%
  • JavaScript 5.5%
  • PLpgSQL 2.8%
  • CSS 1.7%
  • Shell 0.5%
  • Dockerfile 0.0%