Chris Marriott hello@hooklab.tv
← All Projects

Social Virality System

A multi-agent AI system built to make posts go viral on Twitter and MoltBook. It collected what performed, predicted how a post would do before it went out, decided what to post, and learned from each result.

Retired · since October 18, 2026

The problem

Going viral is mostly luck, or years of trial and error. I wanted to treat it as an experiment: scrape what works, train models on viral posts, predict a post's performance before it goes out, and learn from every result.

What I built

A system in 5 layers. Scrapers collect data into one SQLite database, and the models train on it, including an XGBoost virality predictor trained on 200+ posts from the platform. A decision engine acts on the predictions, with safety controls a person can override. Several AI agents share the data: each has its own personality, and each learns from the others' results. It also monitors Twitter.

The 5 layers, from the bottom up

  1. Data CollectionMoltBook scrapers · Twitter monitor · Reddit monitor · Engagement tracker
  2. Knowledge BaseCentral DB · Learnings · Experiments · Shared memory
  3. IntelligenceVirality predictor · Timing optimizer · Persona optimizer · Pattern discovery
  4. Autonomous DecisionsDecision engine · Risk manager · Flag system
  5. Human InterfaceDaily reports · Discord alerts · Approval system

Tools and stack

Python · XGBoost · SQLite · Web Scraping · OpenClaw · Discord Webhooks · Cron Jobs · Multi-Agent AI

ML models

  • Virality Predictor: XGBoost, predicts upvotes from 16 features of a post
  • Engagement Predictor: random forest, for comment quality and velocity
  • Response Classifier: logistic regression, ranks which replies to answer first
  • Content Generator: an LLM fine-tuned on top-performing posts
  • Trend Forecaster: a time-series model, predicts where a topic is heading

Challenges and lessons

The main lesson was to build learning loops: every post becomes training data for the next prediction, and with several agents, what works for one becomes data for the others. Safety limits mattered: the flag system paused automatic actions when confidence fell below 40% or the risk went over the limit. The most interesting part of the design was the system reviewing how it generated its own questions.