Coding Script or NotebookGoogle ColabAcademy
Internal Link Menu Notebook: Priority Score and Versioned Recommendations
This Google Colab notebook takes everything the earlier labs produced and turns it into the link menu: a ranked, versioned list of the links worth adding, each with a reason, ready for a person or an automation to act on.
What it helps you do
- Combine semantic similarity, the target’s traffic potential from Search Console and its link gap into one priority score
- Set the weights to match your hypothesis. In the lesson, Sam Torres weights a topical clustering project 50% similarity, 30% traffic potential and 20% link gap
- Bring in the cluster map if you use one
- Save each run as a new version, so you can track which recommendations went live
- Export as CSV, JSON or a Google Sheet, depending on where the links go next
Where it is used
Lesson 3.8, the last lab of Module 3. The menu is the input for Module 5, where the free Module 5 scripts turn it into linking rules or write the approved links into WordPress.
It comes with the AI-powered Internal Linking Audit and Automation course, led by Sam Torres. If you want to build the whole pipeline from audit to measured links with her, that is the place to start.
What’s included
- One priority score from semantic similarity, traffic potential and link gap
- Weights you set to match your hypothesis
- A versioned link menu: source, target, anchor, score and rationale per link
- Exports as CSV, JSON or a Google Sheet
- The link menu is the input for the free Module 5 scripts
Where this resource is used on MLforSEO
Walkthroughs on the blog
Concepts behind it
More internal linking resources
- Coding Script or NotebookLink Blocks for WordPress: Related Posts, Topic Cards, Siblings and Mentions
- Coding Script or NotebookLink Menu to Linking Rules: Python Script for Auto-linking Plugins
- ChecklistBefore You Build: A Checklist for Internal Linking Tools
- Coding Script or NotebookInternal Linking QA and Holdout Group Notebook
- Visualization TemplateInternal Linking Impact Dashboard (Data Studio Template) with Setup Guide
- Coding Script or NotebookTopic Clustering Notebook for Internal Linking: BERTopic and K-means
See all 26 internal linking resources →See all 28 content audits resources →See all 73 coding script or notebook resources →
