LaunchKit · 2026
Back to Skills

agentmail-integration

Integrate AgentMail API for AI agent.

0
3.0k downloads
by @synesthesia-wav

Setup & Installation

openclaw skills install @synesthesia-wav/agentmail-integration

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install agentmail-integration

Version History

v1.1.0Jan 28, 2026 - Version note by skill developer:

v1.1.0: Added critical webhook security documentation, sender allowlist protection, content filtering examples, API reference, more scripts (send_email.py, check_inbox.py, setup_webhook.py), and comprehensive examples.

What This Skill Does

AgentMail is an API-first email platform built for AI agents. It lets agents create and manage inboxes programmatically, send and receive emails, and respond to incoming messages via webhooks. Includes semantic search, automatic labeling, and structured data extraction on email content.

Unlike Gmail or Outlook, AgentMail is designed for programmatic access with no rate limits, webhook support, and semantic search built in, making it practical for high-volume or event-driven agent workflows.

When to use it

  • Giving an AI agent its own dedicated email address
  • Sending automated email replies on behalf of an agent
  • Triggering workflows when an agent inbox receives a message
  • Routing incoming emails through human review before processing
  • Searching an agent's inbox by meaning rather than keywords

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Create an inbox for my agent and send a welcome email to a new user

AGENT
  1. 1Initialize AgentMail client using AGENTMAIL_API_KEY
  2. 2Create inbox with a custom username to generate a predictable address
  3. 3Send email to recipient with both plain text and HTML body
  4. 4Return the new inbox address and sent message ID
OUTPUT

Agent inbox my-agent@agentmail.to created and welcome email delivered to recipient

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

AgentMail account (sign up at console.agentmail.to)AGENTMAIL_API_KEY environment variable