Step 5: Outline Generation (2026 Guide)
Build an SEO-optimized content outline from competitor analysis and content gap identification.
The structure of your article is as important as the content within it. Google uses heading hierarchy, section order, and topical coverage to evaluate whether a page is a comprehensive resource or a thin, keyword-stuffed document. seorankar.com's Step 5 — Outline Generation — builds the optimal article structure by analyzing how the top 10 competitors are organized, identifying what topics they all cover (must-includes), what topics they miss (opportunities), and what order makes the most logical sense for your reader.
This step produces the H2/H3 skeleton that the AI writer will flesh out in Step 16. Without a strong outline, even the most capable AI model produces rambling, unstructured content that fails both Google's structural analysis and users' reading expectations. With a strong outline, the AI has a clear roadmap — and roadmaps produce destination-worthy articles.
What Happens During Outline Generation
The step5-outline.ts module processes the competitor heading structures extracted in Step 4. The algorithm:
1. Collects all H1–H4 headings from all competitors into a unified pool 2. Clusters semantically similar headings (e.g., "What is SERP?" and "SERP meaning" cluster together using TF-IDF similarity) 3. Scores each cluster by frequency: A heading topic that appears in 8/10 competitors gets a higher score than one in 2/10 4. Identifies content gaps: Topics in 1–2 competitors but absent from 7+ — these are differentiation opportunities 5. Applies intent ordering: Sections are reordered to follow the logical progression: definition → context → how-to → benefits/drawbacks → FAQ → CTA 6. Generates H2/H3 hierarchy: Top-level sections become H2s; subtopics become H3s nested under them 7. Writes the JSON outline to the project file
The output is a structured JSON outline with each heading labeled by its intent (definition, how-to, list, comparison, FAQ) and its data sources (which competitors cover this topic).
Content Gap Identification
Content gaps are the gold mines of SEO. If your target keyword has 10 strong competitors but none of them cover a specific angle or subtopic, you have a clear opportunity to be the first comprehensive resource on that aspect — and Google will notice.
seorankar.com identifies gaps by cross-referencing competitor heading clusters with:
- People Also Ask (PAA) questions from the SERP analysis (Step 3) that no competitor answers
- Autosuggest queries (from Step 11's forward preview) that competitors don't address
- Entity mentions from Wikipedia and knowledge graphs that are topically relevant but absent from current competitors
These gaps are flagged in the outline as "gap sections" with a priority label. The AI writer (Step 16) is explicitly instructed to write these sections at a higher depth than consensus sections, since they're the most differentiating part of your article.
Output of This Step
JSON outline with H2/H3 headings, intent labels, content gap flags, and section order.
💡 Pro Tips
- →Don't copy competitor heading structures verbatim — use them as signals but create headings that are more specific and compelling.
- →Add a "Common Mistakes" or "What to Avoid" section — these are universally clicked and rarely covered by competitors.
- →Include a TL;DR / Quick Answer at the top — this targets featured snippets and matches "quick answer" search intent.
- →Order your FAQ section to mirror actual PAA questions — Google may promote your FAQ answers into the PAA box.
Frequently Asked Questions
Q: How many H2 sections should an article have?
Typically 5–8 H2 sections for a comprehensive guide (2,000–4,000 words). Fewer than 4 H2s suggests thin coverage; more than 10 often indicates unfocused scope.
Q: Can I edit the generated outline before continuing?
Yes. The outline is stored in the project JSON and can be edited manually before running Step 6. You can add, remove, reorder, or rename any heading.
Q: Does the outline include the introduction and conclusion?
Yes. The intro is automatically structured as a hook + problem statement + article promise. The conclusion is structured as a summary + key takeaway + CTA. Both are generated as part of the outline.
Ready to automate your SEO pipeline?
seorankar.com runs all 20 steps automatically — from keyword research to WordPress publish.