Episode 02 · Page Structure

Create the Page Structure From Competitors

EP02 uses the selected pages from the EP01 site tree, scrapes competitor page HTML into title, meta, headings, and content snapshots, then combines that evidence with your positioning input to create a section plan for each page.

Input from EP01
EP01 site tree

The EP01 tree tells which website pages should be planned. EP02 turns selected tree rows into page-structure briefs.

Script output
Targets · Evidence · Structure

The script creates EP02 tabs, captures positioning, scrapes competitor content, and generates a page-by-page section plan.

Quick workflow

Build the page structure from competitor evidence

1 · Finish the EP01 tree

Run EP01 and review the site tree. The pages marked Include or Review become the target pages EP02 can structure.

2 · Add positioning

Import target pages from EP01, then add primary keyword, audience, offer, positioning angle, conversion goal, and must-have notes.

3 · Scrape competitor content

Build the competitor URL list and scrape each selected page into title, meta description, H1, H2/H3/H4 headings, and visible content snapshots.

4 · Generate the structure

Run the AI action. The output is not body copy. It is the section plan inside each selected page, with SEO fields and heading levels.

Apps Script

EP02 setup script

Setup steps

  • Complete the EP01 task in your copied Google Sheet first.
  • Copy the Apps Script code below.
  • Open your copied Google Sheet. Apps Script works only inside a native Google Sheet, not inside Excel .xlsx mode.
  • Go to Extensions > Apps Script.
  • Paste this code below the EP01 code, or paste it into the same Apps Script project.
  • Click Run for the function named setupEP02.
  • Complete the authorization prompt if Google asks for permission.
  • Return to the Google Sheet and refresh the browser tab.
  • Use SEO/GEO Series > EP02: Import Target Pages from EP01 Tree.
  • Add the positioning inputs in EP02 TARGET PAGES.
  • Use SEO/GEO Series > EP02: Build Competitor Content List.
  • Use SEO/GEO Series > EP02: Scrape Competitor Content.
  • Use SEO/GEO Series > EP02: Set AI API Key.
  • Use SEO/GEO Series > EP02: Generate Page Structure with AI.

What the script creates

EP02 TARGET PAGES

EP02 COMPETITOR CONTENT

EP02 PAGE STRUCTURE

EP02 AI LOG

What the output contains

  • Page goal
  • Title tag
  • Meta description
  • Ordered H1 and H2 sections
  • H3 and optional H4 subsection ideas
  • Section purpose, priority, and evidence notes

Copy this Apps Script

Loading EP02 Apps Script...
Tab 1

EP02 TARGET PAGES: choose pages and positioning

Selected pages from EP01

The import action reads the EP01 site tree and imports pages marked Include or Review. You can uncheck any page that should not be structured yet.

Script output

Positioning inputs

Add the page keyword, target audience, offer, positioning angle, conversion goal, required points, and exclusions before generating the final structure.

Review before AI

Competitor content list

The build action matches each selected target page to competitor URLs from EP01, using the page type, recommended path, and URL evidence.

Human review

One page set at a time

Uncheck pages you are not ready to plan. EP02 works best when the selected targets have clear positioning and enough competitor evidence.

Planning step
Tab 2

EP02 PAGE STRUCTURE: sections inside each selected page

Section plan output

The AI output is intentionally limited to structure: page goal, SEO fields, section order, H1, H2, H3, optional H4 rows, and section-purpose notes. It does not write page body copy.

No body copy

Competitor patterns

The AI uses repeated competitor patterns across headings and page content snapshots, but the final structure is shaped by the positioning inputs you add.

Manual decision

Title and meta

The title tag and meta description are generated from competitor evidence and positioning context, then reviewed for brand voice, keyword relevance, and search intent.

SEO review

Clean handoff

The final tab becomes the brief for writing or designing each selected page. Writers get the required sections before they start drafting paragraphs.

Content brief
Concept document

Why page structure comes before writing

What is this process?

EP01 answered which pages the website may need. EP02 answers how a selected page should be structured before anyone writes the page.

The process starts with target pages selected from the EP01 site tree. Instead of guessing the outline, the sheet collects competitor pages that match each target page.

The scrape fetches the raw HTML, then stores the useful evidence: title tag, meta description, H1, H2, H3, H4, and a visible body-content snapshot. AI compresses those patterns into a clean section plan for the new page.

The goal is not to copy competitor wording. The goal is to understand which sections each selected page needs, combine that with the business positioning, and create a better structure for the website being built.

Reel

Instagram embed will be added here once the reel URL is shared.

Input needed

EP01 competitor list, EP01 site-structure matrix, and EP01 site tree should already exist in the same copied Google Sheet.

At a glance

Step 1 · Use the selected page type

Choose the target page from the EP01 tree, such as homepage, service page, location page, or case-study page. EP02 works best when a focused set of pages is reviewed at a time.

Step 2 · Collect competitor headings

Scrape the selected competitor pages. Titles, meta descriptions, headings, and body-content snapshots reveal what topics the page covers and in what order they appear.

Step 3 · Generate the page sections

Create the section order for each selected page, plus title tag, meta description, H1, H2, and H3 ideas. Keep it as a structure, not finished copy.

Step 4 · Review before writing

Edit the generated structure for the actual brand, service, location, offer, and conversion goal. Then hand it to the writer or designer.

Limitations

What automation can and cannot do

Some websites block scraping

If a competitor blocks Apps Script requests, open the page manually and paste the visible headings or important page content into the EP02 COMPETITOR CONTENT row.

Headings may be messy

Some pages skip H1, use decorative headings, repeat navigation text, or hide content behind JavaScript. Clean obvious noise before using AI output for a real page brief.

AI needs review

AI can find section patterns, but it does not know the exact business, offer, compliance needs, or conversion goal unless you review and edit the final structure.

No copying

Use competitor headings as evidence, not as text to copy. The final structure should be original and better matched to the page being built.