Openclaw
Getting started
Openclaw (formerly Moltbot) is an open-source AI personal assistant that runs on your own devices and integrates with messaging platforms like WhatsApp, Telegram, Discord, and Slack. By adding AgentMail to Openclaw, your agent gains the ability to send and receive emails, enabling two-way email conversations alongside your existing chat channels.
There are two ways to integrate AgentMail with Openclaw: using the official AgentMail skill or creating a custom skill.
Option 1: Official AgentMail Skill (Recommended)
The easiest way to add email capabilities to Openclaw is by installing the official AgentMail skill from skills.sh. This skill is maintained by the AgentMail team and provides comprehensive email functionality.
Installation
Install the skill using the Openclaw CLI:
Or install via ClawHub:
Configuration
Add your AgentMail API key to the skill configuration in ~/.openclaw/openclaw.json:
Get your API key from the AgentMail Console.
Features
The official skill includes:
- Inbox management: Create scalable inboxes on-demand with unique email addresses
- Message operations: Send emails with text and HTML content for best deliverability
- Thread management: Group related messages in conversations
- Attachments: Send and receive attachments with Base64 encoding
- Drafts: Create drafts for human-in-the-loop approval before sending
- Pods: Multi-tenant isolation for SaaS platforms
- Idempotency: Safe retries on create operations
- Real-time events: WebSocket and webhook support for notifications
Verify installation
Check that the skill is loaded:
You should see agentmail in the list of available skills.
Option 2: Custom Skill
For more control over the integration, you can create a custom AgentMail skill. Skills are directories containing a SKILL.md file with instructions for Openclaw.
Create the skill directory
Create a new skill in your Openclaw workspace:
Create the skill file
Create ~/.openclaw/skills/agentmail/SKILL.md with the following content:
Configure the skill
Add your AgentMail API key to the skill configuration in ~/.openclaw/openclaw.json:
Verify the skill
Check that the skill is loaded:
You should see agentmail in the list of available skills.
Example use cases
Once AgentMail is integrated with Openclaw, you can ask your agent to:
- “Create a new email inbox for my project”
- “Check my inbox for new emails”
- “Send an email to john@example.com about the meeting tomorrow”
- “Reply to the latest email from Sarah”
- “Forward the invoice email to accounting@company.com”
Real-time email notifications
For proactive email handling, you can combine AgentMail webhooks with Openclaw’s webhook support. This allows Openclaw to notify you immediately when new emails arrive.
-
Set up a webhook endpoint in Openclaw (see Openclaw webhook documentation)
-
Register the webhook with AgentMail:
Now Openclaw will be notified whenever a new email arrives, allowing it to proactively inform you or take action.
