migma create 3 emails for Stripe and show me imagesmigma create 3 emails for this brand and give me the HTML filesmigma import https://stripe.com, create 3 onboarding emails, and return previewsmigma make these emails shorter and send me updated HTML
Slack is a chat surface for Migma, not a sending provider. Slack handles workspace install and message delivery. Migma handles brand access, email generation, previews, HTML, validation, and sending or export only after approved access.
Recommended flow
Authenticate the Slack user
Ask the user to connect Migma from Slack. Use Agent registration so the Slack app or OpenClaw agent receives its own scoped Migma key after the user approves a short code.
Resolve the brand
If the prompt names a brand, list the user’s Migma brands and filter by name. If there is one match, set that brand’s
projectId for the request. If there are multiple matches, ask the user to choose. If no brand exists, ask for a website URL and import the brand before creating email.Prepare the emails
Send the user’s prompt to Migma with the selected
projectId. Pass count: 3 when the user asks for three emails.Return reviewable output
Post each subject and preview image in the Slack thread. Attach
.html files when the user asks for HTML.Auth model
Use Agent registration for Slack apps that act for individual Migma users. Slack workspace install only lets the app receive messages and post replies. Migma access starts when the app begins the agent-auth flow, shows the user a Migma approval link, then stores the issued Migma key server-side for that Slack user. Recommended scopes:| Slack capability | Migma scopes |
|---|---|
| List brands and fetch generated output | Default read access or email:read |
| Import a missing brand, prepare emails, or edit emails | email:send email:read |
| Manage brand assets, logos, or knowledge base entries | project:write |
| Return preview screenshots | email:preview |
| Run preflight checks | email:validate |
| Create campaign drafts or send tests | campaign:write email:send |
Brand resolution
When a prompt saysfor Stripe, the app should choose the brand in this order:
- Use a saved default brand for the Slack channel or user.
- List Migma brands, filter by name, and ask the user to pick when there are multiple matches.
- If no brand exists, ask for a website URL before importing a new brand.
- Store the selected
projectIdonly as a Slack preference. Pass it on Migma requests instead of exposing it in Slack copy.
Output rules
| User asks for | Slack should return |
|---|---|
show me images | Subject lines plus preview images for each generated email. |
give me the HTML files | One .html file per generated email, named from the subject or slot number. |
create 3 emails | Three generated emails from one Migma generation, with one Slack thread containing all outputs. |
send this | Confirmation prompt showing recipient, sender, subject, and brand before Migma sends. |
Slack command behavior
Keep Slack responses short and review-first:Connecting MigmaFinding brandImporting brandPreparing 3 emailsRendering previewsAttaching HTML
Safety
- Store Migma keys server-side, encrypted, and mapped to the Slack user or workspace that approved access.
- Keep Slack tokens separate from Migma tokens.
- Request only the scopes needed for the Slack action.
- Do not post API keys, raw bearer tokens, or private customer data into Slack.
- Require confirmation before sending, scheduling, exporting to another platform, or changing audiences.
- Revoke Migma access from Settings → Developers → API Keys when a Slack user disconnects.
Related docs
Agent Registration
Let the Slack app request scoped Migma access with a user approval code.
Agent Auth Reference
Implement the auth.md claim flow for a Slack app.
SDK
Generate series, fetch HTML, and read screenshot URLs from server-side code.
OpenClaw
Use Migma in Slack through the OpenClaw agent.