Sendery
Sendery

AI tools

OpenAI Codex

Build transactional emails with Codex using your app’s existing code. Turn them into editable Sendery templates, preview the results, and connect your app to send them.

1. Connect your project

If you use the Sendery plugin, connect your project and go to step 3.

For manual setup, open your app’s repository in Codex and run these commands in your terminal. Sign in to Sendery in the browser and select a project where you can edit templates.

Terminal
codex mcp add sendery --url https://sendery.co/mcp
codex mcp login sendery

2. Add the Sendery skill

Run this from your repository root. The skill helps Codex create Sendery templates and choose the integration for your app.

Terminal
mkdir -p .agents/skills/sendery-onboarding
curl -fsSL 'https://sendery.co/developer-tools/sendery-onboarding/SKILL.md' -o .agents/skills/sendery-onboarding/SKILL.md

3. Choose what to build

Create new emails or migrate the ones you already send. Copy this prompt and name the emails you want Codex to work on.

Prompt
Set up Sendery for this application. Inspect the framework and existing transactional emails, then recommend the simplest compatible integration. For a new app, prepare the templates we need. For an existing app, follow my requested migration scope; if I have not chosen emails, summarize them and ask which to migrate. You may suggest starting with one for review. Validate and preview the drafts with sample data. Replace the old sending paths for migrated emails without adding on/off flags or fallback senders. Guide me through adding the sending API key to my local environment and deployment secrets without sharing it in chat or committing it. Explain your changes, tests, draft links, and any remaining setup or publishing steps.

4. Review your emails

Codex prepares templates and previews with sample data. Open the drafts from AI Setup in your Sendery project, check the design and content, and ask for any changes. Review the app integration alongside them.

5. Start sending

Create a project API key and add it to your app’s environment settings. Publish the templates in Sendery, then follow Send your first email to test your integration.

Future changes to copy, design, and translations can happen in Sendery, without another code change.