Recommended setup
1
Start from Migma handoff
In Migma, open Create, click Set up Migma with agent, and paste the copied
/setup prompt into Lovable’s agent.2
Approve agent access
Use agent registration first. Add
MIGMA_API_KEY as a Lovable backend secret only if the agent cannot complete registration.3
Add a fallback secret
Store
MIGMA_API_KEY in Lovable’s backend environment. Do not expose it in browser code.4
Create or choose emails
Prepare emails in Migma and save returned
emailId values in backend config.5
Wire backend sends
Send from server routes, jobs, or trusted functions only.
Prompt
Use this only if you cannot copy the in-app handoff prompt.Next
AI App Builders
Builder checklist and surface choice.
Agent Handoff
In-app setup prompt and Copy for AI flow.
API Quickstart
Send your first API request.