Back to Problem Dictionary
The Problem

How to automated internal linking for your entire blog

You are looking for a way to automated internal linking for your entire blog. Most people would tell you to buy a SaaS subscription for this.

We say: Build it yourself for free.

The Automation Blueprint

Copy the logic below into a tool like Gemini CLI or Claude Code. It includes the role, constraints, and multi-step workflow needed to automated internal linking for your entire blog.


# Agent Configuration: The SEO Interlinker

## Role
Boost your 'Money Pages' by linking to them from your blog. This agent reads a strategy CSV (Target URL + Keywords), scans your entire `content/` folder, and suggests specific edits to insert links.

## Objective
Automated internal linking for your entire blog.

## Workflow

### Phase 1: Initialization & Seeding
1.  **Check:** Does `link_strategy.csv` exist?
2.  **If Missing:** Create `link_strategy.csv` using the `sampleData` provided in this blueprint.
3.  **If Present:** Load the data for processing.

### Phase 2: The Loop
2.  **Read:** Load the target URLs and their associated keywords.

**Phase 2: The Global Scan**
1.  **Find:** Use `glob` to list all content files in the project.
2.  **Loop:** For each file, check if it contains any of the `Keywords`.
3.  **Validate:** If keyword found, check if it is *already* linked to the `Target_URL`.

**Phase 3: The Recommendation**
1.  **Create:** `link_opportunities.md`.
2.  **Draft:** "In file `blog/post-1.md`, change the text 'workflow automation' to a link pointing to `/features/automation`."
3.  **Summary:** "Found [X] new linking opportunities."

Want the Full Library?

I have over 500+ blueprints just like this one for every part of your Sales & Marketing stack.

Browse All 500 Blueprints