Liveagentsaleshitl

lead-qual-agent

Inbound lead in, ICP score + enrichment + draft first-touch email out. Human hits send.

lead-qual-agent preview

§ 01 · Overview

An agent that converts an inbound lead (email plus optional company details) into a scored, enriched, and drafted first-touch email. Enrichment covers the company website (fetch and parse) and — for UK-registered companies — Companies House filings via the companies-house-mcp client. Scoring is LLM-driven against a configurable ICP rubric. Every draft references a specific, verifiable piece of enrichment evidence and is routed through the human review queue provided by hitl-review before any send action.

§ 02 · Estimated impact

£18,000-£60,000/yr per SDR seat
for founders running their own outbound, small B2B sales teams, and agencies operating lead-generation retainers
Basis: A UK SDR costs £35,000-£55,000 fully-loaded and typically spends 60-70% of each day on manual research and email drafting prior to send. Automating research and first-draft composition allows a single SDR to handle two to three times the throughput at equivalent quality. For founders running their own outbound, the throughput uplift is more pronounced still.

§ 03 · Architecture

  1. 01

    A lead arrives via webhook, forwarded email, or manual paste. The agent fetches and parses the company website (homepage, about, careers, blog) and, where a company number is provided, pulls filings and officers via the companies-house-mcp client.

  2. 02

    Scoring is LLM-driven against a YAML-defined ICP rubric with weighted criteria. Every score has per-criterion reasoning tied to enrichment evidence. Sub-threshold leads are archived with a stated reason; above-threshold leads progress to drafting.

  3. 03

    The drafter is required to reference one specific, verifiable piece of enrichment evidence (a job posting, a filing entry, a blog title). Drafts that cannot find a grounded anchor are flagged for the reviewer with an explicit warning rather than shipped as generic outreach.

  4. 04

    Drafts are routed through hitl-review. Approve, edit, or reject via the terminal CLI or the browser dashboard. Approved drafts are materialised as markdown files in the local drafts folder; direct-send adapters (Gmail, Outlook) are on the roadmap.

Stack

TypeScript / NodePlaywright (site scrape)Claude[[companies-house-mcp]]PostgresNext.js (approval UI)Gmail/Outlook send

§ 04 · Positioning

The differentiator against volume-oriented AI-SDR platforms is the combination of grounded personalisation and human-in-the-loop routing as first-class features. Emails that reference something specific and verifiable from the prospect's own materials read differently from generic AI outreach, and human approval prevents sender-reputation damage.

AlternativeTrade-off
Automated AI-SDR platforms (Clay-style, Instantly-style)Optimised for send volume rather than reply rate. Recipients typically identify the AI copy immediately, and sender reputation degrades quickly on the sending domain. This pipeline is designed for lower-volume, higher-signal sends with a human sign-off.
Manual research and hand-crafted outreachHigher quality per email, but throughput ceiling of approximately 15 emails per day per SDR. The agent handles the mechanical 80% of research and drafting; the reviewer signs off on a near-final draft. Quality bar is maintained at approximately three times the throughput.
Ad-hoc LLM-prompting workflowsEffective for the first 20 leads. Consistency, ICP scoring, and enrichment source-of-truth degrade rapidly past 200 leads. This pipeline formalises the workflow with rubrics, evidence trails, and structured approval logging.

§ 05 · Frequently asked

How does lead-qual-agent prevent generic AI-written outreach?

The drafter's system prompt requires every email to reference one specific, verifiable piece of enrichment evidence — a job posting, a filing entry, a blog title. Drafts that cannot find a grounded anchor are flagged with hasGroundedEvidence: false and surfaced to the reviewer with an explicit warning, not shipped as generic outreach.

What data sources does lead-qual-agent use for enrichment?

Website scrape (fetch plus cheerio, no browser needed) and Companies House filings via the companies-house-mcp client when a UK company number is provided. Proprietary sources like LinkedIn are not included in v0.1 by design — the tool is intended for transparent, cite-able enrichment.

Does lead-qual-agent send emails automatically?

No, and by design. Approved drafts land as markdown files in ./drafts/ for the reviewer to send manually. Direct-send adapters (Gmail, Outlook OAuth) are on the roadmap for v0.2, with the send action still gated behind an explicit human approval.

Availability

Available now. Review the source, try it in your stack, or discuss integration.

Follow along

Build notes and updates are published in the Notes. Or check GitHub for release notes and open issues.