Skip to main content
Cookbook SEO

Run an internal linking pass with AI

Let AI read your library, find genuinely related posts, and add internal links in place, only where they help.

Difficulty Intermediate
Time ~20 min
Tools rest_api, run_wp_cli

Prerequisites

A connected site with a handful of related posts, and a recent backup since this edits published content.

The prompt
Run an internal linking pass across my WordPress posts. Work in two phases and change nothing in phase one.

Phase 1, propose only:
- Read my published posts and group them by topic.
- Find places where one post could naturally link to another genuinely related post of mine.
- For each suggestion show me: the source post, the exact existing phrase you would turn into a link (the anchor text), and the target post it would point to.
- Only suggest links where the connection is real and useful to a reader. Do not force a link on every keyword.
- Give me the full list and stop.

Then wait for me to confirm. I will take a backup before you edit anything.

Phase 2, after I approve:
- Add only the links I approve by wrapping the existing phrase in a link. Do not rewrite the sentence, add new text, or move anything.
- Keep all block markup and wording exactly as it was.
- When you are done, list every link you added, with the post and the anchor text, so I can spot-check.

Already connected to WPVibe?

Skip the copy-paste. Just ask your AI for the “Run an internal linking pass with AI” recipe, or describe the task, and WPVibe runs these steps on your own site.

Internal links help readers move between your posts and help search engines understand how your content connects, but building them means holding your whole library in your head. You have to remember which older post is relevant to the one you just wrote, find a natural phrase to link, and do it without breaking the layout. Most people link a few obvious ones and leave the rest of the web unbuilt, which is exactly the value they are missing.

This recipe has your AI read across your posts, group them by topic, and propose internal links only where two pieces genuinely relate. It shows you the plan first: the source post, the exact phrase it wants to turn into a link, and where that link points. Nothing changes until you approve. When you say go, it wraps the existing phrase in a link with a surgical edit, so the sentence, the wording, and the block markup stay exactly as they were. No new sentences, no shuffled paragraphs.

Paste the prompt and let it return the linking plan first. Review that plan and take a backup before you let it edit, since this changes published content. Tell it to link only where the connection is real, because over-linking every keyword hurts readability and looks spammy to search engines. Approve the links that actually serve a reader and skip the rest.

Outcome

Relevant internal links added inside your posts, each pointing at genuinely related content, with your block markup and wording untouched.