Agents
Email for agents
Give Cursor, Claude Code, and your own agents structured ways to install Loops, migrate your stack, send events, test transactional email, and work through API, CLI, and MCP.
Works with
Cursor
Claude Code
Codex
Any compatible client
Example workflows
What it looks like in practice
"Install Loops in my Next.js app"
What the agent does
Detects Next.js, installs the JavaScript SDK, wires LOOPS_API_KEY from .env, creates a contact sync route and transactional send example, outputs a testing checklist.
What you finish
Add your API key in the Loops dashboard, publish your transactional email template, verify the test send.
"Audit my email setup and map it to Loops"
What the agent does
Scans your codebase for email provider calls, identifies every send, template, and webhook. Maps each to a Loops equivalent and produces a file-by-file migration plan.
What you finish
Recreate templates in the Loops editor, configure unsubscribe and webhook settings in the dashboard.
"Send a Stripe cancellation event into Loops"
What the agent does
Wires your Stripe webhook handler to call the Loops events API when a subscription is canceled. Sets event name, maps relevant properties (plan, reason, date).
What you finish
Create the cancellation Loop in the dashboard, define custom contact properties if needed.
"Test this transactional email from the terminal"
What the agent does
Uses the CLI to send a test transactional email with your template ID and sample data variables. Shows the response status and delivery confirmation.
What you finish
Check your inbox, review the rendered email, publish the template when ready.
Live now
What agents can do today
These capabilities are shipping and available right now.
Coming next
On the roadmap
What we're building next for agents and automation.