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

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.

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.

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.