Phase 8 part 4: where to win a link

Supermarket looks at each Inventory partner's pages that list providers,
hosts or partners (from their sitemap and home page) and keeps the ones
that list others but not the site; once a month by itself, or on
request. On request (up to 4 web searches), the AI finds lists of
alternatives to a competitor, and each page is read to keep the ones
that name others but not the company. Each opportunity can be marked
asked, won or dismissed; it's marked won when a link from its site shows
up. SEO → Links lists them; open ones join What to write next. Nothing
is sent: asking is the user's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-24 11:09:03 -07:00
co-authored by Claude Opus 5.5
parent 2fd3e43293
commit c3246bdb67
10 changed files with 597 additions and 2 deletions
+17
View File
@@ -90,6 +90,23 @@ func (s *Server) nextFor(cur seoSite, now time.Time) (list []next.Suggestion, mo
}
}
all = append(all, s.lostLinkIdeas(cur)...)
if opps, err := backlinks.Opportunities(s.DB, cur.URL); err == nil {
for _, o := range opps {
if o.Status != backlinks.OppOpen {
continue
}
kind, score := "Ask to be listed", 0.4
if o.Kind == backlinks.KindAlternatives {
kind, score = "Ask to be added", 0.3
}
why := o.Note
if o.Kind == backlinks.KindPartner {
why = "Your partner " + o.About + " lists others here. " + why
}
all = append(all, next.Suggestion{Key: "opportunity:" + o.Page, Kind: kind, Title: or(o.Title, o.Host()), Why: why, Score: score,
Action: next.Action{Label: "Open their page", Method: "GET", URL: o.Page}})
}
}
stalled, err := next.Stalled(s.DB, cur.URL, cur.Index, now)
if err != nil {
return nil, 0, err