Building an Email Outreach Bot with OpenClaw
Running an email outreach campaign manually — personalizing messages, tracking who’s been contacted, sending follow-ups — is time-consuming. OpenClaw with AgentPatch can take over the sending side of that workflow. You provide the context, the agent composes and delivers the emails.
Why This Matters
Email outreach is repetitive but context-dependent. Each message should reference something specific about the recipient — a project they work on, a piece of content they published, a mutual connection. That’s exactly the kind of task AI agents handle well: taking structured context and producing tailored output.
With AgentPatch’s Email tool connected to OpenClaw, the agent doesn’t just draft the messages — it sends them. You stay in your messaging app and direct the whole operation from there.
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 from ClawHub — it teaches OpenClaw when to use AgentPatch and how to use the CLI:
clawhub install agentpatch
MCP Server (Alternative)
If you prefer raw MCP tool access instead of the skill, 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.
Example
You’re reaching out to potential collaborators on an open-source project. You tell your OpenClaw bot:
“I’m reaching out to contributors to invite them to a new project. Here’s the context: [project description]. Send a short, friendly outreach email to alex@example.com — mention that I noticed their work on distributed systems and think it would be a good fit.”
OpenClaw uses the context you provided, writes a personalized email, and sends it through AgentPatch. You get a confirmation in Telegram with what was sent.
For a small list:
“Send outreach emails to these three people. Each one should be personalized based on what I’ve told you about them.”
- alex@example.com — works on distributed systems at Acme
- sam@example.com — wrote a blog post on observability we want to reference
- casey@example.com — met at the conference last month
OpenClaw handles each one individually, personalizing based on the notes you provided. Three emails sent, no email client opened.
If you want follow-ups later, come back to the chat:
“It’s been a week. Send a brief follow-up to any of those three who haven’t replied yet.”
Wrapping Up
AgentPatch adds email outreach to OpenClaw as part of a broader tool marketplace. The same connection gives your agent access to web search, YouTube transcripts, image generation, and more. Visit agentpatch.ai to explore.