AI Lead Generation: Automate Prospecting with AI Agents
Lead generation is one of the most repetitive parts of sales and business development. You search for businesses in a target area, research each one, find contact information, and write personalized outreach. Each step is straightforward but doing it at scale takes hours. AI agents with the right tools can handle most of this workflow.
Why This Matters
Traditional lead generation tools are expensive and often do too much or too little. What most people actually need is simple: find relevant businesses, get their details, and send a personalized message. An AI agent connected to Google Maps, web search, and email can do exactly this — and you control every step through natural language.
The key is that these tools need to work together. Finding a business on Google Maps is useful. Finding a business, researching what they do, and drafting a personalized email based on that research — that’s the actual workflow. AI agents are good at chaining these steps.
Setup
Connect AgentPatch to your AI agent to get access to Google Maps, web search, and email tools:
CLI (Recommended)
Install the AgentPatch CLI (zero dependencies, Python 3.10+):
pip install agentpatch
Set your API key:
export AGENTPATCH_API_KEY=your_api_key
Then use it:
ap search "web search"
ap run agentpatch google-search --input '{"query": "test"}'
Get your API key from the AgentPatch dashboard.
Claude Code
Run this command to add AgentPatch as an MCP server:
claude mcp add -s user --transport http agentpatch https://agentpatch.ai/mcp \
--header "Authorization: Bearer YOUR_API_KEY"
Replace YOUR_API_KEY with your actual key from the AgentPatch dashboard. Claude Code discovers all AgentPatch tools automatically.
OpenClaw
Add AgentPatch to ~/.openclaw/openclaw.json:
{
"mcp": {
"servers": {
"agentpatch": {
"transport": "streamable-http",
"url": "https://agentpatch.ai/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
}
Replace YOUR_API_KEY with your actual key from the AgentPatch dashboard. Restart OpenClaw and it discovers all AgentPatch tools automatically.
The Lead Generation Workflow
Step 1: Find Businesses
Use Google Maps to find businesses matching your target criteria:
“Search Google Maps for digital marketing agencies in Miami. Get their names, ratings, and addresses.”
Your agent calls the Google Maps tool through AgentPatch and returns a structured list of businesses with details.
Step 2: Research
For each prospect, gather more context:
“For the top 5 agencies from that list, search the web for their websites and find out what services they specialize in.”
Your agent calls web search for each business and compiles a research summary.
Step 3: Personalized Outreach
With research in hand, draft personalized messages:
“For each agency, draft a short email introducing our product, referencing something specific about their business that makes it relevant.”
Your agent uses the research from step 2 to write personalized drafts — not generic templates.
Step 4: Send
If you’re ready to send:
“Send each of those emails using the email addresses we found.”
Your agent calls the email tool through AgentPatch to send each message.
Putting It All Together
You can also run the entire workflow in one request:
“Find 10 web development agencies in Austin, Texas. Research each one, draft a personalized cold email about our design services, and send them.”
Your agent chains Google Maps search, web research, email drafting, and sending — all in one session. You review the output and approve the sends.
Wrapping Up
AI lead generation doesn’t need a dedicated SaaS platform. An AI agent with access to the right tools — maps, search, email — handles the core prospecting workflow. Visit agentpatch.ai to connect the tools and start automating your outreach.