Create an audience
create_audienceBuild a new audience from a sentence describing who they are. Free. Shows what the brief would produce and saves nothing; pass dry_run=false to actually create it.
Returns the definition in three layers: `measured` (filters sized on the measured population),
`estimated` (screening questions; the people who pass are found in the background after the
audience is created, so `ready` is false at first: the audience can be run at once and the
run waits for its first people; incidence is an estimate), and
`unsupported` (criteria that could NOT be applied). Always tell the user what landed in
`unsupported`: the audience does not have that property. Use dry_run=true first when the
brief is ambitious. Nothing is saved until dry_run=false, so show the user what the three
layers say and get their agreement before creating it.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brief | Yes | Who, in plain words, in the user's own framing. Include the country. e.g. 'German adults 25-40 who bought from a DTC skincare brand in the last 6 months' | |
| dry_run | No | true (default) = show what the brief would produce and save nothing; false = create it and return its id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The new audience's id, once created | |
| ok | No | false means the call failed: read `error` and `hint` | |
| hint | No | What to change, when ok is false | |
| name | No | ||
| next | No | What to do next | |
| note | No | Something to tell the user or keep in mind | |
| size | No | Estimated number of people in the country matching the measured filters | |
| error | No | Error code, when ok is false | |
| ready | No | false: the people matching the estimated criteria are still being found. The audience can already be run; the run waits for its first people. | |
| country | No | ||
| dry_run | No | true: nothing was saved | |
| share_pct | No | ||
| size_tier | No | measured or estimated | |
| definition | No | measured, attribute, estimated, unsupported | |
| provenance | No | Evidence tier: verified, calibrated or model_est | |
| ready_in_seconds | No | Rough wait until the first people exist, when ready is false |