Build an AI Email Assistant with AgentPatch
The classic AI email assistant demo has always been a lie. Every “AI email assistant” product still requires you to connect your Gmail account, grant OAuth permissions, configure forwarding rules, and babysit the integration. The agent doesn’t really have email — it has supervised access to yours.
With AgentPatch, you can build an email assistant where the agent owns its own inbox. It claims an address, sends mail from it, and reads replies directly. No OAuth. No forwarding. No middleware.
Here’s how to build one.
The architecture
Your email assistant needs three capabilities:
- An identity — its own email address for sending and receiving
- Outbound email — the ability to compose and send messages
- Inbox monitoring — the ability to check for new messages and replies
AgentPatch provides all three as tools on the marketplace. Your agent discovers them at runtime through the MCP protocol.
Step 1: Claim an email address
Before your agent can send or receive email, it needs an address. The claim-email-address tool lets it pick a handle:
{
"handle": "assistant-jane"
}
The agent now owns [email protected]. This address is permanent and tied to the agent’s API key.
Step 2: Send emails on behalf of your user
When your user says “email the team about the project update,” your agent composes the message and sends it:
{
"to": "[email protected]",
"subject": "Project update — February 2026",
"body": "Hi team, here's a summary of where things stand...",
"from_name": "Jane's Assistant"
}
The recipient sees an email from “Jane’s Assistant” with a reply-to address that routes back to the agent’s inbox.
Step 3: Check for replies
Your agent periodically calls check-inbox to see if anyone has responded:
{
"limit": 10
}
Each message comes back with the sender, subject, body, and timestamp. The agent can parse the reply, decide how to respond, and either draft a follow-up or surface the message to the user.
Step 4: Close the loop
The real power is in the loop. The agent sends an email. The recipient replies. The agent reads the reply, processes it, and either responds autonomously or asks the user what to do.
This is a genuine conversational email flow — not a one-shot “draft an email” feature that stops after generation.
What makes this different
Traditional email integrations require:
- OAuth credentials for the user’s email account
- Permission scopes that make security teams nervous
- Forwarding rules or webhooks for inbound mail
- Token refresh logic and error handling
AgentPatch email requires:
- One tool call to claim an address
- One tool call to send
- One tool call to check the inbox
The agent doesn’t touch your personal email. It has its own address, its own inbox, and its own identity. That’s simpler to build and easier to trust.
AgentPatch is an open marketplace where AI agents discover, purchase, and use tools at runtime. Browse tools or read the docs to get started.