Files
supermarket/internal/web/templates/prospect-new.html
T
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

45 lines
2.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{{define "content"}}{{with .Data}}
<h1>{{if .For}}Add a person at {{.For}}{{else}}Add a prospect{{end}}</h1>
<p class="lede">{{if .For}}They go into review with {{.For}}.{{else}}A company, a person at it, or both. They go into review first; nothing reaches your CRM until you accept it.{{end}}</p>
<form method="post" action="/prospects/new" class="card">
{{if .For}}<input type="hidden" name="company_id" value="{{.CompanyID}}">
{{else}}
<h2>Company</h2>
<div class="cols">
<label>Name <input name="company_name" value="{{.Company.Name}}" autocomplete="off"></label>
<label>Website <input name="website" value="{{.Company.Website}}" placeholder="example.com" autocomplete="off"></label>
<label>Industry <input name="industry" value="{{.Company.Industry}}"></label>
<label>Size <input name="size" value="{{.Company.Size}}" placeholder="e.g. 50–200 people"></label>
<label>Location <input name="location" value="{{.Company.Location}}"></label>
<label>LinkedIn page <input name="company_linkedin" value="{{.Company.LinkedIn}}" placeholder="https://www.linkedin.com/company/…"></label>
</div>
<label>Why they fit <textarea name="why" rows="2" placeholder="What makes them a good prospect">{{.Company.Why}}</textarea></label>
<h2>Person <span class="muted small">(optional)</span></h2>
{{end}}
<div class="cols">
<label>First name <input name="first_name" value="{{.Contact.FirstName}}" autocomplete="off"></label>
<label>Last name <input name="last_name" value="{{.Contact.LastName}}" autocomplete="off"></label>
<label>Job title <input name="title" value="{{.Contact.Title}}"></label>
<label>Email <input name="email" type="email" value="{{.Contact.Email}}" autocomplete="off"></label>
<label>Phone <input name="phone" value="{{.Contact.Phone}}"></label>
<label>LinkedIn profile <input name="linkedin" value="{{.Contact.LinkedIn}}" placeholder="https://www.linkedin.com/in/…"></label>
</div>
{{if .Signals}}{{$cur := .Company.SignalID}}
<label>Buying signal
<select name="signal">
<option value="0">none</option>
{{range .Signals}}<option value="{{.ID}}" {{if eq .ID $cur}}selected{{end}}>{{.Name}}</option>{{end}}
</select>
<span class="help">The signal you found them through{{if $.Data.For}}. Leave it at none to use the company's{{end}}.</span>
</label>
{{end}}
<label>Where you found them <input name="source_detail" value="{{.Contact.SourceDetail}}" placeholder="A link, an event, a referral…">
<span class="help">Kept with the prospect and written into the CRM record, so you can always say where a contact came from.</span></label>
<div class="actions">
<button type="submit">Add for review</button>
<a href="/prospects">Cancel</a>
</div>
</form>
{{end}}{{end}}