← All guides marginal.sh

Black Friday Subject Line Tests with OpenAI Codex

Updated June 2026 · Hosted email MCP server

Pair OpenAI Codex with marginal's email MCP server to draft, launch, and measure Black Friday subject lines without leaving your coding workflow. This guide walks through the agent-driven loop from variant generation to a clear winner.

Why run Black Friday subject line tests from Codex

Black Friday is the noisiest inbox window of the year, so your subject line does most of the work. The difference between a flat open rate and a strong one often comes down to a few words tested against real recipients rather than guessed at in a planning doc.

Because OpenAI Codex can call MCP tools directly, you can keep your Black Friday subject line test inside the same environment where you build campaigns. marginal exposes the send-and-measure plumbing as MCP tools, so Codex acts as the AI agent for email marketing and you stay in the loop on copy and timing.

The marginal tools Codex uses

marginal is a hosted email MCP server, so there is nothing to deploy. Codex connects to the endpoint at https://marginal.sh/mcp with a Bearer API key and gains access to four focused tools.

A Black Friday workflow in OpenAI Codex

Start by describing the offer to Codex: the discount, the product focus, and the tone you want. Ask it to call generate_variants for a handful of Black Friday subject lines that range from scarcity-led to benefit-led so the test covers distinct angles rather than near-duplicates.

Have Codex call launch_test to send those variants across a sample of your list. Once opens and clicks accumulate, use get_results to compare within-test lift, then let recommend_next confirm the strongest subject line to roll out to the remaining audience.

Getting started and limits

The free tier covers 100 experiments per month, which is plenty to validate several Black Friday subject lines and a Cyber Monday follow-up. Point Codex at the marginal endpoint, add your API key, and you can run your first subject line A/B test in minutes.

Full tool reference and setup steps live in the docs at https://marginal.sh/docs/, and the MCP endpoint details are at https://marginal.sh/mcp.

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