Outcome: Give an SDR an account. Get the researched company, verified people, approval-ready outreach and Deal plan, then publish once to HubSpot and Slack.
What I built: a local SDR intelligence workbench. Submit one account in the browser and get a cited account brief, verified and ranked contacts, reviewable per-contact outreach, a HubSpot Deal plan, and one approval-signed publication package. One local Node process runs the web app and worker. SQLite is the only store.
The problem this solves: SDR research today is chat summaries with no source. Reps cannot forward them, managers cannot verify them, and CRM writes happen unreviewed. This system makes every claim receipt-backed, every contact verified, and every CRM write approved before it fires.
The system, 6 stages: account research by stateless agents with receipts or explicit GAPs. Contact discovery with current-employer checks. Independent email verification before any address becomes sendable. Deterministic scoring plus Deal planning in code. Reviewable email plus LinkedIn drafts per verified contact. Hash-bound human approval plus idempotent publish to HubSpot and Slack.
Results: one-shot portal proof 10 of 10 rows on a Clay create plus 10 of 10 on a Folk update, replay clean. 8 fresh companies published live in the September matrix. 212 of 212 tests green plus typecheck plus production build. Test portal and test channel only. No real prospect ever contacted.
Agents do research and judgment. Code owns trust and side effects. Agents never receive HubSpot or Slack credentials and cannot approve or publish. Automated work stops at awaiting review. A human approves the exact frozen package.
https://www.loom.com/share/5bd2e806a3e845d0b4b4b2c0654ed3ac
| Tool | Role |
|---|---|
| Next.js plus SQLite | Local web app and the only operational store. Account queue, evidence views, approvals, run history, receipts log |
| OpenCode stage agents | Seven stateless workers: researcher, contact discoverer, brief writer, outreach writer, quality checker, lookalike suggester, battlecard researcher |
| Treg plus Tavily | Research providers behind receipt-backed evidence. Every claim carries a source receipt or an explicit GAP |
| Hunter plus ZeroBounce plus direct verifiers | Independent email verification. Hunter 85 or higher, or a direct verifier VALID on the exact provider-returned address |
| HubSpot | Test portal Company plus Contact plus Deal with associations. Search before create, update in place, allowlisted fields only |
| Slack | One Block Kit account summary per approved version, updated in place via stored message timestamp |
graph LR
A["Browser<br/>New research<br/>account form"] --> B["Worker<br/>Research stage<br/>agents + receipts"]
B --> C["Contacts<br/>Discover + verify<br/>employer + email"]
C --> D["Code<br/>Score + Deal plan<br/>deterministic"]
D --> E["Drafts<br/>Email + LinkedIn<br/>per verified contact"]
E --> F["Quality gate<br/>PASS / REWORK<br/>REJECT"]
F --> G["Review package<br/>Frozen + hashed<br/>awaiting approval"]
G --> H["Human approves<br/>exact hash<br/>only"]
H --> I["Outbox<br/>HubSpot + Slack<br/>idempotent"]
I --> J["Receipts log<br/>read back<br/>replay clean"]
style A fill:#111111,stroke:#111111,color:#ffffff
style B fill:#111111,stroke:#111111,color:#ffffff
style C fill:#111111,stroke:#111111,color:#ffffff
style D fill:#111111,stroke:#111111,color:#ffffff
style E fill:#111111,stroke:#111111,color:#ffffff
style F fill:#111111,stroke:#111111,color:#ffffff
style G fill:#111111,stroke:#111111,color:#ffffff
style H fill:#111111,stroke:#111111,color:#ffffff
style I fill:#111111,stroke:#111111,color:#ffffff
style J fill:#111111,stroke:#111111,color:#ffffff
A brief an SDR can forward and a manager can verify. No chat summaries.
| Step | What happens | Detail |
|---|---|---|
| 1 | Submit the account | Company plus domain plus objective plus target roles in the browser. Optional question or existing HubSpot Deal. One active account per normalized domain |
| 2 | Agents research in bounds | Researcher searches and reads sources, resolves conflicts, returns facts plus inferences plus gaps plus signals. One stage contract in, one schema-valid artifact out |
| 3 | Evidence accepted or gapped | Deterministic code accepts claims with source receipts only. Anything without a receipt becomes an explicit GAP. Inferences are never promoted to facts |
| 4 | Brief written from accepted claims | Brief writer drafts the account brief plus GTM angle from accepted claims alone. It cannot introduce new facts or contacts |
Live proof: 5 verified plus 1 GAP of 6 evidence items on Folk, receipt-backed, rerunnable from scripts.