Lead Generation with Roo Code: Search, Enrich, and Outreach
Lead generation workflows are repetitive and structured: find businesses, research them, write personalized outreach, send it. Each step is simple on its own, but chaining them together across different tools adds friction. You end up with three browser tabs, two dashboards, and a spreadsheet holding it all together.
Roo Code is an open-source AI coding agent that runs as a VS Code extension. It supports MCP tools, which means it can call multiple external services in a single session. If you connect it to a Maps tool, a search tool, and an email tool, Roo Code can run the full pipeline: discovery, research, personalization, and delivery.
That’s the kind of structured, multi-step task agents handle well. You describe the workflow, the agent executes it. Each step feeds into the next.
Setup
The AgentPatch CLI is designed for AI agents to use via shell access. Install it, and your agent can discover and invoke any tool on the marketplace.
Install (zero dependencies, Python 3.10+):
pip install agentpatch
Set your API key:
export AGENTPATCH_API_KEY=your_api_key
Example commands your agent will use:
ap search "web search"
ap run google-search --input '{"query": "test"}'
Get your API key from the AgentPatch dashboard.
Example: Prospecting for a Freelance Business
You’re testing a prospecting pipeline for your freelance dev shop. You want to find small businesses that could use a website upgrade. You tell Roo Code:
“Run a prospecting pass. Find 3 small law firms in Phoenix, look them up online to check their web presence, draft personalized outreach emails, and send them to my test inbox.”
Roo Code works through the pipeline:
Searching Google Maps for "law firm Phoenix AZ" and filtering for smaller firms...
Candidates:
1. Hendricks & Lowe: 4.2 stars, 18 reviews
2. Sutton Family Law: 4.0 stars, 11 reviews
3. Premier Legal Group: 3.8 stars, 9 reviews
Searching Google for each firm's website and tech stack...
Hendricks & Lowe: WordPress site, no HTTPS, contact form broken.
Sutton Family Law: No website found, Avvo profile only.
Premier Legal Group: Squarespace site, not mobile-responsive.
Drafting outreach emails personalized to each firm's specific issue...
Sending to [email protected]...
Sending to [email protected]...
Sending to [email protected]...
All sent. Check your inbox to verify formatting.
That’s discovery, research, personalization, and delivery in one session. Once the pipeline works, you can refine the prompt and run it on different verticals or regions.
What Roo Code Does Step by Step
- Discovery: Calls Google Maps through AgentPatch to find businesses matching your criteria.
- Research: Runs Google Search for each business to check their website, tech stack, and online presence.
- Personalization: Writes a custom outreach email per prospect, referencing the specific issue found during research.
- Delivery: Sends each email through the AgentPatch email tool.
Each step uses a different tool, but Roo Code chains them together in a single conversation. You describe what you want; it handles the orchestration.
Wrapping Up
Connecting AgentPatch to Roo Code gives it a complete lead generation stack: Maps for discovery, Search for research, Email for outreach. Those are three tools on the marketplace. The same connection also unlocks news, trends, image generation, and more. Explore at agentpatch.ai.