Phase 1, part 2: Inbox, scheduled publishing and UTM tags
- Inbox: a top-level page, with a count in the menu, for everything waiting for approval; Content's drafts are reviewed there. /drafts redirects to it. - Scheduling: publish a draft now or at a time (migration 3 adds publish_at). A scheduler in the app publishes due drafts every 30 seconds. Posts more than 12 hours overdue, or refused before posting, go back to the Inbox with the reason. Content gets Scheduled and Published tabs. - UTM tags on links to the company's own websites and product pages, added when publishing; drafts stay untagged. - The container runs in the computer's time zone, so times are shown and read correctly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,7 @@ Everything starts from your **company profile** (what you sell, to whom, in what
|
||||
| Metrics | Pipeline influence, CAC, CLV and NRR, from Stripe, EspoCRM and Plausible | Phase 4 |
|
||||
| Sites | Builds pages and sites from a component library and publishes them through Gitea | Phase 5 |
|
||||
|
||||
This version has the foundation (Phase 0): the web app, the company profile, the inventory, the AI provider, credentials, and the bridge to your Core through Hermes. It also has the first part of the Content module (Phase 1): fetching, writing drafts, and publishing to X and LinkedIn. See [PLAN.md](PLAN.md) for the whole plan.
|
||||
This version has the foundation (Phase 0): the web app, the company profile, the inventory, the AI provider, credentials, and the bridge to your Core through Hermes. It also has most of the Content module (Phase 1): fetching, writing drafts, an Inbox for approval, scheduled publishing to X and LinkedIn, and UTM tags. See [PLAN.md](PLAN.md) for the whole plan.
|
||||
|
||||
## Install
|
||||
|
||||
@@ -96,7 +96,10 @@ To check the connection, open **Core & Hermes** in Supermarket and ask Hermes th
|
||||
2. Add partners and competitors to the **Inventory**, with the places to watch: an X handle, hashtags, a YouTube channel, RSS feeds.
|
||||
3. Under **Content**, open an entry and press **Fetch new**. Supermarket reads every source that has credentials, starting where the last fetch ended (or a week back).
|
||||
4. Select items, choose the channels, and press **Write drafts**: one post from all of them, or one per item. Each channel gets its own draft.
|
||||
5. On **Drafts**, edit and publish each one. The source link is added when publishing (on X it counts toward the 280 characters, and the counter includes it). A failed draft keeps its error and can be published again; the other channel's draft is unaffected.
|
||||
5. In the **Inbox**, edit each draft, then **Publish now** or **Schedule** it. The source link is added when publishing (on X it counts toward the 280 characters, and the counter includes it). A failed draft comes back to the Inbox with its error; the other channel's draft is unaffected.
|
||||
6. Scheduled posts are listed under **Content → Scheduled**, and go out on time while the container runs (it starts with your computer). One more than 12 hours late, because the computer was off, goes back to the Inbox instead of going out stale.
|
||||
|
||||
Links to your own websites and product pages (from the profile) get UTM tags when published: `utm_source` is the channel, `utm_medium` is `social`, `utm_campaign` is the kind of post (partner, competitor, watch) and `utm_content` is the entry and draft. Links elsewhere are left as they are. Times are shown and read in your computer's time zone.
|
||||
|
||||
Reading X needs a bearer token from an X API plan with read access; YouTube needs a free API key; RSS needs nothing. Posting needs the sign-ins below.
|
||||
|
||||
@@ -133,7 +136,8 @@ SUPERMARKET_DATA=/tmp/cm SUPERMARKET_ADDR=127.0.0.1:8470 go run ./cmd/supermarke
|
||||
| `internal/ai` | AI providers: Anthropic (official Go SDK) and OpenAI-compatible servers |
|
||||
| `internal/mcpserver`, `internal/bridge` | The `/mcp` endpoint and Hermes' check-ins |
|
||||
| `internal/legacy` | One-time import from the old terminal app |
|
||||
| `internal/content` | The Content module: fetched items, per-channel drafts, prompts, publishing |
|
||||
| `internal/content` | The Content module: fetched items, per-channel drafts, prompts, scheduling, publishing |
|
||||
| `internal/utm` | UTM tags for links to the company's own sites |
|
||||
| `internal/api`, `internal/fetcher` | X, LinkedIn, YouTube and RSS clients, and fetching for an inventory entry |
|
||||
| `hermes/setup.sh` | Connects Hermes |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user