Handoff paths
First-time app setup
1
Open Create
In Migma, open Create and click Set up Migma with agent beside the composer send button.
2
Copy for AI
Migma checks sender and domain status, then copies a setup prompt for Claude Code, Codex, Cursor, or any skills-compatible agent.
3
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.
4
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.
5
Review the report
The agent should report the stack found, email systems found, Migma brand used, email IDs created or reused, files changed, and dry-run result.
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.