Getting started
OpenClaw 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 Migma to OpenClaw, your agent gains the ability to design professional emails with AI and send them instantly — no coding, no ESP dashboard. There are two ways to integrate Migma with OpenClaw: using the official Migma skill or creating a custom skill.Option 1: Official Migma Skill (Recommended)
The easiest way to add email capabilities to OpenClaw is by installing the official Migma skill from ClawHub. This skill is maintained by the Migma team and provides comprehensive email functionality.Installation
Install the skill using the OpenClaw CLI:Configuration
Add your Migma API key to the skill configuration in~/.openclaw/openclaw.json:
Features
The official skill includes:- AI email generation: Describe what you want and get a professional, on-brand email in seconds
- Instant sending: Send through a managed domain — no DNS setup. Connect external providers like SES or Resend.
- Validation: Check deliverability, spam score, link integrity, and client compatibility before sending
- Audience management: Add contacts, create tags and segments, bulk import from CSV
- Batch campaigns: Send to an entire tag or segment in one command
- Platform export: Export to Klaviyo, Mailchimp, HubSpot, PDF, or MJML. See export options.
- Brand import: Import logos, colors, fonts, and voice from any website automatically
- Personalization: Contacts and subscriber data included automatically
One-time setup
Before your agent can send emails, set up an instant sending domain:Create a managed domain
Tell your agent: “Set up a sending domain for mycompany”Or do it manually in Migma: Settings → Sending Domains → Quick tab → type a prefix like
mycompany.Your sending address will be: hello@mycompany.migma.email — verified instantly, no DNS needed.Set a default project
Tell your agent: “List my projects and set one as default”A project holds your brand identity (logo, colors, fonts, voice). If you don’t have one yet, ask: “Import our brand from https://yourbrand.com”
Verify installation
Check that the skill is loaded:migma in the list of available skills.
Option 2: Custom Skill
For more control over the integration, you can create a custom Migma skill. Skills are directories containing aSKILL.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/migma/SKILL.md with the following content:
Configure the skill
Add your Migma API key to the skill configuration in~/.openclaw/openclaw.json:
Verify the skill
Check that the skill is loaded:migma in the list of available skills.
Example use cases
Once Migma is integrated with OpenClaw, you can ask your agent to:- “Create a welcome email for new subscribers”
- “Design a Black Friday sale email with 30% off”
- “Send that email to sarah@example.com”
- “Check if this email will land in spam”
- “Send our newsletter to the VIP segment”
- “Export this email to Klaviyo”
- “Import our brand from https://ourwebsite.com”
- “Add john@example.com to our contacts”
- “Create a product launch email, validate it, then send to our launch list”
Real-time notifications
For proactive handling, you can combine Migma webhooks with OpenClaw’s webhook support. This allows OpenClaw to notify you when emails are delivered, opened, or clicked.- Set up a webhook endpoint in OpenClaw (see OpenClaw webhook documentation)
- Register the webhook with Migma:
Resources
Official Migma Skill
Install from ClawHub
CLI Documentation
Full command reference
API Reference
Endpoint documentation
Node.js SDK
TypeScript SDK guide
OpenClaw Docs
OpenClaw documentation
Discord
Community support