Give your AI agent safe access to its own email
Your agent gets a real @agentmx.io address. It can send emails to real people and receive replies — with every outbound message requiring approval or matching your auto-approve rules. No surprise sends. No loops.
Tell the agent about AgentBlocks — it'll set itself up
Paste in the setup snippet with an API key and your agent reads the docs, discovers it can send and receive email, and configures itself. No SDKs to install. No SMTP credentials to manage.
❯ In order to help me complete the next tasks, you'll need to use the AgentBlocks API, which allows us to selectively give you (the agent) tool access. I have created an API key for you: sk-example_xxxxxxxxxxxxxxxxxxxxxxxx . The docs are at https://api.agentblocks.ai/agent-guide.• Let me read the docs and discover my capabilities.• Fetch https://api.agentblocks.ai/agent-guide$ curl -s -H "Authorization: Bearer sk_example_..." https://api.agentblocks.ai/agent/infoEmail capability is available. My address is [email protected].I can send and receive emails via the AgentBlocks API.Configure your rules
Pattern-match on recipient addresses to control who your agent can email. Choose which read actions happen automatically and which need your approval.
Rules are evaluated top-to-bottom within each capability. The first matching rule wins. When no rules match, the system requires approval.
Send email
Match recipient email address
List inbound messages
Read inbound messages
Match sender's email address
Give it a task — reading and drafting happens automatically
Your agent checks the inbox, reads incoming messages, and drafts replies — all auto-approved. Nothing leaves the inbox until you say so.
❯ Check my inbox and draft replies to anything that needs a response.$ curl -s -H "Authorization: Bearer sk_example_..." https://api.agentblocks.ai/v1/email/inbox agentblocks: auto-approved3 new messages found. Let me read through them.1. [email protected] — Reply to our follow-up (needs response)2. [email protected] — New lead from webinar sign-up (needs response)3. [email protected] — Weekly digest (no action needed)Drafting replies for messages 1 and 2 ...Every outbound email needs your approval
The agent drafts the message and calls the send endpoint — then stops and waits. The API won't deliver anything until you approve it. You see the full email — recipient, subject, body — before it goes out.
$ curl -X POST -H "Authorization: Bearer sk_example_..." -d '{"to": "[email protected]", "subject": "Quick follow-up on our conversation", "body": "Hi Sarah, Great speaking with you ..."}' https://api.agentblocks.ai/v1/email/send {"status": "pending_approval", "ref": "a91f2e74"}▲ WAITING FOR APPROVAL ...Meanwhile ...
Get approval notifications on Slack, WhatsApp, via email, or wherever's convenient for you. See the full message before it goes out.
Email send request (ref: a91f2e74)
Subject: Quick follow-up on our conversation
Hi Sarah,
Great speaking with you earlier. As promised, here's a summary of the three options we discussed ...
[message truncated]
You approve the email, and it's delivered instantly. The agent moves on to the next task.
✓ ApprovedEmail delivered to [email protected] Subject: Quick follow-up on our conversation Message-ID: <[email protected]>And when they reply ...
Incoming emails land in your agent's inbox automatically. It reads, understands, and can draft a follow-up — starting the cycle again.
Re: Quick follow-up on our conversation
Thanks for sending this over! Option 2 looks great. Can we schedule a call Thursday to go through the details?
— Sent from Gmail
Then let it run
Your agent handles your inbox for as long as you need — reading, categorising, and drafting automatically. It only surfaces when there's an email to send. One tap to approve, and it keeps going.
Categorised incoming messages
1 reply, 1 new lead, 1 newsletter
Drafted reply to Sarah Chen
Re: Quick follow-up on our conversation
Drafted cold outreach to James Miller
New lead from webinar sign-up
⚡ 2 emails awaiting approval
Approve or reject from Slack, WhatsApp, or email. Reading and drafting is automatic — only sending requires your sign-off.
Explore other superpowers
Every integration works the same way — scoped access, approval controls, full audit trail.
Give your agent its own
email address today.
One paste. One API key. Your agent handles the rest.
🦞 Works great with OpenClaw, Claude Cowork and Claude Code