Run an internal linking pass

SEOIntermediate~25 minUpdated

Before you start

A connected site with content reads on and Replace block enabled, plus Update post for any content that is not in blocks. A link is markup, so the find-and-replace tool refuses to add one, and a Markdown-style link would be saved as literal text. The agent reads each post as raw block markup and rewrites the paragraph block that holds the phrase. Pages are reached only while the Update page tool is on. Posts owned by a page builder are refused. Take a database backup before a large run. Each edit is recorded in the Changes tab, which can revert it as long as the post is left alone afterward.

Internal links are quietly one of the highest-return SEO jobs you can do, and one of the most neglected. You publish a new post, it relates to four older ones, and none of them ever get linked together because going back through the archive by hand is tedious. Over a year the site turns into a pile of orphaned pages that never pass authority to each other.

This gives the agent the archive and the reading, and keeps the linking decisions with you. It never rewrites your prose to shoehorn a link in. It finds phrasing you already wrote and wraps it, so the edits are small and reversible.

The prompt
I want to run an internal linking pass on everything about [email
deliverability]. I have content writes turned on.
First pass, change nothing. Search my content for that topic, list the posts
that cover it, and read them. Then propose contextual internal links: for each
one give me the source post, the exact anchor phrase already in that post, and
the destination post it should link to. Only suggest links between posts that
genuinely relate, and prefer phrases I already wrote over inserting new
sentences. Only propose an anchor that sits in one paragraph block of its post,
and lengthen the phrase if it appears more than once in that paragraph.
I will tell you which links to keep. Only after I approve, add each one by
reading the post as raw block markup and replacing only the paragraph block that
holds the anchor phrase, with the same text plus the link, sending exactly one
block and passing its path and core/paragraph as the expected block name. A
plain find-and-replace will be refused for a link, so do not use it. If a post
has classic content with no blocks, tell me and wait for my go before using the
full post update, and paste the post's current body, as raw block markup, into
your reply first. Work in small batches and show me each batch with the old
block markup beside the new one before it saves. Do not touch post status. At
the end, list every post you edited and every one you skipped.

Why this is safe to run

The first pass is all reads. Searching your content, listing the matches, and reading each candidate writes nothing, so the entire link plan reaches you as a list of anchor text and destinations before a single save.

The write half is Replace block on a phrase you already wrote. It swaps one paragraph block and checks the block name at that path before it writes. Replace block stays off until you enable it, every call is checked against the capability of the user you bound the agent to, and every edit lands in the Activity Log with the post it changed. The prompt asks for the old block markup with every batch, so a link you decide was wrong can be put back. The Changes tab can take a single link back out if the post has not been edited again. If a post has classic content with no blocks, the agent asks first and pastes the post’s body into the chat before using the full post update.

Already connected? Skip the paste. Ask your agent for the “internal linking pass” recipe, or just name the topic, and it runs the same propose-then-approve flow on your own site.

How it works

  1. Search the content for the topic you name and list the posts that cover it.
  2. Read each post to find natural anchor phrases and the best target to link to.
  3. Propose every link as anchor text, source post, and destination, and wait for your approval.
  4. Insert each approved link by replacing the one paragraph block that holds the anchor phrase, in small batches, pausing to show each batch.
  5. Return the list of every post it edited so you can review it.

Questions

Will the agent rewrite my posts to fit the links in?
No. It wraps an exact phrase you already wrote in a link, inside the one block that holds it. Your sentences stay as they are, and the agent shows you the old block markup with every batch so it can be put back. The Changes tab in wp-admin can revert a link too, if that post hasn't been edited since.
How does it decide what to link to what?
It searches your content for the topic, reads the candidates, and proposes links only between posts that genuinely relate. You see the full list of anchor text and destinations before anything saves, so you can drop any link that does not fit.