Phase 7 part 1: sign-ups by page

Settings → Website & sales says which clicked links count as a sign-up:
Supermarket suggests the sign-up, trial and checkout links visitors
clicked, and the user ticks, unticks or adds their own. The Plausible
import reads, per page a visit began on, the visitors, sign-ups and form
leads (a new page_days table); What ranks, the audit and Sites show
visits and sign-ups next to each page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-24 07:07:47 -07:00
co-authored by Claude Opus 5.5
parent aeba28b658
commit e9871082b5
12 changed files with 733 additions and 26 deletions
+128 -14
View File
@@ -15,11 +15,43 @@ running a Federated Core can install as a CoreDesktop sibling.
| Core MCP / EspoCRM | Reached through the **local Hermes agent**, which gets an `mcp_servers` entry for the Core's MCP hub |
| Billing data | **Stripe** first, for CAC, CLV and NRR |
| Existing content work | **Kept.** The hard-coded app list becomes the **Inventory** of partners and competitors |
| Websites and components | The suite builds the company's **websites** from a reusable **component library** |
| Websites and components | Pages are built from **each site's own section types** (decided 2026-11-22, Phase 5); **new sites** start from Supermarket's **shared theme**, copied into each site, with federated-website's look and the site's brand (Phase 6) |
| Publishing | Sites are pushed to a **Gitea repository**. The user sets up the hooks that publish it to the Hugo server |
| Contact enrichment | Third-party services allowed, behind a pluggable interface (section 6) |
| AI for the app | Uses Hermes' Anthropic key and model when the user agrees (2026-11-20), copied to `hermes-ai.json` by `supermarket hermes` and `update.sh`. It calls the model directly, never through Hermes: post writing reads untrusted web text, which must not reach an agent with tools and CRM access |
| Suite shape | One repo, one app with modules (Content, Prospects, SEO, Metrics, Sites), plus an MCP endpoint for agents |
| Backups | SQLite's own `VACUUM INTO`, on request, before every migration and daily, in `<data>/backups`; secrets never in them (Phase 6) |
## Where things stand (2026-11-22)
**Phases 0–6 are built and merged into `main`** (3ddf716; the user pushes
from their own terminal). Only Phase 1 is tagged (`v0.1.0`); whether to
tag the later phases is the user's call. Every module works: Content, Prospects, SEO,
Metrics and Sites, with Settings → Backups.
**Next: a run through TEST.md by hand** (planned for 2026-11-23), fixing
what it turns up. Make a backup first: `supermarket backup "before
testing"`.
**Waiting on the user, or on others:**
- *The CRM bridge*: the Core's MCP hub reaches EspoCRM at a stale address;
with the Core's developer. It holds up the CRM queue, the 385 customer
matches waiting for Accounts, and Phase 4 part 7 (pipeline influence).
- *Lead forms*: a Lead Capture in EspoCRM, the lead-forms pull request on
federated-website, and a `Lead` goal in Plausible.
- *The LinkedIn page*: LinkedIn approving the second app (Community
Management API).
- *A first new site*: an empty repository on Gitea, and its deploy hook.
- *Metrics*: the start month (2025-01 suggested), the per-product margins,
other spend; publishing the open metrics page is the user's choice.
- *SEO*: the search-engine setup pull request on federated-website (adds a
sitemap and robots.txt; Google still has an old www sitemap from 2023).
- *The shopping cart*: it must save the UTM tags in Stripe Checkout's
metadata for sign-ups to count per signal (and per landing-page variant).
- *Reddit*: API access needs Reddit's approval; until then, posts by hand.
- *Not yet tried with real money or data*: discovery (web searches),
building site pages with the AI, sending outreach email through the
Core's mail server.
## 2. Requirements from the notes
@@ -300,7 +332,7 @@ What item 8 turned up:
the Core's developer: it isn't known yet whether the hub blocks them for
non-admins.
Next: Phase 1, under way (see below).
Phase 1 followed (see below).
Supermarket's half can be checked before the token arrives: ask Hermes the
check-in question now. It should reach `bridge_checkin` and note that
@@ -326,9 +358,12 @@ mcphub failed.
`hermes.json`?~~ No. Answered 2026-11-19: it uses the MCP socket instead.
- ~~Does `hermes config set` write nested `mcp_servers.*.headers` keys
correctly?~~ Yes.
- What EspoCRM tools does the hub expose?
- Can Hermes cron jobs call MCP tools?
- How reliable is a run of 50 queued actions?
- ~~What EspoCRM tools does the hub expose?~~ Six generic record tools
(above). Answered 2026-11-20.
- Can Hermes cron jobs call MCP tools? Built in Phase 2 part 1 (the
`supermarket-crm` job), not yet run live: the hub's EspoCRM connection
is stale.
- How reliable is a run of 50 queued actions? Not known until then.
### Phase 1: Content (today's pipeline, generalized) + Reddit
@@ -451,12 +486,9 @@ in `internal/web/server.go` and an icon in `layout.html`. brain's fonts
(DM Sans, Plus Jakarta Sans) are named but not bundled, so the system font
is used unless they're installed.
**To pick this up:** try Phase 1 for real (the checklist above), fix what
that turns up, then decide whether to merge `phase0-foundation` into `main`
and tag `v0.1.0`. Then Phase 2, Prospects → EspoCRM, which depends on the
hub's EspoCRM tools (see Phase 0: `espocrm_search_records`,
`espocrm_get_record`, `espocrm_get_related_records`,
`espocrm_create_record`, `espocrm_update_record`, `espocrm_delete_record`).
**Done since:** Phase 1 was tried for real (posting to X and LinkedIn
worked on 2026-11-21), merged into `main` and tagged `v0.1.0` on
2026-11-21. Phase 2 followed.
The plan for Phase 1, as first written:
1. Port fetch → browse → select → generate → approve → publish into the web
@@ -477,9 +509,10 @@ The plan for Phase 1, as first written:
**Started 2026-11-21** on branch `phase2-prospects`, after Phase 0 and 1
were merged into `main` and tagged `v0.1.0`. **Parts 1 to 7 built, and
merged into `main` on 2026-11-22** (d23d5e2). Part 8 (Hugo pages per
signal) waits for Phase 5. Not yet tried against the live services:
discovery's web search, outreach's mailbox, Stripe and Plausible (no keys
saved yet), and the CRM bridge, which waits on the Core's MCP hub.
signal) was built in Phase 5, part 4. Stripe and Plausible were connected
later on 2026-11-22. Not yet tried against the live services: discovery's
web search, outreach's mailbox, and the CRM bridge, which waits on the
Core's MCP hub.
**Reframed 2026-11-21 (the user's direction).** Phase 2 is built around
**buying signals**: hypotheses about why a company buys now, which are
@@ -1553,6 +1586,87 @@ admin. The docs don't say which scope the role list needs.
which sign-in is missing or expired.
Not tried for real: it waits on LinkedIn approving the page app.
### Phase 7: What to write next, from what converts
**Planned 2026-11-24**, after comparing SEO with ChatSEO (which drafts
whole pages from Search Console alone). Supermarket already suggests
title changes (Changes), rewrites (What ranks → brief), new keywords
(Next keywords) and landing pages per signal, but each from Search
Console alone, in four places, and a page can only be retitled or
rewritten whole. Phase 7 ranks them by what turns visits into sign-ups,
adds suggestions from the funnel, puts them in one list, and adds a
section to an existing page.
**What can be measured per page today** (checked 2026-11-24 against
federated.computer's Plausible):
- *Visits by entry page*: Plausible's `visit:entry_page` (1,641 of the
last 30 days' visitors entered on `/`; then /partners/, /pricing/…).
- *Sign-up starts by entry page*: Plausible already records "Outbound Link:
Click" with the link (`event:props:url`). Clicks to
`enterprise.federated.computer/signup` (5) and
`cloud.federated.computer/signup` (2) in 30 days are sign-up starts, and
Plausible ties each to the page the visit began on.
- *Form leads by page*: the `Lead` goal, once it's added in Plausible
(Phase 6) and the forms are connected.
- *Not yet*: payments by page. Stripe knows a customer's signal only when
the shopping cart saves the UTM tags; it would need the landing page
too (`utm_content`, or a `landing_page` metadata key). Until then,
payments count per signal, not per page.
**Parts, in order, a commit after each:**
1. **Conversions by page.** Settings → Website & sales gets *What counts
as a sign-up*: link patterns for outbound clicks (default: any link
ending in `/signup`, found from the last 30 days' clicks and offered
for ticking), plus the `Lead` goal. The daily Plausible import adds,
per website and day: visitors, sign-up starts and leads by entry page
(a new `page_days` table, 16 months kept like Search Console's). The
page tables on What ranks, the audit and Sites show *Visits* and
*Sign-ups* next to clicks.
2. **Ranked by what converts.** Change candidates and *Push* pages are
ordered by expected sign-ups (impressions × the click rate a page one
result usually gets × the page's own visit-to-sign-up rate, or the
site's when the page has too few visits), not by impressions alone.
Flagged, wherever pages are listed: *traffic, no sign-ups* (at least
100 visits in 90 days and none) and *converts, hardly found* (a
sign-up rate in the site's top quarter, few impressions): the second
is the best case for a rewrite or new links to it.
3. **Suggestions from the funnel.**
- A signal with replies or interested people (origami.chat,
explee.com, email) but no landing page: *Build a landing page for
it*, with its numbers.
- An app or product named in replies: the reply texts Supermarket
already reads (email outreach), and explee.com's or origami.chat's
if their APIs give the text, are matched against the Software
Library's apps and the Inventory; one with no page of its own on the
site is suggested as a product page.
- A keyword picked but with no brief, and a brief with no page.
4. **One list: SEO → Next.** Every suggestion from parts 2 and 3, and the
existing ones (Changes' candidates, Push pages, Next keywords' picks),
in one ranked list, each with its reason in numbers and one button
that starts the existing flow (propose a title, write a brief, build a
landing page). Nothing is drafted until you press it; the brief still
asks its questions first. At most 10 shown; dismissing one hides it
for 90 days. It's a page under SEO (the module still opens on the
Morning check); the Monday report's section 3 links to it.
5. **Add a section to an existing page.** On a page (Sites → Sections and
pages), *Add a section*: choose one of the site's section types (faq,
table, features…) and where it goes; the AI drafts it from the page,
the profile and the Inventory, with the same rules as new pages (no
invented prices, customers or numbers; claims of experience to be
ticked; to-dos listed). The pull request changes only that page's
front matter, checked with a Hugo build. Suggested in the list when
the page's searches are questions (a FAQ) or name a competitor (a
comparison table).
**Decided 2026-11-24:** Supermarket suggests what counts as a sign-up
(the patterns above, from the links people really click) and the user
refines it: ticks or unticks the suggestions and adds their own patterns.
The SEO module keeps opening on the Morning check; *Next* is one more page
under SEO.
**Not in this phase:** writing drafts on its own (ChatSEO's way), images,
and competitors' live prices.
### Future enhancements
Not in any phase yet; picked up when the user asks.