Files
davidandClaude Opus 5.5 b025a97e4a Phase 2 part 3: buying signals, the funnel and the scorecard
Schema 7 adds signals (hypothesis, how to spot it, angle, status, utm
slug), funnel_events (stage, channel, subject, campaign, source, deduped
by external ID) and outside_campaigns. Prospects -> Signals is the
scorecard: each signal's funnel from found to paid, people once per
stage, with revenue and outside spend, by period and channel. Each
signal's page shows its funnel by channel, its campaigns and its latest
steps. Prospects carry a signal (filter, change, "found" recorded) and
outcomes can be recorded by hand.

Settings -> Lead sources holds origami.chat and explee.com API keys. Every
6 hours (or Import now) Supermarket reads their campaigns, numbers and
spend, contacted people, replies and hot leads, read-only: interested
people and repliers become prospects, unsubscribes are suppressed, and
each campaign is assigned to a signal. The explee.com client follows its
OpenAPI schema; origami.chat's responses are undocumented, so its client
reads fields loosely and its Test shows the real response.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 18:06:58 -07:00

82 lines
5.1 KiB
HTML

{{define "content"}}{{with .Data}}{{$d := .}}
<div class="heading">
<h1>Signals</h1>
<div class="buttons"><a class="button" href="/signals/new">New signal</a></div>
</div>
<p class="lede">A buying signal is a guess about why a company buys now. Each one is tested through what's done for it, directly (email, LinkedIn) and indirectly (posts, pages), and in origami.chat and explee.com. Every step anyone takes through the funnel is counted here, so you can see which signals turn into replies, bookings, sign-ups and payments.</p>
<form method="get" action="/signals" class="filters">
<label class="small">Period
<select name="period" data-autosubmit>{{range .Periods}}<option value="{{.ID}}" {{if eq .ID $d.Period}}selected{{end}}>{{.Label}}</option>{{end}}</select>
</label>
<label class="small">Channel
<select name="channel" data-autosubmit><option value="">All channels</option>{{range .Channels}}<option value="{{.ID}}" {{if eq .ID $d.Channel}}selected{{end}}>{{.Label}}</option>{{end}}</select>
</label>
<noscript><button type="submit" class="secondary small">Show</button></noscript>
</form>
{{if .Rows}}
<div class="table-wrap">
<table class="list scorecard">
<thead><tr><th>Signal</th>{{range .Stages}}<th class="num">{{.Label}}</th>{{end}}<th class="num">Revenue</th><th class="num">Spend</th></tr></thead>
<tbody>
{{range .Rows}}
<tr>
<td>{{with .Signal}}<a href="/signals/{{.ID}}">{{.Name}}</a> <span class="badge {{.Status}}">{{.Status}}</span>{{else}}<span class="muted">No signal</span>{{end}}</td>
{{range .Cells}}<td class="num">{{if .Count}}{{.Count}}{{with .Rate}}<span class="rate">{{.}}</span>{{end}}{{else}}<span class="muted">·</span>{{end}}</td>{{end}}
<td class="num">{{if .RevenueCents}}{{money .RevenueCents}}{{else}}<span class="muted">·</span>{{end}}</td>
<td class="num">{{if .SpendCents}}{{money .SpendCents}}{{else}}<span class="muted">·</span>{{end}}</td>
</tr>
{{end}}
</tbody>
</table>
</div>
<p class="help">People count once per stage, however many times they replied. Percentages are of those contacted. Visits are counted in total, not per person. Spend is what origami.chat and explee.com report for each signal's campaigns, all time. A signal moves to <em>proven</em> when you say so.</p>
{{else}}
<section class="card empty"><p>No signals yet. <a href="/signals/new">Write down the first one</a>: for example, “Teams complaining about the Microsoft 365 price rise switch within a quarter.”</p></section>
{{end}}
<h2 id="campaigns">Campaigns in origami.chat and explee.com</h2>
<p class="lede">Supermarket reads your campaigns, who they contacted, who replied, who was interested and who unsubscribed, every 6 hours. Give each campaign the signal it tests; its results count towards that signal. Interested people and people who replied show up in <a href="/prospects">Review</a>, and anyone who unsubscribed goes on the <a href="/prospects/suppressed">suppression list</a>.</p>
<div class="grid">
{{range .Sources}}
<section class="card">
<h3>{{.Name}}</h3>
{{if .Set}}
{{with .Last}}<p class="small">{{if .Error}}<span class="warn-text">Last import failed {{ago .At}}: {{.Error}}</span>{{else}}Imported {{ago .At}}: {{.Campaigns}} campaigns, {{.Events}} new steps, {{.Prospects}} new people to review, {{.Suppressed}} unsubscribed.{{end}}</p>
{{if .Warnings}}<details class="small"><summary>{{len .Warnings}} warnings</summary><ul>{{range .Warnings}}<li>{{.}}</li>{{end}}</ul></details>{{end}}
{{else}}<p class="small">Not imported yet.</p>{{end}}
<form method="post" action="/lead-sources/{{.ID}}/import" data-busy="Importing…"><button type="submit" class="secondary small">Import now</button></form>
{{else}}<p class="small">Not connected. Save its API key under <a href="/settings/sources">Settings → Lead sources</a>.</p>{{end}}
</section>
{{end}}
</div>
{{if .Campaigns}}
<table class="list">
<thead><tr><th>Campaign</th><th>Numbers</th><th class="num">Spend</th><th>Signal</th></tr></thead>
<tbody>
{{range .Campaigns}}
<tr>
<td><strong>{{.Name}}</strong><br><span class="muted small">{{if eq .Source "origami"}}origami.chat{{else}}explee.com{{end}}{{with .Status}} · {{.}}{{end}} · read {{ago .SyncedAt}}</span></td>
<td class="small">{{range $k, $v := .Stats}}{{if $v}}<span class="stat">{{$k}}: <strong>{{$v}}</strong></span> {{end}}{{end}}</td>
<td class="num">{{if .SpendCents}}{{money .SpendCents}}{{end}}</td>
<td>
<form method="post" action="/signals/campaigns" class="row">
<input type="hidden" name="source" value="{{.Source}}"><input type="hidden" name="id" value="{{.ID}}">
{{$cur := .SignalID}}
<select name="signal" data-autosubmit aria-label="Signal for {{.Name}}">
<option value="0">No signal yet</option>
{{range $d.Signals}}<option value="{{.ID}}" {{if eq .ID $cur}}selected{{end}}>{{.Name}}</option>{{end}}
</select>
<noscript><button type="submit" class="secondary small">Save</button></noscript>
</form>
</td>
</tr>
{{end}}
</tbody>
</table>
{{end}}
{{end}}{{end}}