generate_audience
Generate a reproducible synthetic audience from a YAML specification, creating a frozen set of personas and social network to test campaign variants against identical conditions.
Instructions
Generate and save a synthetic audience from a YAML spec.
The audience is a frozen, seeded population of personas plus a social network — the same spec always produces the same people, so campaign variants can be tested against an identical audience.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec_yaml | Yes | YAML audience spec. Minimal example: name: saas-founders product_context: "a churn-analytics SaaS tool" size: 300 seed: 42 distributions: age: {mean: 33, sd: 8, min: 22, max: 60} income_bracket: {low: 0.2, mid: 0.5, high: 0.3} trust_in_ads: {mean: 0.2, sd: 0.1} network: topology: watts-strogatz # or barabasi-albert (influencer-heavy) k: 8 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |