How to Send Emails from Roo Code Using AgentPatch

Email outreach is a writing task at its core: take a template, customize it per recipient, send. The repetitive part isn’t the writing itself but the per-recipient personalization and the mechanics of sending. If your coding agent can already write good copy and read data from files, the missing piece is the ability to actually deliver the email.

Roo Code is an open-source AI coding agent that runs as a VS Code extension. It’s good at generating context-aware text, reading structured data from files, and following instructions across multiple steps. With MCP tool support, you can connect it to an email sending tool and close the loop: Roo Code reads your list, writes the copy, and sends it.

This is practical for developer-focused outreach: notifying beta users about a new feature, recruiting contributors to an open-source project, reaching out to integration partners, or following up with conference contacts.

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: Beta Launch Notification

You’re launching a beta and want to notify early signups with a personalized note. You have a CSV of names and email addresses. You tell Roo Code:

“Read beta-users.csv. 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.’”

Roo Code reads the file, crafts a personalized message per row, and sends each email through AgentPatch. You stay in VS Code. The campaign goes out.

Example: Open Source Contributor Outreach

For contributor recruitment on an open-source project:

“Look at our GitHub issues labeled ‘good first issue’. Send an email to the three people who commented most recently, inviting them to contribute. Their emails are in contributors.json.”

Roo Code reads the files, identifies the right people, writes tailored invitations, and sends them. One session, start to finish.

Follow-up passes work too:

“It’s been five days. Check contributors.json for anyone who hasn’t replied and send a gentle follow-up.”

What Roo Code Does Step by Step

  1. Reads the recipient list from a file in your workspace (CSV, JSON, or any structured format).
  2. For each recipient, generates a personalized email using the context you provided.
  3. Calls the AgentPatch email tool to send each message.
  4. Reports back with delivery status for each email.

The personalization is the valuable part. Roo Code doesn’t just mail-merge a template. It reads the context for each recipient and writes a message that reflects their specific situation.

Wrapping Up

Email outreach is one capability that becomes available when you connect AgentPatch to Roo Code. The same config gives you access to web search, YouTube transcripts, image generation, and the rest of the marketplace. Visit agentpatch.ai to get started.