save_experiment_draft
Save an experiment draft
Draft an experiment for a person to review: a hypothesis, two to six variants, one primary metric, the comparison window, the minimum sample per variant, the smallest difference worth calling, and the confounders you can see.
It is saved as a draft only: a person approves and starts it in the app, and nothing is launched, published or spent. State the hypothesis as something to test, never as an expected result, and say which evidence it rests on (a market signal says nothing about results). Link variants to existing ads, content items or tracking links by id when you know them; otherwise leave them unlinked for the person to link.
Arguments
| Name | Type | Needed | What it is |
|---|---|---|---|
name |
string | yes | |
hypothesis |
string | yes | What is being tested and why, in one or two sentences. |
primary_metric |
string | yes | One of: cost_per_lead, cost_per_qualified_lead, cost_per_won_sale, qualification_rate, close_rate, leads |
variants |
array of object | yes | Each variant links to at most one of: ad, content item, tracking link. |
variants[]. |
string | yes | |
variants[]. |
string | no | |
variants[]. |
string | no | |
variants[]. |
string | no | |
variants[]. |
string | no | |
variants[]. |
boolean | no | |
comparison_window_days |
integer | no | Default 14. |
min_sample |
integer | no | Matured leads needed per variant. Default 30. |
min_difference_pct |
integer | no | Smallest relative difference that counts. Default 20. |
min_coverage_pct |
integer | no | Attribution coverage needed. Default 50. |
maturity_days |
integer | no | Days a lead needs before its outcome counts. Default 14. |
confounders |
string | no | What else differs between the variants (audience, timing, budget, placement). |
decision_rule |
string | no | Leave out to use the standard rule built from the numbers above. |
is_randomized |
boolean | no | True only when the ad platform splits one audience at random between the variants. |
campaign_id |
string | no |
Like every workspace tool it also takes workspace: a workspace id or slug. Leave it out to use the workspace the person last worked in.
How it behaves
- It changes something in the workspace, within what the signed-in person's role allows.
- It is not in the first list an assistant sees; the assistant finds it with search_tools and runs it with execute_tools.
How tools behave: confirmation, review links, errors and limits
In the same group
get_experiment · get_funnel_matrix · get_paid_draft · import_paid_results · list_ad_accounts · list_budget_requests · list_experiments · list_paid_drafts · list_paid_performance · manage_experiment · map_paid_campaign · save_budget_request · save_paid_draft