MCP Workflows

These are conversations with the agent, not dashboards you click through.

Before you change a live page

Call check_live_tests before you edit a homepage, letter, Adaptive Journey, or Milestone, even if nobody said experiment. Pass the full file, not a diff hunk. If something live is on those files or ids, stop and ask. Three outs: end the test then ship; wait; or they say this change is not the thing under test.

The check does not pause anything and does not send mail. Pause stays on the experiment page.

Point the agent at the right shop

List my workspaces and switch to the one whose key matches the dashboard.

The agent calls list_workspaces, then switch_workspace. Every later call uses that shop. If you belong to more than one organization, list_orgs / switch_org first (user key or device flow).

Plan and ship a code experiment

Plan

Tell the agent what you want to improve. It calls plan_experiment and shows related beliefs.

I want more signups on the pricing page

Record the assumption

The agent calls start_reasoning after you pick the belief and how sure you are.

Preview the experiment

The agent calls create_experiment with preview: true. You review the name, control, variant, and traffic split. Confirm to create.

Implement the recipe

Apex never writes your app. The agent implements the recipe with useApexVariant. The hook alone is not flicker-free. First HTML has to already be the assigned arm: pass initialVariant or <ApexProvider assignments>. If you use Next.js: npm install @apex-inc/next @apex-inc/react, then apexVisitorMiddleware, assignExperiments, <ApexProvider assignments>. A client-only app cannot promise no flicker. If the Apex snippet is already on the page, Apex can change what is there. No SDK.

Check the files, then start

check_live_tests on the files you touched. Then track_deployment with the commit SHA, check_deployment, and activate_experiment.

Review results

How is the pricing experiment doing?

The agent calls list_experiments and get_results. You can keep running, pause, or promote. Promoting is optional. The snippet can keep serving the winner. Graduating removes the runtime branch and puts the winner in source.

Ask what to test next

What should I test on onboarding?

The agent calls suggest_experiment. Suggestions get better as you record beliefs and finish tests.

Letters and Adaptive Journeys

What letters and journeys does this shop already have?

The agent calls list_communications and list_journeys. Empty is honest. recommend_communications returns the catalog for your vertical. Publishing a letter or an Adaptive Journey is a write. Confirm first. See Building your first Adaptive Journey.

Segments

What segments can I send to?

The agent calls list_segments. Wire a seed with wire_audience_seed when you are installing events. There is no list_audiences tool.

Product adoption

Show adoption milestones and whether anyone has reached them.

The agent calls list_adoption_milestones and get_adoption_metrics. An empty Path is zeros, not a green all-clear. See Driving product adoption.

Finish Set up Apex from the editor

What is still unfinished on Set up Apex?

The agent calls get_setup_state, list_data_sources, and get_wiring_status. It should not stamp a step complete. The rail finishes when the real thing happens (events, a conversion, a sender domain).

Next steps