Skip to main content

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. 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:
Or install via ClawHub:

Configuration

Add your Migma API key to the skill configuration in ~/.openclaw/openclaw.json:
Get your API key from Settings → API Integration → API Keys.

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:
1

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.
2

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
Want to send from your own domain (e.g. hello@yourdomain.com)? See Add a Custom Domain for DNS setup.

Verify installation

Check that the skill is loaded:
You should see 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 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/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:
You should see 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”
  • “Create a three-email onboarding series and show me each email ID”
  • “Update the welcome email to sound more transactional”
  • “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, combine Migma webhooks with OpenClaw’s webhook support. OpenClaw can react when email generation completes or a subscriber unsubscribes.
  1. Set up a webhook endpoint in OpenClaw (see OpenClaw webhook documentation)
  2. Register the webhook with Migma:
Now OpenClaw receives those workflow events, allowing your agent to follow up or report progress.

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