> ## Documentation Index
> Fetch the complete documentation index at: https://docs.migma.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenClaw

> Use Migma from WhatsApp, Telegram, Discord, and Slack via OpenClaw

[OpenClaw](https://openclaw.ai/) is an open-source AI agent for WhatsApp, Telegram, Discord, and Slack. The official Migma skill gives it the ability to generate, send, validate, and export emails from a chat message.

<Info>
  Want a one-click Slack bot instead? See [Migma for Slack](/integrations/slack). Building your own dedicated Slack app? Use [Agent Auth](/agent-auth) for per-user access.
</Info>

<CardGroup cols={3}>
  <Card title="Any chat platform" icon="message">
    WhatsApp, Telegram, Discord, Slack
  </Card>

  <Card title="Full email workflow" icon="envelope">
    Generate, validate, send, and export
  </Card>

  <Card title="Skill install" icon="download">
    Install the official skill, then add your Migma API key
  </Card>
</CardGroup>

***

## Installation

<CodeGroup>
  ```bash OpenClaw CLI theme={null}
  openclaw skills install MigmaAI/migma-skills/skills/migma
  ```

  ```bash ClawHub theme={null}
  npx clawhub@latest install migma
  ```
</CodeGroup>

***

## Configuration

Add your Migma API key to `~/.openclaw/openclaw.json`:

```json theme={null}
{
  "skills": {
    "entries": {
      "migma": {
        "enabled": true,
        "env": {
          "MIGMA_API_KEY": "your_migma_api_key"
        }
      }
    }
  }
}
```

Get your API key from [Settings → Developers → API Keys](https://migma.ai/settings?tab=api-keys).

Optionally, set a default project ID to skip specifying it each time:

```json theme={null}
"MIGMA_PROJECT_ID": "your_project_id"
```

Verify the skill is loaded:

```bash theme={null}
openclaw skills list --eligible
```

***

## Quick start

<Steps>
  <Step title="Create a sending domain">
    Tell your agent: *"Set up a sending domain for mycompany"*

    This creates `hello@mycompany.migma.email` — verified instantly, no DNS needed. See [Sending Domains](/sending-domains/overview).
  </Step>

  <Step title="Set a default project">
    *"List my projects and set one as default"*

    A project holds your brand identity (logo, colors, fonts, tone). If you don't have one: *"Import our brand from [https://yourbrand.com](https://yourbrand.com)"*
  </Step>

  <Step title="Generate and send">
    *"Create a welcome email and send it to [sarah@example.com](mailto:sarah@example.com)"*

    The agent generates the email, picks the returned `emailId`, then sends that specific email from your configured sender.
  </Step>
</Steps>

<Tip>
  Want to send from your own domain? See [Add a Custom Domain](/sending-domains/add-domain) for DNS setup.
</Tip>

***

## Features

The official skill provides:

| Feature                                          | Description                                                                                                                                                       |
| ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **AI email generation**                          | Describe what you want, get production-ready HTML                                                                                                                 |
| **Instant sending**                              | Send through [managed domains](/sending-domains/overview) — no DNS setup. Connect [external providers](/integrations/email-service-providers) like SES or Resend. |
| **[Validation](/email-editor/email-preflight)**  | Deliverability, spam score, links, compatibility                                                                                                                  |
| **[Audience management](/audience/overview)**    | Contacts, tags, segments, [bulk CSV import](/audience/csv-upload)                                                                                                 |
| **Batch campaigns**                              | Send to a tag or segment in one command                                                                                                                           |
| **Platform export**                              | [Klaviyo](/integrations/klaviyo), [Mailchimp](/integrations/mailchimp), HubSpot, PDF, MJML. See [export options](/email-editor/export-options).                   |
| **[Brand import](/get-started/configure-brand)** | Import from any website automatically                                                                                                                             |
| **Personalization**                              | Contacts and subscriber data included automatically                                                                                                               |

***

## Example prompts

* "Create a welcome email for new subscribers"
* "Create a three-email onboarding series and show me each email ID"
* "Make the welcome email shorter and more transactional"
* "Design a Black Friday sale email with 30% off"
* "Send that email to [sarah@example.com](mailto: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](https://ourwebsite.com)"
* "Add [john@example.com](mailto:john@example.com) to our contacts"
* "Create a product launch email, validate it, then send to our launch list"

***

## Custom skill

For more control, you can create a custom skill instead of using the official one. See the [full OpenClaw tutorial](/tutorials/send-emails-from-openclaw) for the custom skill setup with `SKILL.md` and curl-based API calls.

***

## Resources

<CardGroup cols={3}>
  <Card title="ClawHub" icon="lobster" href="https://clawhub.com/migma">
    Official skill on ClawHub
  </Card>

  <Card title="Full Tutorial" icon="graduation-cap" href="/tutorials/send-emails-from-openclaw">
    Step-by-step setup guide
  </Card>

  <Card title="OpenClaw Docs" icon="book-open" href="https://docs.openclaw.ai">
    OpenClaw documentation
  </Card>

  <Card title="SDK" icon="code" href="/sdk">
    Node.js SDK
  </Card>

  <Card title="API Reference" icon="book" href="/api-reference/introduction">
    Full endpoint docs
  </Card>

  <Card title="Discord" icon="discord" href="https://discord.gg/ZB6c2meCUA">
    Community support
  </Card>
</CardGroup>
