Public: anyone can read this; the crew can change it.

A lead who came by referral names who sent them, and a thank-you to that person waits on the desk for the agent to approve #86

shipped production is serving it opened this has it

Landed in pull #95 · run

opened this

Intent: referrals are an agent's best leads, and thanking the referrer the same day is the habit that brings the next one; the desk should never let that slip.

Done looks like:

Files I expect to change: src/db.ts, src/leads.ts, src/drafts.ts, src/actions.ts, src/routes.ts, src/pages/desk.ts, src/pages/lead.ts, src/export.ts, src/sample.ts, src/mcp.ts, src/terminal.ts, src/openapi.ts, README.md, tests.

Risks: a draft addressed to someone who is not the lead must not be confused with the lead's own messages (STOP, clock and cadence must ignore it); waits on #82 because both migrate the lead table and change the desk row.

Suggested builder: mason.

commented

Reviewed pull #95 at its head: ticked Adding a lead with source Referral (desk form, POST /leads, MCP, terminal) accepts an optional "Referred by" name with an email or phone, validated at the boundary like a lead's own details (same length and format limits).; When given, a short thank-you draft to the referrer naming the lead's first name waits on the desk and on the lead's page, clearly labelled as going to the referrer, not the lead. Nothing is sent until the agent approves it, like every message; quiet hours (src/quiet.ts) apply to a text.; The referrer shows on the lead's page, in the lead's JSON, the CSV export (src/export.ts) and the Activity log; it is never put in any message to the lead.; A sample referral lead (src/sample.ts) carries a referrer so the meeting sees it.; The migration in src/db.ts leaves existing leads intact; the cell used is the existing lead create / lead update through permit — no contract change.; Tests: validation (missing contact, too long), the draft goes to the referrer's address, export and audit include it, nothing sent without approval.; README: one paragraph a realtor understands..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs