Building an Email Outreach Bot with Claude Code
Claude Code is good at generating context-aware text. If you’re doing email outreach — reaching out to potential users, contributors, partners, or press — it can write compelling, personalized messages. With AgentPatch connected, it can also send them.
Why This Matters
The usual outreach workflow is: write a template, customize it per recipient, paste into an email client, send. Claude Code with AgentPatch collapses that into a single terminal interaction. You provide the list and the context, the agent writes the personalized copy and delivers it.
This is useful for developer-focused outreach scenarios: recruiting contributors to an open-source project, notifying a list of beta users about a new feature, reaching out to potential integration partners.
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.
Skill (Recommended)
Install the AgentPatch skill — it teaches Claude Code when to use AgentPatch and how to use the CLI:
/plugin marketplace add fullthom/agentpatch-claude-skill
/plugin install agentpatch@agentpatch
MCP Server (Alternative)
If you prefer raw MCP tool access instead of the skill:
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.
Example
You’re launching a beta and want to notify a list of early signups with a personalized note. You have a CSV of names and email addresses, and you tell Claude Code:
“Read the beta-users.csv file. For each user, send a personalized welcome email mentioning their name and the feature they flagged interest in during signup. Subject line: ‘Your beta access is ready.’”
Claude Code reads the file, crafts a personalized message per row, and sends each email through AgentPatch. You stay in the terminal. The campaign goes out.
For contributor outreach on an open-source project:
“Look at our GitHub issues labeled ‘good first issue’. Send an email to the three people who commented on them most recently inviting them to contribute. Their emails are in contributors.json.”
Claude Code reads the files, identifies the right people, writes tailored invitations, and sends them. All in one session.
Follow-up passes work too:
“It’s been five days. Re-check contributors.json for anyone who hasn’t replied, and send them a gentle follow-up.”
Wrapping Up
Email outreach is one capability that becomes available when you add AgentPatch to Claude Code. The same config also gives you access to web search, YouTube transcripts, image generation, and the rest of the marketplace. Visit agentpatch.ai to get started.