AISalesReps

How to Automate Sales Prospecting: My Real-World Agent Build

Dan Hartman headshotDan HartmanEditor··5 min read

Learn how to automate sales prospecting with AI agents. I share what worked, what broke, and the real costs of deploying an agent for outbound sales.

How to Automate Sales Prospecting: My Real-World Agent Build

Last month, I needed to drastically scale our outbound efforts without hiring more SDRs. We’re a small team, and every minute counts. The goal was clear: figure out how to automate sales prospecting, from finding qualified leads to sending personalized cold emails, all while keeping costs sane and compliance in check. I’ve built enough agents to know the marketing hype usually doesn’t match production reality. This wasn’t about “revolutionary AI” — it was about getting actual leads in the pipeline.

How to Automate Sales Prospecting: The Grind of Building an Outbound Sequence Agent

I started with a specific target: SaaS founders in a niche industry. My agent needed to find their company, identify the founder, dig up their email and LinkedIn, and then draft a genuinely relevant cold email. We couldn’t just blast generic templates. This meant chaining together a few different tools. For initial data scraping and enrichment, I leaned on Clay.com. It’s got a decent set of integrations and you can customize workflows pretty deep, which, yes, is annoying to set up but essential for quality data. I’ve found it to be one of the more flexible options for this kind of data heavy lift.

My agent’s core was built using LangGraph. I picked it over CrewAI because I needed more explicit control over state and transitions, especially when dealing with API rate limits or incomplete data. CrewAI felt a bit too “magic” for a production system that needed predictable retries and error handling. I defined a graph with nodes for:

  • search_company_data: uses Clay.com to find company info.
  • find_founder_contact: uses more Clay.com magic (and sometimes Hunter.io if Clay struck out) to get email/LinkedIn.
  • draft_email_persona_one: an LLM call to draft the email, tailored to founder persona.
  • review_and_send: human in the loop for final approval, then sends via SendGrid.

The draft_email_persona_one step was where the “how to write cold email” challenge really came in. I fed the LLM a few examples of high-performing cold emails and a detailed persona brief for our target customer. It wasn’t about telling the LLM to “write a good email”; it was about providing structured data: company name, founder name, a specific pain point we solve for their industry, and a clear call to action. Getting the prompt right here, iterative trial and error, was probably 40% of the build time. Honestly, most “AI writing” tools just don’t give you this level of control.

What Broke (and Why You’ll Hate It Too)

Debugging these agents? It’s a nightmare. A silent, expensive nightmare. My biggest concrete gripe was with LangGraph’s observability when things went sideways. When an LLM call failed or an API returned garbage, tracing the exact state and input that led to the error was a brutal exercise. LangSmith helped, sure, but it’s another dashboard to watch, another dependency. I spent hours staring at JSON logs, trying to figure out why an email was drafted with “Dear [Founder Name]” instead of the actual name. Turns out, a subtle data parsing error in an earlier node wasn’t propagating correctly. This is where agents silently fail: they don’t crash, they just produce subtly wrong, unusable output.

Cost overruns were another beast. Each LLM call adds up, especially when you’re iterating on prompts or retrying failed steps. My initial estimates for the draft_email_persona_one step were off by 30% because I underestimated the token usage for complex prompts and the need for multiple re-rolls to get a good draft. You can’t just set it and forget it. I had to implement strict token limits and fallbacks, even if it meant slightly less “perfect” emails sometimes. It’s a constant battle between quality and cost per lead.

And compliance? Oh boy. When you’re dealing with real user data — even publicly available company data and emails — you can’t just wing it. We had to ensure our data sources were compliant (GDPR, CCPA, CAN-SPAM for emails). The agent itself isn’t the compliance problem; it’s the data pipelines feeding it and the actions it takes. If your agent is scraping data, you’d better know where it’s coming from and what you’re allowed to do with it. This isn’t just a technical problem; it’s a legal and ethical one.

The Payoff and My Pricing Take

Despite the headaches, the payoff was real. My concrete love? The agent consistently delivered 5-7 qualified leads per day, each with a genuinely personalized email that had a 15% reply rate. This saved us hundreds of hours a month compared to manual prospecting. It wasn’t perfect, but it was good enough and scalable. We’re talking about actual inbound meetings booked from these automated sequences. That’s a win in my book.

For the tools, Clay.com starts at $149/month for their Pro plan, which is fair for the data enrichment capabilities it offers. You can get by on a cheaper plan if your volume is low, but for serious outbound, you’ll hit limits fast. LangGraph is open source, so your costs there are just compute and LLM tokens. I’d say for a team of 1-3 doing serious outbound, the entire stack (including LLM costs, Clay, and SendGrid) runs us about $300-$500/month, depending on volume. That’s a fraction of an SDR’s salary, and it’s always on. The free plan on most of these tools is a joke for anyone serious about automating sales prospecting at scale. You’ll hit walls instantly.

If you’re looking for a full “sales automation tutorial” with a drag-and-drop interface, something like Bardeen or Lindy.ai might seem appealing. But for the kind of nuanced, multi-step “outbound sequence guide” I needed, they just don’t cut it. They’re great for simple automations, but fall short when you need custom logic, human-in-the-loop steps, or complex data manipulation. For those, you’re stuck with frameworks or bespoke code.

We cover this in more depth elsewhere — AI agent platforms coverage.

So, would I do it again? Absolutely. But I’d go in eyes wide open, knowing the debugging will be brutal and the compliance requirements non-negotiable. This isn’t a magical “set it and forget it” solution. It’s a powerful tool, but like any powerful tool, it demands respect and a good chunk of your time to get it right.

— The Colophon

One AI tool. Tested. Reviewed.
In your inbox every Sunday.

~3 minute read. Real outcomes from operators, not marketers.

— More like this
Outbound Tools

AI-Powered vs Traditional Sales Outreach: The Production Reality

Forget the hype. I've shipped AI agents for sales outreach. Here's the brutal truth about AI-powered vs traditional methods, what breaks, and what actually works in 2026.

7 min · May 30
Outbound Tools

The Best AI Tools for Closing B2B Deals in 2026: What Actually Works

Stop guessing. We review the best AI tools for closing B2B deals, focusing on what delivers real results for sales teams and what just adds noise.

7 min · May 30
Outbound Tools

How to Reduce Response Time with AI Sales Tools: Real-World Wins and Headaches

Cut sales response times dramatically. Learn how to reduce response time with AI sales tools, from custom agents to platforms, and what actually works in production in 2026.

8 min · May 30