Multi-agent system for YouTube channel network that analyzes performance across Spanish, English, and Russian markets and automates content optimization.

Python · YouTube Data API · LangChain · Claude · React · PostgreSQL · Redis · Celery
A YouTube channel network operating over 50 channels in Spanish, English, and Russian approached us in early 2024. They were managing millions of subscribers but had no systematic way to understand what content worked across different language markets. Content decisions were based on intuition rather than data, and creators spent weeks manually researching topics and testing thumbnails.
We built a multi-agent system that analyzes video performance across all channels and automates content optimization tasks. The system identifies patterns in successful videos, generates content suggestions, and provides creators with data-driven recommendations for topics, thumbnails, and publishing schedules.
The project was implemented in three stages over five months, building from data collection through analytics to automated content generation.
| Stage | Focus Area | Status | Key Deliverables |
|---|---|---|---|
| 1 | Data Collection & Analytics | Completed | YouTube API integration, video metadata extraction, engagement metrics processing, audience demographics analysis, cross-channel data warehouse |
| 2 | Multi-Agent System | Completed | Six specialized AI agents, pattern recognition algorithms, trend detection, performance prediction models, content recommendation engine |
| 3 | Dashboard & Automation | Completed | Real-time analytics dashboard, automated content suggestions, A/B testing framework, scheduling optimization, performance tracking |
We started by building pipelines that collect video performance data from all 50 channels. The YouTube Data API provides metadata, view counts, engagement metrics, and audience demographics. We pull this data hourly and store it in a PostgreSQL database with indexes optimized for the queries our analytics need.
The data warehouse tracks every video published across the network including title, description, tags, thumbnail, publish time, duration, and category. For each video we store time-series data showing views, likes, comments, shares, and watch time at hourly intervals. This lets us see how videos perform in their first hours after publishing, which is critical for understanding YouTube's recommendation algorithm.
We also collect audience data showing who watches each video broken down by age, gender, geography, and whether they're subscribers or new viewers. This revealed significant differences between language markets. Russian channels had older audiences who watched longer videos, while Spanish channels attracted younger viewers who preferred videos under 10 minutes.
The analytics layer processes this data to identify patterns. We built algorithms that compare successful videos to unsuccessful ones within each channel and across similar channels. For example, we found that tech review videos with timestamps in descriptions got 23% more watch time, but this pattern only applied to English channels. Spanish tech channels performed better with shorter, overview-style content.
We implemented six specialized AI agents that each handle specific content optimization tasks. The agents use LLMs (GPT-4 and Claude) combined with custom algorithms trained on the network's historical performance data.
Analytics Agent: Runs continuously, processing new video data as it comes in. Identifies which videos are outperforming or underperforming expectations based on historical patterns for that channel and content type. Alerts creators when a video isn't getting the traction expected so they can adjust promotion strategy.
Topic Discovery Agent: Monitors trending topics across YouTube, social media, and news sources in all three languages. Suggests video topics that are gaining interest but haven't been covered extensively by the network's channels yet. The agent filters suggestions based on each channel's niche and past performance with similar topics.
Script Generation Agent: Takes a topic and target channel as input and generates a script outline. Uses successful scripts from that channel as examples to match the creator's style and structure. The agent doesn't write full scripts but provides an outline with key points, suggested hooks for the intro, and ideas for the conclusion. Creators reported this cut script planning time from 3-4 hours to under an hour.
Thumbnail Analysis Agent: Analyzes thumbnails from top-performing videos to identify effective design patterns. We found Spanish audiences responded to bright colors and expressive faces, English audiences preferred clean text overlays with high contrast, and Russian audiences engaged more with thumbnails showing product close-ups or before/after comparisons. The agent suggests thumbnail concepts based on these patterns.
Scheduling Agent: Determines optimal publish times for each channel based on when their subscribers are most active and when competition for views is lowest. YouTube's algorithm favors videos that get strong early engagement, so publishing when your audience is online matters. The agent identified different optimal times for each language market.
Performance Prediction Agent: Before a video is published, this agent estimates how many views and how much watch time it will generate in the first 48 hours. Uses the video's topic, thumbnail, title, and scheduled publish time as inputs. Predictions help creators decide whether to invest in promoting a video or adjust elements before publishing.
We built a React dashboard that shows all channels and their recent videos with key metrics displayed visually. Creators log in and immediately see which videos are performing well, which are underperforming, and what the AI agents recommend.
The dashboard includes an inbox where AI-generated suggestions appear. When the Topic Discovery Agent finds a trending topic suitable for a channel, it appears as a card showing the topic, why it's relevant, search volume data, and which competitor channels are covering it. Creators can approve a topic with one click, which triggers the Script Generation Agent to create an outline.
For published videos, the dashboard displays actual performance against the Performance Prediction Agent's forecast. When a video significantly outperforms or underperforms predictions, the system highlights this and the Analytics Agent explains why. This helps creators learn which factors drive their specific audience's behavior.
The thumbnail testing feature lets creators upload multiple thumbnail options for a video. The system uses YouTube's A/B testing API to automatically test thumbnails and switch all traffic to the winner after collecting statistically significant data. Before we built this, creators were manually changing thumbnails and trying to remember which version performed better.
The automation layer handles repetitive optimization tasks. When a creator approves an AI suggestion, the system can automatically schedule the video for the optimal publish time, generate hashtags based on trending searches, and create localized titles for videos that will be promoted in multiple regions.
After implementing the system, average video views across the network increased 34% within three months. The Performance Prediction Agent achieved 87% accuracy in forecasting first-week views for videos, giving creators confidence in which content to prioritize.
Content production speed improved significantly. Creators went from publishing 2-3 videos per week to 4-5 videos per week because the AI agents handle topic research and script outlining. The Topic Discovery Agent suggests 15-20 relevant topics per channel per week, eliminating the research phase that previously took multiple hours.
Thumbnail optimization had measurable impact. Videos using thumbnails designed based on the Thumbnail Analysis Agent's recommendations got 28% higher click-through rates on average compared to thumbnails created without AI guidance. The A/B testing automation tested over 300 thumbnail variations in the first two months and identified clear winners.
The Spanish-language channels saw the biggest improvement, with subscriber growth rates increasing 41% after the system launch. The Russian channels improved watch time by 19% by shifting toward longer content formats that the data showed their audience preferred. English channels maintained steady growth but with 30% less manual effort from creators.
If your team is one or two unknowns away from a system like this one, a thirty-minute call is the fastest way to find out.
Book a discovery callEngagements range from two-week diagnostics to multi-month builds, scoped after a single discovery call.
Every project on this page shipped because we said no to the wrong scope before we said yes to the right one. Half the value of working with us is the engagement we will not take. The other half is the system that ends up running in your business.
Healthcare, defense-adjacent, and enterprise clients sign NDAs that prevent naming. Engagement scope, technology stack, and measured outcomes can be shared publicly. Client identity stays protected.