Give your AI agent safe access to your real Gmail
Connect your Gmail account. Your agent can read, triage, draft, and reply — as you, from your real address. Every action flows through your approval rules before anything leaves your inbox.
Connect your Google account in the dashboard
Link your Google account with one OAuth click inside the AgentBlocks dashboard. Toggle Gmail on, and your agent gets scoped access to read and send — no passwords stored, and you can revoke at any time.
Gmail
Configure your rules
Choose what your agent can do automatically, what needs your approval, and what's blocked. Rules are evaluated per action — listing your inbox can be automatic while sending always requires your sign-off.
Rules are evaluated top-to-bottom within each capability. The first matching rule wins. When no rules match, the system requires approval.
Outbound messages
Match recipient email address
List inbox
Read messages
List labels
Archive messages
Modify labels
Tell your agent about AgentBlocks
Paste a setup snippet with your API key into your agent's prompt. It reads the docs, discovers it can access Gmail through AgentBlocks, and configures itself. No SDKs to install.
❯ 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://docs.agentblocks.aiReading AgentBlocks docs ...Discovered Gmail super-power — read, triage, draft, and reply.✓ Ready to manage your inbox.It reads, triages, and organises — all automatically
Reading emails, applying labels, and archiving newsletters are auto-approved. Your agent works through your inbox without interrupting you — nothing leaves your account until you say so.
❯ Triage my inbox. Label and archive anything that doesn't need a reply. Draft replies for everything that does.$ curl -s -H "Authorization: Bearer sk_example_..." https://api.agentblocks.ai/v1/gmail/messages?unread=true agentblocks: auto-approved12 unread messages. Categorising ...• Archived 5 marketing emails → labelled "marketing"• Archived 3 automated updates → labelled "updates"• 2 need replies — David (partnership), Lisa (Q2 report)• 2 FYI — marked as readDrafting replies for David and Lisa ...Sending as you requires your approval
When your agent wants to reply or compose from your real address, it drafts the message and waits. You see the full email — who it's going to, the subject, the body, the thread context — before anything is sent as you.
$ curl -X POST -H "Authorization: Bearer sk_example_..." -d '{"action": "reply", "thread_id": "18f2a...", "to": "[email protected]", "body": "Hi David, Thanks for the detailed proposal ..."}' https://api.agentblocks.ai/v1/gmail/send {"status": "pending_approval", "ref": "c47d8f12"}▲ WAITING FOR APPROVAL ...Meanwhile ...
Get approval notifications on Slack, WhatsApp, via email, or wherever's convenient for you. See exactly what will be sent from your address.
Gmail send request (ref: c47d8f12)
Subject: Re: Partnership proposal — next steps
Thread: 4 messages
Hi David,
Thanks for the detailed proposal. I've reviewed the terms and everything looks good on our end. I'm looping in our legal team to finalise the agreement ...
[message truncated]
You approve the reply, and it's sent from your real Gmail address — appearing in your Sent folder and the original thread, exactly as if you'd typed it yourself.
✓ ApprovedReply sent as [email protected] Subject: Re: Partnership proposal — next steps Thread: 18f2a... (now 5 messages)Then let it run
Your agent manages your inbox for as long as you need — reading, labelling, archiving, and drafting automatically. It only surfaces when there's a message to send from your address. One tap to approve, and it keeps going.
Fetched unread messages
12 unread → 4 need action, 8 informational
Applied labels and archived 8 newsletters
Auto-labelled: marketing (5), updates (3)
Drafted reply to David (partnership proposal)
Re: Partnership proposal — next steps
Drafted reply to Lisa (Q2 report review)
Re: Q2 numbers — feedback attached
⚡ 2 replies awaiting approval
Reading, labelling, and drafting is automatic — only sending from your real address requires your sign-off.
Explore other superpowers
Every integration works the same way — scoped access, approval controls, full audit trail.
Give your agent safe
Gmail access today.
One OAuth click. One API key. Your agent handles the rest.
🦞 Works great with OpenClaw, Claude Cowork and Claude Code