Skip to main content
Use Migma with Lovable when an AI-built app needs real email sending, campaign drafts, contacts, webhooks, or delivery logs.
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.
Use Migma's /setup workflow for this Lovable app.
Use agent registration before asking me for an API key.
Find signup, invite, billing, and notification email triggers.
Use existing Migma emailId values where available.
Wire sends only in backend code.
Add a dry-run path before live sending.

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.