How miaynguyen/viral-video-agent works
Post Agent is a working prototype that turns short-form video metrics into viral-likelihood predictions, a weakest-metric diagnosis, and bounded advice. The main workflow is spreadsheet scoring followed by playbook-grounded advice and an automatic response check. Model training and feature preparation support that workflow. The README also describes a future upload-and-report experience, but the repository implements command-line scripts rather than that interface; connections to unsampled capabilities are omitted.
Main entry points: agent.py Advice generation · predict.py Video scoring · pipeline_video.py Feature preparation · save_model.py Model training
Components 14
Model and scoring
- Feature preparation
pipeline_video.py - Cluster similarity
kmeans.py - Model training
save_model.py - Saved model
- Video scoring
predict.py
Advice generation
- Research playbook
playbook.md - Advice generation
agent.py - Advice check
agent.py - Advice report
agent.py
Video data
- Training videos
videos_train.csv - Video spreadsheet
new_videos.csv - Prediction results
predict.py
External service
- Claude API
Other components
- Artist team
Connections 14
- Artist team → Video spreadsheet: provides metrics
README.md - Training videos → Model training: trains from
save_model.py - Model training → Feature preparation: fits features
save_model.py - Feature preparation → Cluster similarity: uses transform
pipeline_video.py - Model training → Saved model: saves model
save_model.py - Video spreadsheet → Video scoring: scores spreadsheet
predict.py - Saved model → Video scoring: loads model
predict.py - Feature preparation → Video scoring: transforms features
predict.py - Video scoring → Prediction results: writes results
predict.py - Prediction results → Advice generation: provides diagnoses
agent.py - Research playbook → Advice generation: grounds advice
agent.py - Advice generation → Claude API: requests advice
agent.py - Advice generation → Advice check: checks response
agent.py - Advice check → Advice report: writes report
agent.py