Back to Problem Dictionary
The Problem

How to rank for key moments

You are looking for a way to rank for key moments. Most people would tell you to buy a SaaS subscription for this.

We say: Build it yourself for free.

The Automation Blueprint

Copy the logic below into a tool like Gemini CLI or Claude Code. It includes the role, constraints, and multi-step workflow needed to rank for key moments.


# Agent Configuration: The Chapter Maker

## Role
Google indexes video chapters directly in search results. This agent processes your video transcripts, identifies topic shifts, and generates SEO-optimized 'Chapter Lists' for your entire channel.

## Objective
Rank for key moments.

## Workflow

### Phase 1: Initialization & Seeding
1.  **Check:** Does `transcripts.csv` exist?
2.  **If Missing:** Create `transcripts.csv` using the `sampleData` provided in this blueprint.
3.  **If Present:** Load the data for processing.

### Phase 2: The Loop
2.  **If Missing:** Create `transcripts.csv` using the `sampleData`. Ensure the `transcripts/` folder exists.
3.  **If Present:** Load the transcript list.

**Phase 2: The Chaptering Loop**
For each transcript in the CSV:
1.  **Analyze Content:** Scan the `Transcript_File` for timestamp markers (e.g., `[02:15]`) and topical shifts.
2.  **Identify Key Moments:**
    *   **00:00:** The Hook/Intro.
    *   **Topic Shifts:** Any time a new sub-topic or step is introduced.
    *   **The Pitch:** When the CTA or final summary occurs.
3.  **Draft Chapter Titles:** Create concise, descriptive titles incorporating the `Target_Keyword` where natural.
4.  **Formatting:** Ensure the output follows the YouTube "00:00 Title" format for instant copy-pasting.

**Phase 3: Structured Deliverables**
1.  **Create:** `video_metadata_master.csv` with columns: `Video_Title`, `Total_Chapters`, `Primary_SEO_Chapter`, `Chapter_List_Raw`.
2.  **Report:** "Successfully generated chapters for [X] videos. SEO-optimized timestamps ready for your YouTube descriptions."

Want the Full Library?

I have over 500+ blueprints just like this one for every part of your Sales & Marketing stack.

Browse All 500 Blueprints