YouTube Scriptwriting
Research-driven process for writing YouTube scripts using Apify to analyze top videos
Purpose
Create data-driven YouTube scripts by researching top-performing videos, extracting transcripts and comments, and using insights to write compelling content.
Scope
This SOP applies when Jay wants to create a YouTube video script on any topic. Bob handles research, analysis, script writing, and publishing to the Bob App.
Prerequisites
- Apify account with access to YouTube scrapers
- Topic or subject for the video
- Bob Command Center deployed for publishing
- Vercel token configured for deployments
Process Flow
┌─────────────────────────┐
│ Jay Requests Script │
│ on [TOPIC] │
└───────────┬─────────────┘
│
▼
┌─────────────────────────┐
│ APIFY: Search YouTube │
│ Top 10-20 videos │
│ (Last 30 days) │
└───────────┬─────────────┘
│
▼
┌─────────────────────────┐
│ APIFY: Extract │
│ Transcripts │
└───────────┬─────────────┘
│
▼
┌─────────────────────────┐
│ APIFY: Extract │
│ Top Comments │
└───────────┬─────────────┘
│
▼
┌─────────────────────────┐
│ Analyze: │
│ - Hooks & Structure │
│ - Audience Questions │
│ - Gaps & Opportunities │
└───────────┬─────────────┘
│
▼
┌─────────────────────────┐
│ Write Full Script │
│ with Timestamps │
└───────────┬─────────────┘
│
▼
┌─────────────────────────┐
│ Create HTML Preview │
└───────────┬─────────────┘
│
▼
┌─────────────────────────┐
│ Deploy to Bob App │
│ (Vercel) │
└───────────┬─────────────┘
│
▼
┌─────────────────────────┐
│ Send Live Link to Jay │
└─────────────────────────┘Procedure
Research Top Videos (Apify)
Use Apify YouTube Scraper to find top-performing videos on the topic from the past 30 days.
Extract Transcripts
Get full transcripts from the top-performing videos for analysis.
Analyze Transcripts
Study winning patterns from successful videos.
Extract & Analyze Comments
Understand audience sentiment, questions, and desires.
Compile Research Summary
Synthesize all research into actionable insights.
Write Script
Create the full script using research insights.
Create HTML Preview
Convert script to styled HTML for the Bob App.
Deploy to Bob App
Publish the script live.
Deliver to Jay
Send the live link and summary.
Expected Outcomes
- Research on 10+ top videos from past 30 days
- Transcripts analyzed for winning patterns
- Comments analyzed for audience insights
- Data-driven script with timestamps
- Published to bob.nextwave.io
- Live shareable link delivered
Troubleshooting
Apify rate limited or blocked
Wait 15 minutes and retry. Consider using proxy settings in Apify.
No transcripts available for videos
Some videos disable transcripts. Use available transcripts and note which videos had none.
Topic too niche with few videos
Expand time range to 60-90 days, or broaden the topic slightly.
Vercel deployment fails
Check build logs, verify token is valid, ensure no syntax errors in HTML.