← All guides marginal.sh

Testing Cross-Sell Subject Lines in OpenAI Codex

Updated June 2026 · Hosted email MCP server

Cross-sell emails live or die on the subject line. With marginal connected as an email MCP server, you can draft, A/B test, and pick winning cross-sell subject lines in OpenAI Codex without leaving your workflow.

Why run cross-sell subject line tests from Codex

OpenAI Codex is good at reasoning over your product catalog and customer context, which makes it a natural place to draft cross-sell copy. The missing piece is delivery and measurement — and that's what marginal adds as a hosted email MCP server.

Once marginal is wired into Codex, the agent can move from idea to live subject line A/B test in a single conversation. You describe the cross-sell scenario; the agent generates variants, launches the test, and reports which line earns more opens and clicks.

The cross-sell test workflow

Cross-sell subject lines reward specificity: pairing a recent purchase with a complementary product, or framing the upsell around a benefit. Ask Codex to spin several angles and let marginal handle the experiment mechanics.

Prompting Codex for stronger cross-sell lines

The quality of generated variants tracks the quality of your prompt. Give Codex the anchor product, the cross-sell target, and the audience signal so the AI agent email marketing output is grounded in real intent rather than generic phrasing.

A useful pattern: ask for distinct strategic angles per variant — urgency, social proof, bundle value, and curiosity — so your subject line test compares ideas, not near-duplicates.

Connecting marginal to OpenAI Codex

marginal is hosted, so there is nothing to deploy. Point Codex at the endpoint https://marginal.sh/mcp and authenticate with your Bearer API key (marg_live_...). The four tools — generate_variants, launch_test, get_results, and recommend_next — become available to the agent immediately.

Full setup steps and tool schemas live in the docs at https://marginal.sh/docs/. From there, running cross-sell subject lines in OpenAI Codex is just a matter of describing the campaign and letting the agent drive.

Get started with marginal

marginal is a hosted email marketing MCP server at marginal.sh. Sign up free, create an API key, and connect https://marginal.sh/mcp from Cursor, Codex, or Claude Desktop.

Documentation · Sign up · FAQ