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.
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.
Install the skill via ClawHub:
Add your AgentMail API key to the skill configuration in ~/.openclaw/openclaw.json:
Get your API key from the AgentMail Console.
The official skill includes:
Check that the skill is loaded:
You should see agentmail in the list of available skills.
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 a new skill in your OpenClaw workspace:
Create ~/.openclaw/skills/agentmail/SKILL.md with the following content:
Add your AgentMail API key to the skill configuration in ~/.openclaw/openclaw.json:
Check that the skill is loaded:
You should see agentmail in the list of available skills.
Once AgentMail is integrated with OpenClaw, you can ask your agent to:
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.