Level 2Agency Foundation

Lead Generation Pipeline

Setup Time: 3–4 hours
Est. API Cost: ~$20–$50/mo
Client Price: $500–$2,000

B2B lead generation is either expensive (paid ads, LinkedIn outreach tools) or slow (content-led inbound). The bottleneck most businesses never address is qualification: the hours of human time spent researching prospects, assessing fit, and deciding which leads are worth pursuing. A sales team spending 40% of its time on leads that will never convert is not a pipeline problem — it is a qualification problem.

Follow the exact steps below to configure and deploy this automation inside your OpenClaw workspace.

  1. 1Create a new agent named `lead-gen-pipeline`. Configure your lead source connections: LinkedIn Sales Navigator (if available), Apollo.io API, or configured Google Alerts for trigger events (funding announcements, leadership changes, hiring signals).
  2. 2Define your Ideal Customer Profile (ICP) in the `ICP_CRITERIA` section: industry, company size range, geography, technology signals, and any disqualifying factors. The agent scores each lead 1–100 against these criteria — set your `QUALIFICATION_THRESHOLD` (default 65).
  3. 3Connect your CRM: the agent supports HubSpot, Salesforce, and Pipedrive. Configure the CRM stage where qualified leads land (default: 'MQL — Agent Qualified') so your sales team knows these have been pre-screened.
  4. 4Populate the `OUTREACH_CONTEXT` section: describe your offer, ideal use case, and two or three specific pain points you solve. Claude uses this to write outreach emails that reference the prospect's specific situation rather than a generic pitch.
  5. 5Set your `FOLLOW_UP_SEQUENCE`: default is Day 0 (initial outreach), Day 4 (value-add follow-up), Day 10 (final check-in). Any reply automatically pauses the sequence and moves the lead to human-managed status in the CRM.

Save this file as: .openclaw/agents/lead-generation-pipeline/context.json

context.json
context payload
{
  "automation_id": "12",
  "title": "Lead Generation Pipeline",
  "level": 2,
  "tier": "Agency Foundation",
  "setup_time": "3–4 hours",
  "estimated_api_cost": "~$20–$50/mo",
  "client_price_range": "$500–$2,000",
  "agents": [
    {
      "role": "orchestrator",
      "model": "claude-3-5-sonnet",
      "temperature": 0.2,
      "max_tokens": 4096
    }
  ],
  "memory": "session",
  "output_format": "structured_json",
  "human_review_gate": true,
  "documentation_standard": "required"
}

Run these commands from your openclaw-workshop/ directory to validate, test, and schedule this automation. Commands are taken directly from The OpenClaw Income Engine, Appendix F.

terminal
execution commands
# ── STEP 1: Test Apollo connection and ICP scoring ──
$ openclaw run lead-gen-pipeline --test --limit 5 --dry-run
$ 
# ── STEP 2: Run full batch — score and route to CRM (no outreach) ──
$ openclaw run lead-gen-pipeline --mode enrich-only
$ 
# ── STEP 3: Review CRM routing — confirm leads landed in correct stages ──
# Check HubSpot: CRM → Contacts → filter by Lead Status = "MQL — Agent Qualified Hot"
$ 
# ── STEP 4: Review and approve outreach drafts ──
$ openclaw approve lead-gen-pipeline --outreach --review
$ 
# ── STEP 5: Send approved outreach emails ──
$ openclaw approve lead-gen-pipeline --outreach --action send
$ 
# ── STEP 6: Schedule daily pipeline run ──
$ openclaw schedule lead-gen-pipeline --cron "0 7 * * 1-5"
$ 
# ── Process a batch CSV from LinkedIn Sales Navigator export ──
$ openclaw run lead-gen-pipeline --input ./sales_nav_export.csv --mode enrich-only
$ 
# ── Adjust qualification threshold for a more selective client ──
$ openclaw run lead-gen-pipeline --context.qualification_threshold=75

Automation Stats

  • Automation#12 / 30
  • LevelLevel 2
  • TierAgency Foundation
  • Setup Time3–4 hours
  • API Cost~$20–$50/mo
  • Client Price$500–$2,000

Full Deployment Guide

Get the complete step-by-step playbook, all 30 context payloads, engineered prompt files, and the full technical deployment appendix in Book 2.

Get the Book