Pricing Academy Blog
Agentic marketing with Claude and Codex

AI marketing agents for your funnels

ElasticFunnels puts your funnel in a folder of files. Claude Code or Codex reads it, builds the pages, sets up the split test, publishes it and reads the result.

Claude Code, Codex, CursorClaude Desktop over MCPIncluded on every plan
A real terminal session: ef pull syncs the brand, claude -p asks Claude Code to change the hero button text in pages/lp-a.ef, Claude Code confirms the one-line change, and ef diff shows the page as changed and ready to push
What an AI marketing agent is

Your funnel as files an agent can change

An AI marketing agent is a model that does the work instead of describing it: it reads your pages and numbers, runs commands and checks what happened.

The ef CLI binds a folder to your ElasticFunnels brand. Every page, component, script and variable becomes a file, and every action is a command with --json output and stable exit codes. That is the interface an agent needs.

What the agent can do

  • Create, edit, lint and publish pages and components
  • Build split tests, redirects and popups as page-event graphs
  • Read revenue, conversion rate and split-test results with ef stats
  • Manage products, brand variables, forms, CRM records and tags
  • Put a page on a domain and list it in sitemap.xml and llms.txt
  • Refuse to overwrite a change someone made in the app since its last pull
AI split testing, step by step

How an AI agent runs a split test

These are the commands the agent runs. We ran them on our own brand to write this page.

Pull the funnel

One command copies the brand into the folder. A session hook re-pulls before each Claude Code session.

ef pull

Build the variant

The agent writes the new advertorial or edits the old one, then lints it.

ef pages create offer/advertorial-b
ef lint pages/offer/advertorial-b.ef

Wire the split test

A Split Test node in the page's events graph sends half the visitors to each variant, under the URL your ads already use.

ef pages events pull offer/advertorial
ef pages events validate offer/advertorial

Publish

Both pushes refuse if the server changed since the pull, so the agent can't overwrite your edits.

ef push pages/offer/advertorial-b.ef
ef pages events push offer/advertorial

Read the result

The app computes significance and flags results until each arm has its minimum sample. The agent reports that result and never computes its own; picking the winner stays with you.

ef stats splits
ef stats split 526
AI funnel analytics

Ask the agent how the funnel did

"Which traffic source made money this week?" becomes ef stats by utm_source. The agent reads the table and answers in plain words.

  • Revenue, sessions, conversion rate, AOV and more
  • Break down by page, country, device, UTM or day
  • --json for anything the agent computes
Terminal running ef stats by utm_source: revenue, sessions and conversion rate for the last 7 days per traffic source, facebook, google, youtube, newsletter and tiktok (demo data)
Where the agent stops

What agents can and can't do

The agent can only run the commands the CLI has. Here's where the line is.

TaskAI agent (CLI)You, in the app
Write and publish pagesYes: ef pages create, ef pushOr the visual builder and AI page builder
Same-URL split testsYes: page-event graphsOr the Page Events canvas
Read resultsYes: ef stats, ef stats splitOr dashboards and split-test reports
DomainsAdds the domain and prints its DNS recordsYou create the records at your registrar
Gateways, networks, ad accountsNoConnected in the app
Ad campaigns and budgetsNoYou run them in the ad platform
Claude Desktop MCP

Claude Desktop, without a terminal

Claude Desktop can't run shell commands, so ef mcp serves your brand to it over MCP. It lists, reads, creates and edits pages, and gets preview links.

  • The config file names a folder, not a secret
  • Pages, components, products and preview URLs
  • Split tests and stats still need the CLI
{
  "mcpServers": {
    "elasticfunnels": {
      "command": "ef",
      "args": ["mcp", "--project", "/Users/you/my-brand"]
    }
  }
}
AI page builder in the app

Prefer clicking? Do it in the app

The built-in AI writes any page you describe, advertorials and presells included. Keep editing by chat, then split test the draft against your control.

  • No terminal and no agent to install
  • Runs on your AI credits, no API key
  • The same pages the CLI works on
The ElasticFunnels AI assistant editing an advertorial: the prompt, the page it read, the edit it made and Updating advertorial
FAQ

AI marketing agent FAQ

What is an AI marketing agent?

An AI model that carries out marketing work itself instead of only suggesting it: it reads files and data, runs commands and checks the result. In ElasticFunnels that means Claude Code or Codex using the ef CLI to build pages, set up split tests, publish them and read the numbers.

Which AI agents work with ElasticFunnels?

Any agent that can run terminal commands: Claude Code, Codex and the Cursor agent. ef init writes a CLAUDE.md, an AGENTS.md and a Cursor rule that teach them the commands. Claude Desktop connects through the ef mcp server.

Can an AI agent run my ads?

No. The agent works on your funnel: pages, components, split tests, products, forms and reports. Nothing in the CLI creates, edits or pauses ad campaigns or changes budgets. ElasticFunnels sends sales back to the ad platforms, but you run the ads.

Can Claude Desktop set up a split test?

Not through MCP today. The ef mcp server gives Claude Desktop eight tools: list, read, create and edit pages, read components and products, and get preview links. Split tests and stats need the CLI, so use Claude Code or Codex for those.

Do I paste an OpenAI or Anthropic API key into ElasticFunnels?

No. The agent runs on your own Claude or ChatGPT account. ef init signs in to your brand through the browser and keeps the credential in the project folder, so the agent never sees a key in chat.

What still needs the ElasticFunnels app?

Connecting payment gateways, affiliate networks and ad accounts, and creating the DNS records for a new domain at your registrar. The agent can add a domain and print its DNS records, but you set them.

Is it included on every plan?

Yes. The ef CLI, the MCP server and the in-app AI page builder are included on every plan. Plans differ only in usage limits.

Hand your funnel to an agent

Run ef init, open Claude Code or Codex in the folder and ask for your first split test.