← Back to contents

Automatic interlinking

The Interlinking tab adds internal links between pages. Rules describe which keywords in generated text should become HTML links to other pages in the same project.

Use interlinking after texts are ready and you want stronger internal navigation. Do not run it on drafts that will still change heavily.

Choosing a workflow

If you needDo thisWhy
Understand what will changePreviewExcel is untouched until confirmation
Write checked linksApplyChanges are saved to Excel
Get a starting rule set quicklyGenerate from ExcelBuilds rules from slugs and keywords in selected rows

Rule model

Each rule is a keyword-to-URL pair. When the keyword is found in a finished text, it is wrapped in an <a href="..."> tag. Rules can apply to category, cluster, and article sheets.

Preview and Apply

  1. Preview shows affected cells and planned links without changing Excel.
  2. Apply to Excel writes the confirmed changes.
Caution: Apply modifies the project workbook directly. Make a backup before applying broad rules to a large project.

Where rules are stored

Rules belong to the opened project. A large rule set is stored as UTF-8 interlinking_rules.csv inside the project folder, while project.yaml keeps a relative file reference. Older inline YAML rules remain readable for compatibility. Paths outside the project folder are rejected.

Building rules from selected sheets

Automatic generation reads only selected available sheets in the order Categories → Clusters → Articles. For each row with a slug and keywords, it builds a keyword-to-URL rule. No data is sent to an LLM.

Sheets unavailable at the current structure level are hidden or disabled. Review the rule table after generation: unsuitable keywords and URLs can be edited or removed before Preview and Apply.

Rule URL templates

Each selected sheet has its own URL template. Category, cluster, and article slugs are inserted into it, so one template builds addresses for every row at that level.

  • {category_slug} is the category slug.
  • {cluster_slug} is the cluster slug.
  • {article_slug} is the article slug.

The default template adapts to the project depth. Use a custom template only when the target site's URL structure differs from the default.

Preview, Apply, and backup

Preview scans selected sheets and shows affected cells and planned links without changing Excel. Apply writes the confirmed changes.

The backup checkbox creates a workbook copy immediately before writing. Keep it enabled for a working project, especially after changing rules or URL templates.

Link budget and occurrence range

Minimum is a soft target, not a guarantee: a text may receive fewer links when there are not enough safe matches or rules. Maximum is the hard limit for new links in one text. When existing-link counting is enabled, existing anchors consume that budget.

The occurrence range selects which numbered appearances of a keyword may be used. One rule inserts at most one link, and the same URL is not added twice to one text. Links are not inserted inside existing anchors or headings, at a block start, or immediately after a sentence boundary. Self-link protection excludes the current page URL.

Clearing existing links

The command scans text columns in the selected available sheets and lists cells whose <a> tags will be removed. The visible link text remains. Other HTML and cells without links are unchanged.

A workbook backup is created before writing. If backup creation or saving fails, the operation stops and in-memory cell values are restored. After a successful cleanup, Preview and Apply can be run again with revised rules.