{"slug": "i-built-an-ai-agent-that-researches-scores-and-emails-b2b-leads-automatically", "title": "\"I Built an AI Agent That Researches, Scores, and Emails B2B Leads — Automatically", "summary": "A developer built the Autonomous Lead Intelligence System, a multi-agent pipeline on Relevance AI that takes a lead's name, email, and company domain and runs research, scoring, and outreach generation without manual input. The first agent synthesizes a company profile covering operations, scale, industry, and pain points; the second scores the lead 0–100 on B2B automation fit, operational complexity, and automation potential, labeling it HOT, WARM, or COLD; the third uses the Claude API to write a personalized email with subject line and body. The system returns the score, company summary, top three pain points, the generated email, and a recommended next action, with a live demo hosted on Netlify and code on GitHub.", "body_md": "Most sales teams are still doing this manually. Someone pulls a lead, Googles the company, tries to figure out if they're a good fit, writes a cold email, and hopes for the best. It's slow, inconsistent, and doesn't scale.\n\nI built a system that does all of that in seconds.\n\nThe Autonomous Lead Intelligence System is a multi-agent pipeline built on Relevance AI. You drop in a name, email, and company domain — that's it. The agents take over from there.\n\nThe Pipeline: Research → Analyze → Score → Email\n\nAgent 1 — Research & Analysis\n\nThe first agent takes the company domain and runs a structured research pass. It extracts core business operations, company scale, industry vertical, and surfaces the primary operational pain points. This isn't a simple web scrape — it's a reasoning pass that synthesizes what it finds into a structured profile the downstream agents can act on.\n\nAgent 2 — Lead Scoring\n\nThe second agent takes that company profile and scores the lead on a 0–100 scale. The score is based on three dimensions: fit with B2B automation use cases, operational complexity (how much manual work do they likely have), and automation potential (how much of that work can actually be replaced). It outputs a label — HOT (80–100), WARM (50–79), or COLD (0–49) — so you know exactly where to focus your time.\n\nAgent 3 — Email Generation\n\nThe third agent takes the lead score, company summary, and top 3 pain points and writes a personalized outreach email using the Claude API. Subject line and body. It's not pulling from a template — it's reasoning about what that specific company is struggling with and writing to that. The CTA is intentionally low-friction: no \"book a 30-minute call\" pressure, just an open door.\n\nWhat You Get Back\n\nLead score + status label\n\nCompany summary\n\nTop 3 operational pain points\n\nGenerated email — subject line and body\n\nRecommended next action\n\nStack\n\nRelevance AI — multi-agent orchestration\n\nClaude API — email generation and reasoning\n\nNetlify — live demo hosting\n\n[https://github.com/rcortez056-spec/automonous-lead-intelligence-system](https://github.com/rcortez056-spec/automonous-lead-intelligence-system)", "url": "https://wpnews.pro/news/i-built-an-ai-agent-that-researches-scores-and-emails-b2b-leads-automatically", "canonical_source": "https://dev.to/rcortez056/i-built-an-ai-agent-that-researches-scores-and-emails-b2b-leads-automatically-29g9", "published_at": "2026-11-30 20:36:00+00:00", "updated_at": "2026-11-30 20:46:15.883929+00:00", "lang": "en", "topics": ["ai-agents", "large-language-models", "ai-tools", "generative-ai"], "entities": ["Relevance AI", "Claude API", "Anthropic", "Netlify", "GitHub", "Autonomous Lead Intelligence System"], "also_reported_by": [], "takeaway": "Chaining three specialized agents — a research pass, a 0–100 scoring step across fit, operational complexity and automation potential, and a Claude-generated email — turns raw lead data into a scored profile and personalized outreach in one pipeline.", "recommendation": {"advice": "Split lead qualification into sequential agents — research, scoring, then generation — and pass each stage's structured output downstream so the email is grounded in the scored profile and top pain points.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/i-built-an-ai-agent-that-researches-scores-and-emails-b2b-leads-automatically", "markdown": "https://wpnews.pro/news/i-built-an-ai-agent-that-researches-scores-and-emails-b2b-leads-automatically.md", "text": "https://wpnews.pro/news/i-built-an-ai-agent-that-researches-scores-and-emails-b2b-leads-automatically.txt", "jsonld": "https://wpnews.pro/news/i-built-an-ai-agent-that-researches-scores-and-emails-b2b-leads-automatically.jsonld"}}