Internal linking for AI content is safe when the model writes the prose but every link target comes from your site’s own sitemap or crawl, resolves to a live page, and gets approved by a person. A suggestion stays untrusted until checked, and the checks show a link works, not that it improves rankings.
A language model writes fluent paths to pages that don’t exist on your site. Anyone who publishes model-drafted posts on their own blog can ship an article whose links send readers to 404s.
Your own URL list fixes that.
Key Takeaways
- A sitemap lists valid targets but places no link; each link still needs a paragraph where it fits.
- Reject a link when its destination doesn’t answer the question the paragraph raises, even on a close topic.
- A link check in your build stops a dead target before readers see it.
- Google’s documentation sets no required number of internal links per page.
How do you handle internal linking for AI content without invented URLs?
You handle internal linking for AI content without invented URLs by treating every model suggestion as untrusted until its target is found in your own URL inventory, resolves, and a person approves it. A model can write a plausible path that was never on your site, so the inventory has to come from somewhere else.

The sitemaps.org protocol defines a sitemap as XML in which a <urlset> wraps <url> entries and each <loc> holds the URL of a page. Google’s sitemap overview describes a sitemap as a file where you provide information about the pages on your site.
The file tells you which targets exist. Deciding where each one belongs is still your job.
- Export the inventory. Take
sitemap.xmlor a crawl export and keep one URL per line. Remove redirects andnoindexpages now. Never ask the model which pages your site has. - Match candidates to paragraphs by question. For each paragraph, write the question it raises, then keep only candidates whose page answers that question. A page on the same topic that answers a different question doesn’t qualify.
- Let the model propose from the list only. Give it one paragraph and its candidates. Tell it to return one listed URL or “none”.
- Run the verification gate. A target absent from the inventory, or one that doesn’t resolve, is dropped and never replaced by a guess. On a Git-based blog, also match your framework’s trailing-slash setting and run your build’s broken-link check, if it has one.
- Approve each link. Accept it, edit the anchor, or reject it. Reject it when the destination doesn’t answer the paragraph’s question or isn’t indexable.
The inventory is the only source of targets:
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url><loc>https://example.com/blog/sitemap-export/</loc></url>
<url><loc>https://example.com/blog/anchor-text/</loc></url>
</urlset>
The model then proposes this link:
Para 3 -> https://example.com/blog/internal-link-audit/
Gate: not in inventory. Dropped. No substitute chosen.
The path looks right and matches the site’s naming, but neither <loc> entry contains it. The gate removes it, and paragraph 3 stays unlinked until a real page fits.
Approval is the step that keeps a plausible but wrong target out of the article. Approval confirms the target exists and that a person judged it useful to the reader.
To try approval-first linking on your own sitemap, start setup.
Internal linking for AI content: which links to accept, edit or reject?
An AI-suggested internal link should be accepted when its destination answers the question the paragraph raises, edited when the target is right but the anchor or placement is wrong, and rejected in every other case. A person makes that call for each link.
| Outcome | Criterion | Example |
|---|---|---|
| Accept | The destination answers the paragraph’s question and is indexable. | A paragraph asks how to fix a redirect chain, and the link goes to your redirect tutorial. |
| Edit | The target is right, but the anchor is vague or the link sits in the wrong paragraph. | Change “this post” to “our guide to fixing redirect chains” and move it beside the sentence that raises the problem. |
| Reject | The page is only topically adjacent, doesn’t answer the question, isn’t indexable, repeats a nearby link, or exists to push a page. | A paragraph on redirect chains links to a page on choosing a CDN. The subject area matches, but the reader’s question goes unanswered. |
Ask two questions of every suggestion that passes the indexing check:
- If a reader clicked here, would the page answer the question this paragraph just raised?
- Is there already a link to this page, or to a page that serves the same purpose, within a few paragraphs?
A “no” to the first or a “yes” to the second means reject. A link that only moves a page up your internal priority list also fails the first question, because the reader gains nothing from the click.
What indexable means
Check the destination’s indexing status before you approve a link. A page carrying a noindex rule is a poor target.
Check canonicals too.
If the suggested URL points to a different canonical, link to the canonical instead. Treat a redirected URL the same way and link to its final destination.
How should anchor text read in an AI-written article?
Anchor text in an AI-written article should describe the destination page in a short phrase that reads as part of the sentence. Generic phrases fail that test.
The same page says “Good anchor text is descriptive, reasonably concise, and relevant to the page that it’s on and to the page that it links to.”
Four practical rules follow. Each has a weak sentence and a stronger one.
- Describe the destination and drop generic words. Phrases like “click here” and “read more” say nothing about the page behind them.
- Weak: To approve gates from an agent, click here.
- Better: Agents can approve gates with a scoped token through the MCP server setup.
- Reason: the better anchor names the page the reader will open.
- Make the anchor read as part of the sentence. A page title pasted into a sentence reads like a footnote.
- Weak: Tracking is covered in AI visibility tracking for your brand | BirchSeek Docs.
- Better: Turn on AI visibility tracking before you judge how assistants mention your brand.
- Reason: the better version drops the site suffix and the sentence still scans.
- Keep anchors short. Link the noun phrase that names the page, not the whole clause around it.
- Weak: Pick a destination from the publishing connectors that deliver cited, approved articles as drafts or pull requests.
- Better: Pick a destination from the publishing integrations.
- Reason: a few words are easier to read and match the page’s topic.
- Change the wording when you link to the same page twice. This rule is practitioner opinion: identical phrases repeated across an article read as mechanical.
- Weak: Use the MCP server setup. Later: see the MCP server setup. Later again: the MCP server setup explains the token.
- Better: Use the MCP server setup. Later: the MCP docs cover the token.
- Reason: each anchor still describes the page, in different words.
In internal linking for AI content, a model drafting links tends toward vague or repeated phrases. Check anchors in the same review where you approve each target, as a separate check from whether the destination answers the paragraph’s question.
How many links does internal linking for AI content need?
An article should carry one internal link for each paragraph that raises a question another indexable page on your site answers, and Google’s documentation sets no required count. Google’s link best practices page describes what makes a link crawlable and gives no number of links per page.
Any fixed range, such as a set number of links per block of words, is practitioner opinion. It comes from someone’s experience with their own sites, and no Google page makes it a rule.
A working rule replaces the range. Read each paragraph and ask what question it leaves open. If another page on your site answers that question, link to it with a short phrase that describes that page.
Two checks decide each case:
- Does the destination answer the question? A paragraph that says a new post needs target URLs raises the question “where do those URLs come from?” A page about exporting your sitemap answers it. A page on content strategy that only shares the topic does not.
- Is the destination indexable? A page marked
noindex, or a URL that redirects or returns an error, gives the reader a dead end and gives Search nothing to index.
A paragraph that mentions a topic in passing doesn’t need a link to a full guide on it unless the reader would want that guide next. A paragraph that raises two questions answered on two different pages can earn two links, while a link added to reach a quota has no question behind it.
With internal linking for AI content, the review decides the count, not a quota.
How do you link a Git-based blog without breaking the build?
You link a Git-based blog without breaking the build by writing Markdown links that match your site’s URL settings and by making the build fail when a target is missing. A repository gives you two checks a WordPress editor doesn’t: a pull request is a review step, and a failing build is a hard stop. The same steps apply to Astro, Next.js, Hugo and SvelteKit.
-
Write root-relative paths. Use
[anchor](/blog/post-slug/)instead ofhttps://yoursite.com/blog/post-slug/or../post-slug.md. A root-relative path survives a domain change and a preview deploy, while a file-relative path breaks when someone moves the file. -
Match the trailing-slash setting. Astro’s configuration reference lists three values for
trailingSlash:'ignore','always'and'never'. For'always'it says the server will “Only match URLs that include a trailing slash”.// astro.config.mjs export default defineConfig({ trailingSlash: 'always' });Read [how to pick anchor text](/blog/anchor-text/) first. Avoid [how to pick anchor text](/blog/anchor-text) on this site.
With 'always', the first link matches and the second doesn’t. Check the equivalent setting in your Next.js, Hugo or SvelteKit config.
-
Use
relrefin Hugo. Hugo’srelrefshortcode resolves a linked page by its content path, such asposts/anchor-text.md. Hugo’s configuration docs describerefLinksErrorLevelfor unresolved references and say “Any ERROR will fail the build (exit -1)”. A typo in the path then stops the build instead of shipping a dead link. -
Add a link check to CI. Build the site, run a link checker against the output folder, and make the deploy job depend on that step. Options differ by tool, so take them from your checker’s own documentation. A broken internal link then fails the deploy instead of reaching production.
-
Review the pull request. A reviewer reads each new link in the diff and confirms the target answers the paragraph’s question.
Success looks like a green build with no unresolved links, plus a diff a person has read. The build check confirms a target exists; whether the link helps a reader is the reviewer’s call.
How do you backfill old posts and find orphan pages?
You backfill old posts and find orphan pages by running the same four-step audit each time a new article ships. An orphan page is a page with no internal links pointing to it. A sitemap may list its URL, but listing a URL doesn’t link it.
- Read the Search Console Links report. Open Links for your property and read the top linked pages table in the internal section. Select a page to see the internal links to it.
Pages near the bottom of the list are weak and can receive new links. Treat this as a first pass and confirm it in a crawl. 2. Crawl the site with Screaming Frog SEO Spider. Select any URL and open its Inlinks tab to see which pages link to it. A crawl follows links, so it can’t reach a page nothing links to.
For orphans, add your sitemap as a source before you crawl; Search Console or Google Analytics data gives it more URLs to compare. Then open the orphan pages report. The usual mistake is crawling without an extra source and concluding “no orphans”. 3. Shortlist older posts that already discuss the topic. Search your content folder or your site for the new article’s key terms. Keep a post only if one paragraph raises the question the new article answers, and add the link inside that paragraph. Skip the post when the new page doesn’t answer that question or isn’t indexable. 4. Record each link and approve each edit. Log the source post, target URL, anchor text and date in a spreadsheet or commit message. A person approves every edit before it merges.
If your sitemap lists https://example.com/blog/old-checklist/ and the crawl shows no inlinks for it, that URL is an orphan. A crawler can find it through the sitemap, yet no page sends a reader there. Link to it from older posts whose paragraphs ask what the checklist answers, inside those sentences.
Hub pages, such as the BirchSeek blog index, need the same check. If the crawl shows a hub with few inlinks, link to it again from the pages that list your posts.
Frequently asked questions
Can AI choose internal links for me?
AI can propose links, but each proposal needs a target found in your own sitemap or crawl before it enters the draft. A model can write a believable path to a page that doesn’t exist. A person then approves, edits or rejects every link.
How many internal links should a blog post have?
Google’s Search Central guidance gives no required number of internal links per page, so treat any fixed range as practitioner opinion. Add a link where a paragraph raises a question another indexable page on your site answers, then check that the target is in your URL list and resolves.
What is an orphan page and how do I find one?
An orphan page is a page with no internal links pointing to it, even if your sitemap lists its URL. Crawl your site, collect every URL the crawler reached through a link, and compare that list with the sitemap. Any sitemap URL missing from the crawl is an orphan.
Should I use absolute or relative URLs in Markdown links?
Use the form your framework resolves correctly, then confirm it with a build that fails on broken links. Match your site’s trailing-slash setting, since a path with and without the final slash can behave differently on some hosts. Root-relative paths such as /docs/mcp/ also work on preview and production domains.
Next steps: link checks today, backfill this week
Today, export your sitemap and make it the only link inventory. A URL a model proposes that isn’t in that file stays out of the article.
This week, review the next article’s suggested links against the accept, edit and reject criteria. Once it ships, run the Links report and an orphan crawl to see which older posts should point to the new article and which pages have no inbound links at all.
This month, if your blog is a repository, add a build-time link check so a missing target fails the build instead of reaching a reader.
To put internal linking for AI content on a routine, start setup and check the first suggested links against your own criteria before any of them go into an article.
Sources
sitemaps.org - Protocol · Learn about sitemaps | Google Search Central · Link best practices for Google | Google Search Central · Configuration Reference | Astro Docs · Configure Hugo | Hugo Docs