Moltbot
Getting started
Moltbot (formerly Clawdbot) 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 Moltbot, your agent gains the ability to send and receive emails, enabling two-way email conversations alongside your existing chat channels.
There are three ways to integrate AgentMail with Moltbot: using the official AgentMail skill, the AgentMail MCP server, or creating a custom skill.
Option 1: Official AgentMail Skill (Recommended)
The easiest way to add email capabilities to Moltbot 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 Moltbot CLI:
Or install via ClawdHub:
Configuration
Add your AgentMail API key to the skill configuration in ~/.clawdbot/moltbot.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: MCP Server
An alternative way to add email capabilities to Moltbot is through the AgentMail MCP server. Moltbot supports MCP (Model Context Protocol) servers, which allows it to connect to external tools like AgentMail.
Setup
-
Get your AgentMail API key from the AgentMail Console.
-
Add the AgentMail MCP server to your Moltbot configuration. Edit your
~/.clawdbot/moltbot.jsonfile:
- Restart Moltbot to load the new MCP server:
- Verify the integration by asking Moltbot to list your inboxes:
Available tools
Once connected, Moltbot can use the following AgentMail tools:
- Inbox management: Create, list, and delete inboxes
- Message operations: Send, receive, and reply to emails
- Thread management: Access and manage email threads
- Attachments: Handle email attachments
Option 3: 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 Moltbot.
Create the skill directory
Create a new skill in your Moltbot workspace:
Create the skill file
Create ~/.clawdbot/skills/agentmail/SKILL.md with the following content:
Configure the skill
Add your AgentMail API key to the skill configuration in ~/.clawdbot/moltbot.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 Moltbot, 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 Moltbot’s webhook support. This allows Moltbot to notify you immediately when new emails arrive.
-
Set up a webhook endpoint in Moltbot (see Moltbot webhook documentation)
-
Register the webhook with AgentMail:
Now Moltbot will be notified whenever a new email arrives, allowing it to proactively inform you or take action.
