Use this once you have your base. It assumes you’ve already done company research, a Product Bible, and a first batch of BOFU keywords, and that you have competitors executing programmatic SEO at scale. If you’re still finding your first keywords, start at How to find keyword opportunities.
The idea
Programmatic SEO means one page template stamped across hundreds of near-identical queries: an AI video tool builds atext-to-video page, a blog-to-video page, a youtube-shorts-maker page, and
so on. A competitor who’s been at it for a while has already tested which of those templates earn
traffic. You don’t have to guess the map. You can read theirs.
The method has five moves, and Pi runs each one for you:
- Find who’s best at programmatic SEO in your category, and roughly how much traffic each pattern pulls, so you copy the winners rather than the noise.
- Read their sitemaps to see the templated page families they run (often a nested sitemap groups
them for you, like a
/make/or/platform/section). - Brainstorm the commercial angles first, the use cases where people actually spend money, so the expansion leans toward buyers rather than high-volume filler.
- Have Pi crawl each competitor’s sitemap and dump the keywords behind their dominant strategy, one file per competitor, worked in parallel with subagents.
- Regroup everything into your own pillar categories, dump all observed keywords one file per group, and flag what’s unique to you. The big set then flows into evaluation.
Steps
Each step below has the real prompt to send Pi, followed by what comes back. Copy the prompt, swap the[bracketed] parts for your own, and follow along.
1. Ground the account
Confirm the Product Bible, base keywords, and (ideally) a horizontal landing-page pillar are already in place, so Pi expands against what you actually sell. See the Product Bible and Design a landing-page pillar. Starting from scratch, this one prompt builds the base and passes it forward:2. Get a competitor report and the commercial angles
In one pass, ask Pi to brainstorm the commercial use cases (the ones where someone makes money) and research who ranks best, how mature their SEO is, and how they group their keywords. The report tells you whose sitemap is worth mining; the use cases keep the expansion pointed at buyers.

Finding the commercial angle (mostly a B2C thing). For B2C products, the useful question is who treats it as work: the people who make money from what you sell are the likeliest to pay for it, so lead with their use cases. Focus there first before the casual, hobbyist queries. B2B is more straightforward, since almost every buyer already has a budget and a job to get done. Either way, expand the keywords tied to helping someone make money or save money first.
3. Mine each competitor’s sitemap, one file each
Point Pi at each competitor’s sitemap and have it pull the keywords behind their dominant strategy, one file per competitor, worked in parallel with subagents.
4. Regroup into your pillar and dump every keyword
Ask Pi to reshape the observed categories into your pillar and dump every keyword it saw, one file per group, into a folder. Be explicit that you want it comprehensive.
5. Read the map and the dumps
Open the category map to see how each group maps to a slug pattern and a keyword pattern on your pillar, then open the individual files for the exact target keywords per page.

6. Prioritise your first-mover pages
Take the flagged unique angles seriously. Pi calls out the pages no competitor has built, which are your first-mover pillar pages.Previous: How to find keyword opportunities · Next: How to check if you can rank for a keyword · Theory: Horizontal and vertical landing-page pillars, BOFU-first · Related: Design a landing-page pillar