When should you use it?
- You redesigned, migrated or pruned a site and some old URLs now return errors
- A backlink tool or server log shows external links landing on missing pages
- You want quick SEO wins that need no outreach at all
Not for: Sending every dead URL to the homepage, which rarely helps the person who clicked; Letting the agent edit redirects or the live site without your review; Building new links from scratch (see the other playbooks from the same article)
What do you need, and what do you get?
You need
- A broken-backlink export from your SEO tool, or old URLs paired with the outside pages that link to them
- Your current sitemap or page list, with a line on what each key page does
- Where redirects live on your site (hosting rules, CMS plugin or server config) and who can change them
You get
- For each old URL: whether the external link still exists, the response the old URL returns now, and blocked checks marked unknown
- A proposed match (redirect target or restore), with a reason based on what the old page did
- A change list ready for review, and a recheck plan for after the change goes live
- A tally kept apart from new links, labeled as recovered
How does it work, step by step?
- Gather the old URLsExport broken backlinks from your SEO tool, or pull old addresses from analytics and server logs that still get outside traffic.
- Confirm both endsHave the agent open each linking page to confirm the link is still there, then request the old address and record what comes back. Access blocks are unknown, not broken.
- Match by purposeCompare what the old page helped readers do with your current pages. A moved template should point to the template, not to a product page.
- Approve the listReview the proposed permanent redirects and restorations, then apply them yourself or hand them to whoever manages the site.
- Recheck and recordAfter the change, follow each path from the outside page to the final destination and log it as a recovered link.
The prompt
The original prompt by @BuildingWaves, word for word, with a link to where it was published. Below it is our adapted version with fill-in blanks, if you want it. Works in Grok Bot, ChatGPT agent, Claude and others. Values in lime are placeholders.
Original prompt by @BuildingWaves
Inspect these old URLs and referring pages. Confirm which links still exist and which destinations return 404 or 410. Treat blocked requests as unknown. Compare each old page's purpose with my current pages. Propose a matching redirect or restoration, with reasons. Return a change list for review, then a live-check plan. Count these as recovered links, not new ones.
Exactly as published by @BuildingWaves in X Article: SEO/AEO need backlinks, babe. Get them with AI.
Our adapted version (optional)
Fill in the blanks (optional; the copied prompt uses your values)
Help me recover links to pages I moved or deleted. Do not edit my site. Old URLs and the outside pages linking to them: {broken_backlink_export}. Current pages: {sitemap_or_page_list}. 1) Open each outside page and confirm it still links to the old URL. Record the anchor text if visible. 2) Request each old URL and record the response. If a request is blocked, mark the result unknown. 3) Describe what each old page helped readers do, then pick the current page that does the same job. If none fits, say so and suggest leaving it as not found. 4) Return a table: old URL, linking pages, current response, proposed fix (redirect target or restore), reason. 5) Add a recheck plan for after the changes go live, and tally them as recovered, kept apart from new links.
What can go wrong?
- A redirect to an unrelated page can be treated like a missing page by search engines and annoys the visitor anyway. Match the need or leave it gone.
- Some checks fail because a site blocks bots, not because the link is missing. Mark those unknown and look by hand.
- Redirect chains (old to older to new) slow pages and can break. Point each old address straight at the final URL.
- Counting recovered links as new wins inflates your reporting. Keep them in their own column.
Our take
Ghaffari is right to put this first: links you already earned are the cheapest ones to win back, because nobody has to be persuaded of anything. The fix lives entirely on your own site. His prompt is careful in the ways that matter, so we kept it word for word below: it treats blocked requests as unknown, matches by the old page's purpose, and keeps recovered links out of the new-link count. We added the practical edges. Point redirects straight at the final page to avoid chains, accept that some dead pages have no honest match, and test every path again once the change is live, since rules often break on trailing slashes or capital letters. Google's own guide to redirects, linked below, is the right reference if you are unsure which type to use. In our dry run on a fictional freelance-invoicing site with five old URLs, the agent found that the old late-payment template URL still had two outside links (one confirmed, one behind a block it marked unknown) and proposed a permanent redirect to the template's new home. It matched an old invoice template to its replacement, noted a pricing page already redirected correctly, and recommended leaving a retired webinar page gone rather than sending it to the homepage. It returned a change list and a recheck plan and edited nothing.
Where the time goes back: Checking dozens of old addresses, linking pages and possible matches by hand takes an afternoon. The agent does the lookups, and you spend your time on the judgment calls.
FAQ
Do I need a paid backlink tool?
Should every dead page get a redirect?
Will the agent change my site?
Source and credit
The original prompt on this page is by @BuildingWaves, shown word for word with a link to where it was published. The summary, notes and adapted version are ours.
- Original
- X Article: SEO/AEO need backlinks, babe. Get them with AI
- Creator
- Kourosh Ghaffari (@BuildingWaves)
- Published on
- X
- Original date
- Oct 26, 2026
- License
- Not openly licensed; the original prompt is shown word for word with credit and a link to the original
- Originally for
- Custom agent
- AI dry run
- Oct 26, 2026: passed. Dry-run tested by our AI test agent on sample input. Blocked check kept unknown; matched by purpose; no homepage redirects; no site edits.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails. - Verified
- Oct 26, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.
Also see: Redirects and Google Search by Google Search Central. More official guidance we used; credited and linked only, nothing from it is reproduced word for word. Not legal or financial advice.
Are you the creator? Claim or correct this page.