All super-powers

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.

Step 1

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/info
Email capability is available. My address is [email protected].
I can send and receive emails via the AgentBlocks API.
Step 2

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.

Emaildefault

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

PatternAction
@companydomain.comRequire approval
@agentblocks.aiAuto-approve
* (default fallback)Require approval
+ Add another

List inbound messages

Always allow
Require approval
Always block

Read inbound messages

Match sender's email address

PatternAction
*Auto-approve
+ Add another
Save all rules
Step 3

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-approved
3 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 ...
Step 4

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.

AB
AgentBlocksAPP2:31 PM

Email send request (ref: a91f2e74)

Agent: outreach

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.

✓ Approved
Email 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.

S
3:04 PM

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

Step 5

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.

Agent activity — morning email triagestarted 09:00
09:00

Checked inbox for new replies

[email protected] → 3 new messages

AUTO
09:01

Categorised incoming messages

1 reply, 1 new lead, 1 newsletter

AUTO
09:02

Drafted reply to Sarah Chen

Re: Quick follow-up on our conversation

AUTO
09:02

Send reply to [email protected]

Confirming Thursday call, attaching agenda

⏳ WAITING
09:05

Drafted cold outreach to James Miller

New lead from webinar sign-up

AUTO
09:05

Send email to [email protected]

Intro email — personalised from webinar notes

⏳ WAITING

⚡ 2 emails awaiting approval

Approve or reject from Slack, WhatsApp, or email. Reading and drafting is automatic — only sending requires your sign-off.

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