Handoff paths
| Surface | Use it for | What gets copied |
|---|---|---|
| Create → Set up Migma with agent | First-time app setup | /setup skill/plugin install paths, agent auth, sender/domain status, and backend wiring steps |
| Publish or Send via API → Copy for AI | Use one email in an app | selected emailId, sender/domain status, agent auth, and send instructions |
| Canvas export → Copy for AI | Wire selected canvas emails | selected email IDs, future-email preference, sender/domain status, and app wiring steps |
First-time app setup
Open Create
In Migma, open Create and click Set up Migma with agent beside the composer send button.
Copy for AI
Migma checks sender and domain status, then copies a setup prompt for Claude Code, Codex, Cursor, or any skills-compatible agent.
Paste into your agent
Paste the prompt into the agent working inside your app repository. It tells the agent to use the official setup skill or plugin when available.
Approve access
The prompt tells the agent to use agent registration first. You approve a short code, and the agent receives a scoped key. Use a fallback API key only when that flow is unavailable.
What the /setup prompt asks for
- Audit transactional sends, templates, newsletters, lifecycle jobs, queues, webhooks, and existing provider config.
- Resolve the right Migma brand after credentials are ready.
- Reuse matching Migma emails before creating new ones.
- Create missing emails from code evidence: trigger files, recipients, variables, subject copy, CTAs, and timing.
- Store
emailId, subject, sender, and trigger mapping in server-side config. - Wire sends only through trusted backend paths.
- Add idempotency and one dry-run or smoke test before live sends.
Existing email handoff
Use Copy for AI from Publish, Send via API, or canvas export when an email already exists in Migma. This path does not use the full setup skill by default. It gives the agent selectedemailId values and instructions for wiring those emails into the app.
Live agent status
External agents can show up in Migma while they work. On Create, Migma shows the agent activity pill, types the incoming prompt into the composer, and opens the generated chat when the agent-created conversation is ready.Related
/setup
Full setup skill and plugin guide.
Agent Registration
Scoped agent access without copy-pasting keys.
Skills
Install Migma workflows into supported agents.
AI App Builders
Lovable, Bolt, v0, Replit, and similar builders.