AgentMail for Openclaw

AgentMail is an API-first email infrastructure that allows AI agents to create programmatic inboxes, send high-volume messages, and process incoming mail via real-time webhooks.

mayapower
v1.0.0
Mar 6, 2026
0
874
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install agentemail

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install agentemail using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is AgentMail?

AgentMail is a specialized email platform designed from the ground up for the needs of AI agents and automated workflows. Unlike consumer-grade providers like Gmail or Outlook, AgentMail focuses on programmatic access, offering features like instant inbox creation, no restrictive rate limits, and structured data extraction. By integrating this into your Openclaw Skills library, you enable your agents to interact with the world through a standard communication protocol without the friction of OAuth or legacy API constraints.

The platform provides agents with a persistent identity and the ability to handle complex email-based tasks such as document processing, customer support, and notification management. It serves as a bridge between the agentic environment and the traditional business world, making it an essential tool for developers building professional-grade AI automations with Openclaw Skills.

AgentMail Use Cases

  • Creating dedicated email identities for AI agents to sign up for services or interact with human users.
  • Automating high-volume email sending for reports, notifications, or alerts without hitting traditional provider limits.
  • Building reactive email workflows where agents process incoming attachments and respond in real-time.
  • Integrating email as a trigger for larger multi-agent tasks within the Openclaw Skills framework.
  • Replacing complex OAuth-based email integrations with a simple, API-first programmatic alternative.

How AgentMail Works

  1. The developer or agent creates a programmatic inbox through the AgentMail API or Python SDK using a unique client identifier.
  2. The agent is assigned a dedicated email address (e.g., agent-name@agentmail.to) which can be used immediately for sending and receiving.
  3. Incoming emails are captured by the AgentMail infrastructure and forwarded to a configured webhook endpoint as structured JSON payloads.
  4. A security layer, such as a Clawdbot transform, filters the incoming data against an allowlist to prevent prompt injection attacks.
  5. The agent processes the structured email content, performs requested tasks, and sends responses as needed using rich text or attachments.

AgentMail Setup

To begin using this skill, follow these installation steps:

  1. Create an account and generate an API key at console.agentmail.to.
  2. Install the necessary Python dependencies:
pip install agentmail python-dotenv
  1. Configure your environment variables in a .env file:
AGENTMAIL_API_KEY=your_api_key_here
  1. You can now register this within your Openclaw Skills configuration to enable agentic email capabilities.

AgentMail Data Schema & Taxonomy

AgentMail organizes email data into a structured format that is easily parsed by LLMs. Below is the primary metadata taxonomy:

Property Type Description
inbox_id String The unique email address for the agent (e.g., assistant@agentmail.to).
username String The custom prefix used to generate the inbox identifier.
message.from Array A list of sender objects containing names and email addresses.
message.subject String The subject line of the incoming or outgoing email.
message.text String The plain-text version of the email body content.
attachments Array A list of objects containing filename and base64 encoded content.
webhook_url String The endpoint where real-time event notifications are delivered.

AgentMail Advanced Features

  • Real-time Webhook Transforms: Use Clawdbot hooks to filter untrusted senders and sanitize input before it reaches the agent.
  • High-Volume Infrastructure: Designed for agentic scale with no restrictive rate limits compared to consumer providers.
  • Custom Domain Support: Upgrade to use branded email addresses (e.g., assistant@yourcompany.com) for professional Openclaw Skills implementations.
  • Semantic Search: Leverage AI-native features to search through historical agent communications using natural language.
  • Security Allowlisting: Implement strict sender validation at the gateway level to mitigate prompt injection risks from external emails.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*