Automate internal linking with ChatGPT: prompts and steps
Short answer ChatGPT can't see your whole site, so give it one: a crawl export listing every page and the links between them. Ask it to find pages with few links, then to suggest links for one page at a time, using only your real URLs and words already in the text. Check every suggestion before you add it.
Want help applying this to your business? Talk it through on a free 30-minute call.
Book a callHow to use ChatGPT for internal links, in five steps
An internal link is a link from one page of your site to another page of the same site. ChatGPT is good at the reading part of the job: spotting where a page mentions a topic you have another page about. It is bad at knowing which pages you have. So you supply the facts, and it does the matching.
| Step | You give ChatGPT | You get back |
|---|---|---|
| 1. List your pages | A crawl export of your site | A clean list of real URLs and titles |
| 2. Find weak pages | The crawl's link export | Pages with zero or one link pointing to them |
| 3. Suggest links | One page's text plus your URL list | 3–5 links: which words, which page |
| 4. Check | Nothing: you do this | Only suggestions that help a reader |
| 5. Add and recheck | A new crawl after editing | Proof the weak pages now have links |
ChatGPT doesn't edit your website. You still paste each link in your site editor (WordPress, Squarespace, Wix, or whatever you use). For the plan behind the links, which pages are hubs and which pages matter most, see internal linking strategy.
Step 1: Give ChatGPT a list of your real pages
Run a crawler, a program that follows every link on your site the way Google does. Screaming Frog's SEO Spider crawls 500 URLs for free (Screaming Frog: SEO Spider), which covers most small business sites. Enter your home page address, click Start, then export the Internal tab, HTML pages only, as a CSV file.
Upload that file to ChatGPT. File uploads work on the free plan, but free users can upload 3 files a day; paid plans get more (OpenAI Help Center: File Uploads FAQ). For a small site, you can also paste the list as text.
Prompt 1: "This file is a crawl of my website. Make a table of every page with a 200 status: URL, page title, and a five-word summary of what the page is about. Use only URLs that are in the file."
Keep this table. Every later prompt points back to it.
Step 2: Find pages that need links first
Google sets a floor for every page:
"Every page you care about should have a link from at least one other page on your site." (Google Search Central: Link best practices for Google)
In Screaming Frog, use Bulk Export, then Links, then All Inlinks. Screaming Frog describes this export as links to "every URL the SEO Spider encountered while crawling the site" (Screaming Frog: user guide). Each row also has a Type and a Link Position, such as Nav, Footer or Content (Screaming Frog: user guide, Tabs). Upload it.
Prompt 2: "This file lists every link on my site. Count only rows where Type is Hyperlink and Link Position is Content, so menu and footer links don't count. For each To URL, count the different From pages. Show the 15 pages with the fewest. Run the count with code and show me the method."
Asking it to run code matters. OpenAI says its data analysis tool, where your plan includes it, "enables accurate calculations" (OpenAI Help Center: Does ChatGPT tell the truth?); without it, the model may estimate. Pages with zero links are orphans (see orphan pages). Pages you earn money from, such as service pages, deserve the most links (see internal links to money pages).
Step 3: Get link suggestions for one page at a time
Work page by page. A whole site in one prompt gives vague answers.
Prompt 3: "Here is my page list (table above) and the full text of my page about [topic]. Suggest 3–5 internal links. Rules: link only to URLs in my list. Use words that already appear in the text as the linked words; quote the exact sentence. Never link to this page itself. Skip a link if the target page wouldn't help someone reading this sentence. Return a table: sentence, words to link, target URL, why a reader would click."
Prompt 4 (the reverse): "My page [URL] has almost no links pointing to it. Look through the text of these five pages and find sentences where a link to it would help the reader. Same rules and table."
The reverse prompt is how you fix the weak pages from step 2: you find the older pages that should point to them.
Prompt 5 (anchor check): "Here are my planned links. Flag any where the linked words are vague ('click here', 'this page'), stuffed with keywords, or where the same words point to two different pages."
Step 4: Check every suggestion before you add it
ChatGPT will sometimes invent a URL that looks right, or link words that don't match the target. OpenAI says this plainly:
"Sometimes, it might sound confident—even when it's wrong." (OpenAI Help Center: Does ChatGPT tell the truth?)
Check each link in about ten seconds:
- Does the URL exist? Find it in your step 1 list, or open it.
- Would a reader click it here? Google's advice is to "link to those pages in context" when another page would help readers understand this one (Link best practices for Google).
- Are the linked words clear? Google wants anchor text (the clickable words) that is "descriptive, reasonably concise, and relevant to the page that it's on and to the page it links to" (same page). More in anchor text.
- Is it natural? Google warns against cramming keywords into links: "keyword stuffing is a violation of our spam policies" (same page).
Drop anything that fails. Three good links beat ten forced ones. Google gives no target number: "There's no magical ideal number of links a given page should contain" (same page).
Step 5: Add the links and recheck
Add the approved links in your site editor. Use normal links. Google says it can generally crawl a link only when it is an HTML `a` element with an `href` attribute (Link best practices for Google); every mainstream site editor makes those when you highlight words and click the link button.
When you're done, crawl again and rerun prompt 2. The pages from your bottom 15 should now have links. After any new page goes live, run prompt 4 for it the same day. To see whether the linked pages get more search visits, compare them month to month: is my SEO working.
Can ChatGPT just read my website by itself?
Sometimes, but don't rely on it. ChatGPT's web search is on by default, yet OpenAI notes the model "may not be able to obtain relevant information from a given website due to technical issues, paywalls or preferences set via robots.txt" (OpenAI Help Center: Does ChatGPT tell the truth?). Even when it can, it reads a few pages, not your whole site. A crawl file is complete and exact; a web search is neither.
Should a plugin add links automatically?
Tools that insert a link every time a keyword appears save time but can't judge whether the link helps that sentence. The same word may mean different things on different pages, and repeated exact-keyword links drift toward the stuffing Google warns about. If you use one, review what it added, the same way you review ChatGPT's suggestions.
Example
Illustrative cases, round numbers.
A plumber with 60 pages
The crawl export shows 8 town pages with zero links from other pages. Prompt 4 finds 14 sentences in blog posts that name those towns ("we fixed a burst pipe in Riverton last winter"). The owner approves 11, adds them in an hour, and the recrawl shows every town page linked.
An accountant's 25-post blog
Prompt 3 on a post about quarterly estimated taxes suggests 5 links. Two point to URLs that don't exist (ChatGPT guessed the address format). One links the words "click here." The owner keeps 2: "bookkeeping services" and "tax planning," both to real service pages.
FAQ
Is it safe to give ChatGPT my website content?
Your published pages are already public. Don't upload private files such as client lists. OpenAI's File Uploads FAQ says content you upload to consumer plans may be used to improve models, with settings to control it, while business offerings such as ChatGPT Enterprise aren't used that way.
Do I need ChatGPT Plus for this?
No. The free plan accepts 3 file uploads a day: enough for the two crawl files in steps 1–2. Paid plans raise the limit.
Can ChatGPT find broken internal links?
Only from a crawl file. Ask it to list links in the All Inlinks export whose status code is 404 or 3xx, then fix each link to point at the live page.
How many internal links should a page have?
Google names no number. Give each page a link up to its main topic page and to the two or three pages a reader would want next.
Different for you?
- You don't yet know which pages should be hubs: internal linking strategy
- Some pages have no links at all and aren't indexed: orphan pages
- You want the links to send visitors to pages that book jobs: internal links to money pages
- You want help picking the linked words: anchor text
- You'd rather have the linking done for you: SEO & GEO Agent