The AI-powered Entity Audit
- Your Course Map: Every Lesson, Tool and Resource
- Practical: Entity-First Meta Descriptions at Scale with Claude
- Practical: Automating the Extraction Audit and Section Rewrites
Once you know which page owns each entity, internal links almost write themselves: every mention elsewhere on the site is a chance to link to the owner. These two free Python scripts turn your entity audit into that link plan, and into rules an auto-linking plugin can apply.
SEOs who have run an entity audit and want entity linking across a site, on WordPress or any CMS where links can be added at build time.
entity_mentions.csv and page_entity_profiles.csv from the Entity Extractor, your naming table, and Screaming Frog’s All Inlinks export.link_map.py. It maps each entity to its owner page, drops links that already exist and proposes a few links per source page.apply_link_rules.py on saved pages: it reports what it would link, and writes linked copies only with --write.link_plan.csv: source, target, entity, anchor and priority, in rounds of 20link_rules.json: one rule per entity with its variants, in the format the MLforSEO Auto Links plugin importslink_rules.csv: keyword, URL and cap, for other auto-linking pluginsLinking every mention to whatever page ranks is how sites end up with three pages competing for one entity. Deciding the owner first, in your naming table, means every link points the same way and reinforces one page.
Start with a small round of links, check those pages after they go live, then run the next round. Mistakes stay small that way.
The preview engine is also used in AI-powered Internal Linking Audit and Automation to test rules built from a link menu. The scripts are on GitHub; the The AI-powered Entity Audit course covers how to choose owner pages.
See all 26 internal linking resources →See all 29 entity SEO resources →See all 73 coding script or notebook resources →