The playbook
Each article should link up to its pillar, across to close siblings, and be linked to from at least two others.
If the plan has several workspaces, call workspaces_list first and ask which one, then pass workspace=<id> to every tool below.
1. Read the whole blog
blog_list_sites(passaccount_id/blog_idfrom here on if several).blog_list_articles(limit50, followcursoruntil done). Keep published articles; include scheduled ones only as link sources, never as targets (a link to an unpublished post is a dead link today).blog_get_articlefor each published article: its HTML body, and from it the links it already has. On a big blog (over 40 articles), ask whether to do one cluster or the newest 30 first.
2. Map it
For each article note the main keyword and topic. Group them into clusters. Then find:
- Orphans: articles no other article links to.
- Missing up-links: supporting posts that don't link to their cluster's pillar.
- Missing cross-links: close siblings that never mention each other.
- New posts: the newest articles, which older posts don't link to yet.
3. Propose links
For each proposal: the source article, the exact sentence where the link goes, the anchor text, and the target. Rules:
- Anchor text is a natural phrase that describes the target (its topic words), never "click here", and not the same exact anchor for every link to one page.
- Use a sentence that already exists. If none fits, propose one short new sentence and mark it as added.
- 2 to 5 new links per article at most, spread through the body, not stacked at the end.
- Never link an article to itself, and don't add a second link to a target the article already links to.
- Keep the article's HTML exactly as it is apart from the
<a href="...">you add.
4. Show and confirm
Show the proposals grouped by source article (before / after of each sentence). Ask which to apply: all, some, or none.
5. Apply
For each approved article: start from the body you read with blog_get_article, add only the approved links, and call blog_update_article with article_id and body_html only (no publish, so its status stays). Re-read it with blog_get_article if the edit was large, to confirm the links are in.
6. Report
Links added per article, orphans fixed, any left (no good sentence to link from). Offer /write-article for a pillar a cluster is missing.