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:
+15
-1
@@ -404,7 +404,19 @@ func (s *Server) loadTemplates() error {
|
||||
"pagePath": pagePath,
|
||||
"change": seo.Percent,
|
||||
"inc": func(i int) int { return i + 1 },
|
||||
"flagOf": func(m map[string]string, page string) string { return m[seo.PathKey(page)] },
|
||||
// statusesFor are the moves an opportunity can make next.
|
||||
"statusesFor": func(status string) []string {
|
||||
switch status {
|
||||
case "open":
|
||||
return []string{"asked", "dismissed"}
|
||||
case "asked":
|
||||
return []string{"won", "dismissed"}
|
||||
case "dismissed", "won":
|
||||
return []string{"open"}
|
||||
}
|
||||
return nil
|
||||
},
|
||||
"flagOf": func(m map[string]string, page string) string { return m[seo.PathKey(page)] },
|
||||
"conv": func(m map[string]tracking.PageNumbers, page string) tracking.PageNumbers {
|
||||
return m[tracking.PathOf(page)]
|
||||
},
|
||||
@@ -551,6 +563,8 @@ var flashes = map[string]string{
|
||||
"link-added": "Added, and checked.",
|
||||
"links-checked": "Checked %d links.",
|
||||
"link-forgotten": "Forgotten.",
|
||||
"partners-read": "Looked at the partners' pages: %d new places to ask for a link.",
|
||||
"alternatives-read": "Searched: %d new lists that leave you out.",
|
||||
"bing-read": "Read the links from Bing.",
|
||||
"audited": "The audit is done.",
|
||||
"auditing": "Auditing. It reads up to 300 pages politely, so it takes a few minutes; this page updates when it's done.",
|
||||
|
||||
Reference in New Issue
Block a user