Skip to content
Claude Code & Tools

YouTube Transcript to Blog Draft With GPT and Claude Code

See how a YouTube transcript becomes a blog draft, with GPT writing, Claude Code reviewing, and a human deciding whether to publish.

Key takeaways

  • The tool can produce commentary drafts from a YouTube URL or an existing transcript note.
  • GPT writes and revises the text; Claude Code handles topic scoring, outlines and review.
  • Publication requires human approval, followed by another blocked-term check.

I've added a way to turn YouTube transcripts into commentary drafts in my blog management tool. The aim was to connect transcript retrieval to writing, review and the decision to publish, rather than stop once the text was available.

The tool was deployed on November 1, 2026, and I'm running it alone as a proof of concept on one site. I haven't yet measured how often transcript retrieval succeeds across videos or how long draft generation takes, so this account is about how I built the workflow and divided the work.

YouTube transcripts as blog draft material

Previously, outlines and drafts started with Obsidian notes or topics I'd entered myself. Video transcripts are now another source, and the admin screen shows the links between a video, its transcript and the resulting article.

There are two ways to start: enter a YouTube URL to fetch its transcript and generate a commentary draft, or use a transcript note I already have. An existing transcript doesn't need to go back through the URL step.

Having a transcript doesn't decide what belongs in the article or which order will make sense to a reader. The draft needs readable prose too, so I manage the transcript and the article as separate outputs.

YouTube transcripts as blog draft material

GPT drafting and Claude Code review

I added a separate video task to the writing CLI for these commentary posts. GPT, accessed through Azure OpenAI, writes the body, while Claude Code scores topics, builds outlines and reviews drafts. GPT also handles revisions after review.

Model responsibilities in the blog workflow
TaskAssigned toOutput
Topic scoringClaude CodeScoring JSON
OutlineClaude CodeStructure JSON
Commentary draft and revisionsGPTArticle text
Draft reviewClaude CodeReview JSON

Rather than calling Claude Code in a chat window each time, I connected it in headless mode. With no write or execution tools, it stays read-only: it reads drafts and returns structure and review results as JSON.

In the revision loop, Claude Code identifies what needs fixing and GPT rewrites the draft. The revised text then goes back to Claude Code for another review.

Giving each stage a clear output was easier to manage than asking one model to do everything. If something goes wrong, I can see where it happened and decide whether to keep revising or discard the draft.

Blog draft review, revision and human approval

If I edit a draft but leave its old review attached, the text on the screen no longer matches the text that was reviewed. I keep manual edits as separate versions and changed how reviews are linked so earlier results can't be attached to the edited text.

In the tool's general draft pipeline, a draft first goes through a blocked-term check. Claude Code then scores it out of 100; below 90, GPT revises it and Claude Code reviews it again, with up to 3 revision rounds. I still need to check how the YouTube commentary drafts connect to that loop.

The 100-point scale, 90-point threshold and limit of 3 revisions are operating rules, not actual draft scores or evidence of a quality gain. Next, I want to look less at the score and more at how the paragraphs flagged during review change after revision.

Mermaid
flowchart TD
    D[Draft] --> B1[First blocked-term check]
    B1 --> R[Review scored out of 100]
    R -->|Below 90, up to 3 revisions| RV[GPT revision]
    RV --> R
    R --> N[Adapt for Naver]
    N --> M[Prepare images and diagrams]
    M --> W[Await review]
    W --> A[Human approval]
    A --> B2[Second blocked-term check]
    B2 --> P[Publish or schedule]
Review, revision and approval in the general draft pipeline. Naver is a blogging platform.

Every route to publication requires human approval, even when a model has passed the draft. After approval, the publishing step runs another blocked-term check.

On the admin screen, I read a preview close to the published layout alongside the review report. From there, I decide whether to publish, schedule, request revisions or discard a draft. Paragraph comments let me ask for specific changes, and I can compare draft versions.

I also added a fake-response mode to test the pipeline without calling GPT. That lets me separate tests that need generated prose from tests that only need to check the workflow.

Shell
BLOG_LLM_FAKE=1
Environment variable for testing the pipeline without GPT calls
What does Claude Code do in the writing workflow?

Claude Code scores topics, builds outlines and reviews drafts, returning its results as JSON. GPT writes the article text and makes revisions based on that feedback.

Can a draft publish automatically after passing review?

No draft can publish without human approval, regardless of how it was created. The publishing step also checks for blocked terms again after approval.

How can the pipeline be tested without calling GPT?

Set BLOG_LLM_FAKE=1 to use the tool's fake-response mode. It separates workflow testing from tests that need GPT to generate text.

Next, I'll read the commentary drafts produced for each video. How much will I have to rewrite before I'd be willing to publish one?

Joy

Leads AI adoption at a large Korean enterprise. Uses AI firsthand, at work and in everyday life, and writes down what ran, what stalled, and how it changes the way we work and think.

Need help rolling out tools or training your team?

Talks and advisory

Share this postXFacebookThreads