Skip to main content
Use Migma with Replit when an app or agent needs transactional emails, 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 Replit Agent.
2

Approve agent access

Use agent registration first. Add MIGMA_API_KEY to Replit Secrets only if the agent cannot complete registration.
3

Add a fallback secret

Store MIGMA_API_KEY in Replit Secrets.
4

Choose a surface

Use the SDK for Node.js apps, REST for any backend runtime, or CLI for terminal workflows.
5

Wire backend sends

Send from server code, 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 Replit app.
Use agent registration before asking me for an API key.
Find email triggers and existing templates.
Create or reuse Migma emails.
Store emailId values in backend config.
Add a dry-run test before live sending.

Next

Agent Handoff

In-app setup prompt and Copy for AI flow.

CLI

Use Migma from terminal workflows.

Webhooks

Trigger app workflows from Migma events.