create_campaign
Design and save a campaign by defining a target audience, one or more ad or email variants, and simulation settings in YAML.
Instructions
Create and save a campaign (one audience x one or more ad/email variants).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaign_yaml | Yes | YAML campaign spec. Example: name: launch-email audience: saas-founders replicates: 3 # runs per variant (confidence intervals) max_ticks: 72 # 1 tick = 1 simulated hour fidelity: mixed # fast | mixed | full (LLM cost vs detail) stimuli: - id: A type: email # email | social_ad | landing_page | search_ad teaser: subject: "Your churn number is hiding in plain sight" sender: "Ada from RetainIQ" body_text: "..." cta: "See your churn breakdown" price_shown: "$49/mo" channel_params: {channel: email, send_tick: 1, reach: 1.0} - id: B variant_of: A type: email teaser: {subject: "Cut churn 20% this quarter"} body_text: "..." cta: "Start free trial" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |