/setup handoff prompt so the agent audits the app, creates or reuses emails, and wires backend sends safely.
Use the surface your builder supports:
- Agent handoff for first-time app setup from Migma
- REST API for production app code
- SDK for TypeScript and Node.js apps
- CLI for terminal-capable builders
- Setup workflow when a coding agent can inspect and edit the repository
- MCP when the builder supports MCP tools
Best path
1
Copy the setup handoff
In Migma, open Create, click Set up Migma with agent, then copy the prompt.
2
Paste into the builder agent
Use the agent that can inspect and edit the app repository.
3
Approve access
Let the agent use agent registration first. Add a fallback API key only when needed.
4
Review the dry-run
Before live sends, confirm the agent mapped each trigger to the right
emailId and added a smoke test.Builder guides

Lovable
Add Migma to Lovable backend sends.

Bolt
Add Migma to Bolt app email triggers.

v0
Use Migma from server routes or server actions.

Replit
Use Migma from Replit apps, agents, and jobs.
Builder checklist
1
Prefer the handoff prompt
Use Set up Migma with agent instead of manually writing a long integration prompt.
2
Keep secrets server-side
Store
MIGMA_API_KEY in the builder’s server-side environment or secret manager.3
Create or choose a brand
Use a Migma brand/project so emails use the right logo, colors, sender, and audience context.
4
Prepare email IDs
Generate or select emails in Migma, then store returned
emailId values in backend config.5
Wire sends in backend code
Send only from server routes, jobs, or trusted functions. Do not send directly from browser code.
6
Add dry-run checks
Test that each app trigger selects the right
emailId without sending duplicates.Suggested prompt
When to use each surface
Next
Setup Workflow
Agent-guided app wiring.
Agent Handoff
Copy setup and selected-email prompts from Migma.
API Quickstart
Send your first API request.
SDK
Use Migma from Node.js or TypeScript.
Webhooks
Trigger app workflows from Migma events.