Phase 2 part 6: outreach by email and LinkedIn
Drafts are written by the AI from the person's buying signal (hypothesis and angle), their company and their history, then reviewed and edited. Queued emails go out through the Core's mail server one at a time, within the sending hours, the daily limit and a gap, never to a suppressed or bouncing address or someone emailed in the last 14 days; with a signature, an opt-out line, UTM-tagged links and a copy in Sent. The inbox is read read-only every 10 minutes: replies (by Message-ID or sender) count as Replied, bounces mark the address, and "stop" replies are suppressed. LinkedIn messages are copied, sent by hand and marked sent. New pages: Prospects → Outreach and Settings → Email (with an SMTP, IMAP, SPF, DKIM and DMARC check). Schema 10; emersion/go-imap for IMAP. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -119,6 +119,13 @@
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{template "enrich-run" (index $d.Runs (printf "contact:%d" $p.ID))}}
|
||||
{{with index $d.Messages $p.ID}}<div class="small">{{range .}}<a href="/outreach?tab={{if .RepliedAt.IsZero}}{{if eq .Status "bounced"}}failed{{else}}{{.Status}}{{end}}{{else}}replied{{end}}#m-{{.ID}}">{{if eq .Channel "email"}}Email{{else}}LinkedIn message{{end}} {{if not .RepliedAt.IsZero}}replied to {{ago .RepliedAt}}{{else if eq .Status "sent"}}sent {{ago .SentAt}}{{else if eq .Status "draft"}}drafted{{else if eq .Status "failed"}}didn't go{{else}}{{.Status}}{{end}}</a> {{end}}</div>{{end}}
|
||||
{{if ne $p.Status "rejected"}}
|
||||
<div class="row wrap">
|
||||
{{if and $p.Email (ne $p.EmailStatus "invalid")}}<form method="post" action="/outreach/draft" data-busy="Writing…"><input type="hidden" name="contact" value="{{$p.ID}}"><input type="hidden" name="channel" value="email"><input type="hidden" name="tab" value="{{$tab}}"><input type="hidden" name="filter" value="{{$d.Signal}}"><button type="submit" class="link small">Write an email</button></form>{{end}}
|
||||
{{if $p.LinkedIn}}<form method="post" action="/outreach/draft" data-busy="Writing…"><input type="hidden" name="contact" value="{{$p.ID}}"><input type="hidden" name="channel" value="linkedin"><input type="hidden" name="tab" value="{{$tab}}"><input type="hidden" name="filter" value="{{$d.Signal}}"><button type="submit" class="link small">Write a LinkedIn message</button></form>{{end}}
|
||||
</div>
|
||||
{{end}}
|
||||
{{if not $p.CompanyID}}{{template "signal-tag" dict "Kind" "contact" "ID" $p.ID "SignalID" $p.SignalID "D" $d}}{{end}}
|
||||
{{with index .Matches (printf "contact:%d" $p.ID)}}{{template "crm-matches" .}}{{end}}
|
||||
{{template "outcomes" dict "Kind" "contact" "ID" $p.ID "Tab" $tab "D" $d}}
|
||||
|
||||
Reference in New Issue
Block a user