AI News → Vertical Video → 5-SNS Simultaneous Distribution Pipeline
An in-house pipeline that automatically collects daily AI news, generates vertical videos with text-to-speech and character animation, and distributes them simultaneously to YouTube / TikTok / X / Threads / Note.
Challenge
- Sustained tech publishing in the AI space requires daily article writing, which is impossible for a single CEO.
- Plain text articles alone fail to gain reach on social media, while demand for vertical video continues to rise.
- Manually distributing to multiple SNS platforms creates a heavy late-night workload and a high risk of missed posts.
Solution
- Automatically collects 10 AI news items every morning from RSS + X (Apify) and summarizes them with Gemini.
- Uses Claude to generate a video script (300 chars), note article body, and SNS posts (with hashtags).
- Synthesizes voice with VoiceVox → generates 30fps lip-sync frames from audio RMS → composites with Playwright background recording and ffmpeg.
- Posts via YouTube Data API v3 + Playwright automation for each SNS; note publishes via Chromium with persisted auth state.
- Six safety mechanisms (hard timeout / filename-based dedupe / post-history JSONL / auth-expiry detection / business-content grep / Discord notifications) stabilize the daily 9:00 JST trigger.
Technology Decisions
Why a custom ffmpeg pipeline instead of HeyGen
Commercial AI avatars cost $2-5 per video and impose portrait-rights and credit constraints for commercial use. The custom pipeline requires upfront engineering but its running cost is limited to VoiceVox + Claude API (~$1/video), and brand characters can be swapped freely.
Why Gemini as the secondary LLM
To prevent the pipeline from halting when the Anthropic API hits temporary rate limits or runs out of credit. Lightweight summarization tasks are well-served by Gemini Flash's quality and free tier.
Why Playwright for posting (instead of official APIs)
X / TikTok official APIs have moved toward paid tiers, strict review, and feature limitations, raising real-world operational costs. Playwright + persisted auth state is sufficient and practical for the legitimate use case of posting from a single brand account, operated within terms of service.
Outcomes
Distribution Frequency
1 video/day
30+ consecutive days since 2026-04-14, no downtime
Manual Effort
~3h/day → 0h
1,000+ hours saved annually
Distribution Targets
5 SNS + note + /blog
Zero missed posts; JSONL history prevents duplicates
Operating Cost
~$30-40/month
Claude + Gemini + various APIs combined (no HeyGen)
Production Incidents
0
Six safety mechanisms (hard timeout / dedup / auth-expiry monitor / etc.)
LLM Redundancy
Claude → Gemini fallback
Auto failover on rate-limit or credit exhaustion
Team
1 CEO + AI agent (Claude Code)
Have a similar requirement?
If you face a comparable challenge in industry, scale, or technology stack, please don't hesitate to reach out.
Schedule a free consultation