migmaGenerate, send, validate, and export AI-powered emails from the terminal; manage contacts, segments, tags, domains, and webhooks with Migma CLI.
Install via ClawdBot CLI:
clawdbot install AdamSEY/migmaCreate and send professional, on-brand emails with AI. Your agent can design emails from a prompt, send them instantly through a managed domain, and manage an entire audience β all from the terminal.
Always pass --json for structured output.
If the user hasn't set up yet, run these steps once:
# 1. Create an instant sending domain (no DNS needed)
migma domains managed create <companyname> --json
# β Sends from: hello@<companyname>.migma.email
# 2. Set a default project (brand)
migma projects list --json
migma projects use <projectId>
When the user asks to create, design, or generate an email:
migma generate "Welcome email for new subscribers" --wait --json
The --wait flag blocks until the AI finishes. The JSON response includes conversationId, subject, and html.
To save the HTML locally, add --save ./email.html. To include a reference image (screenshot, design mockup), add --image .
When the user asks to send an email to someone:
# Send a generated email directly
migma send --to sarah@example.com --subject "Welcome!" \
--from-conversation <conversationId> \
--from hello@company.migma.email --from-name "Company" --json
# Or send from a local HTML file
migma send --to sarah@example.com --subject "Hello" \
--html ./email.html \
--from hello@company.migma.email --from-name "Company" --json
# Send to an entire segment or tag
migma send --segment <id> --subject "Big News" --html ./email.html \
--from hello@company.migma.email --from-name "Company" --json
# Personalize with template variables
migma send --to user@example.com --subject "Hi {{name}}" --html ./email.html \
--from hello@company.migma.email --from-name "Company" \
--var name=Sarah --var discount=20 --json
--from-conversation auto-exports the HTML from a generated email β no separate export step.
When the user wants to check an email before sending:
migma validate all --html ./email.html --json
migma validate all --conversation <conversationId> --json
Returns an overall score plus individual checks: compatibility (30+ email clients), broken links, spelling/grammar, and deliverability/spam score. Individual checks: migma validate compatibility, links, spelling, deliverability.
When the user wants to export to an ESP or download a file:
migma export html <conversationId> --output ./email.html
migma export klaviyo <conversationId> --json
migma export mailchimp <conversationId> --json
migma export hubspot <conversationId> --json
migma export pdf <conversationId> --json
migma export mjml <conversationId> --json
migma contacts add --email user@example.com --firstName John --json
migma contacts list --json
migma contacts import ./contacts.csv --json
migma contacts remove <id> --json
migma tags create --name "VIP" --json
migma tags list --json
migma segments create --name "Active Users" --description "..." --json
migma segments list --json
When the user wants to set up a new brand from their website:
migma projects import https://yourbrand.com --wait --json
migma projects use <projectId>
This fetches logos, colors, fonts, and brand voice automatically.
On error, --json returns:
{"error": {"message": "Not found", "code": "not_found", "statusCode": 404}}
AI Usage Analysis
Analysis is being generated⦠refresh in a few seconds.
iMessage/SMS CLI for listing chats, history, watch, and sending.
Use when you need to control Discord from Clawdbot via the discord tool: send messages, react, post or upload stickers, upload emojis, run polls, manage threads/pins/search, fetch permissions or member/role/channel info, or handle moderation actions in Discord DMs or channels.
Use when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
Send WhatsApp messages to other people or search/sync WhatsApp history via the wacli CLI (not for normal user chats).
Build or update the BlueBubbles external channel plugin for Clawdbot (extension package, REST send/probe, webhook inbound).
OpenClaw skill for designing Telegram Bot API workflows and command-driven conversations using direct HTTPS requests (no SDKs).