synthetic-consumers
ASecurityRun a synthetic consumer panel on a product, concept, price, name, packaging, ad or idea — persona-conditioned LLM respondents write free-text purchase intent, and Semantic Similarity Rating (SSR) maps that text to Likert probability distributions, reproducing the Colgate / PyMC Labs method validated on 9,300 real survey responses (arXiv:2510.08338). Use this whenever someone wants to test whether people would buy something, gauge demand, predict purchase intent, validate a concept before bui...
- 2 stars
- 0 votes
- 0 copies
- 1 view
- Added November 24, 2026
Works with
Security analysis
100/100Pro scans all 9 files and shows the line behind each finding
npx -y skills add artificialguybr/synthetic-consumers --agent claude-codeAre you the author of synthetic-consumers?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/artificialguybr-synthetic-consumers)---
name: synthetic-consumers
description: Run a synthetic consumer panel on a product, concept, price, name, packaging, ad or idea — persona-conditioned LLM respondents write free-text purchase intent, and Semantic Similarity Rating (SSR) maps that text to Likert probability distributions, reproducing the Colgate / PyMC Labs method validated on 9,300 real survey responses (arXiv:2510.08338). Use this whenever someone wants to test whether people would buy something, gauge demand, predict purchase intent, validate a concept before building it, run an audience or segment reaction, A/B two product variants, price sensitivity, mine objections to an idea, or get an AI focus group / synthetic customers — even if they never say "synthetic consumers", "SSR" or "market research" and just ask "would people buy this?" or "vale a pena lançar isso?".
---
# Synthetic consumers
**Never ask the model for a number. Ask for a sentence, then measure the sentence.**
Asked to rate a concept 1-5 directly, LLMs answer "3" almost always and never reach the ends of the scale. In the paper, direct numeric elicitation scored a distribution similarity of 0.26 against 9,300 real survey answers; the same models, asked the same question in words and then mapped with SSR, scored 0.88. The respondent knows what it feels. The number is what loses it.
The mapping is the whole trick, and it is cheap: embeddings of the free-text answer against five anchor sentences, one per Likert point. Cosine similarity becomes a probability distribution over 1-5. No training, no fine-tuning, no panel vendor.
## What this is good at, and what it is not
Good at — and this is what the paper actually validated:
- **Ranking concepts.** Which of five variants wins. This is the strongest result in the study: 90% of human test-retest reliability, which is close to the ceiling set by asking a second human panel.
- **Shape of the response distribution** (0.88 KS similarity), i.e. how much of the audience is a 5 versus a 3.
- **Directional differences between segments** — age and income in particular. Middle-aged cohorts rate higher than young and old; tighter budgets rate lower. Both reversed in the synthetic panel exactly as in the human one.
- **The reasons.** The free text is richer and more critical than what the human panel wrote in its open-ended questions.
Not good at — say so plainly when you report:
- **Absolute purchase rates.** The synthetic mean sits around 4.0 like the human one, but it is not a forecast of "% of shoppers who will buy". Use it for comparisons inside one run.
- **Categories with no human anchor.** Without 3-5 concepts that have real survey numbers, you cannot tell whether this panel is calibrated for your market.
## The five moves
1. Write the concept.
2. Design the panel.
3. Elicit free text. Never a number.
4. Map text to Likert — agent rating (no install) or `scripts/ssr.py` (precise).
5. Read the distribution, the segments, and the objections.
### 1. Write the concept
Give the concept the way a consumer meets it, not the way a product team describes it. What it is, what it does, what it costs, where you buy it, and the one claim on the front of the pack. If you have a mockup or a shelf photo, include it: in the paper, the image stimulus mildly beat a text-only transcript, so a picture is worth using when you have one.
Freeze the wording before the panel runs. Two variants must differ in exactly one thing, or the delta is unattributable.
### 2. Design the panel
**The personas are the measurement instrument, not decoration.** The paper's sharpest finding: with no demographic conditioning the distributions still looked right (0.91 similarity) but the ability to tell concepts apart collapsed from 92% to 50%. Demographics carry the signal about *who wants this*, and the concept carries *whether it is good*. Drop the personas and you get a polite, uniform "yes".
Per persona, include:
- age band and life stage ("42, two kids, works shifts")
- income situation in that person's own words, not a bracket number — the paper's income anchors were statements about budget pressure, and the models reacted to the wording of the pressure, not the number
- what they use today and what they would have to give up
- one habit or attitude that decides the purchase: skeptic, loyalist, impulse buyer, researcher
Sizes and what they buy you, at roughly 1.0 per-response standard deviation:
| responses | what it resolves |
|---|---|
| 6 | a demo. Do not read numbers off it. |
| 24 | a direction, ±0.2 PI of noisy read on the mean |
| 60 | segment deltas, ±0.13 |
| 120+ | distribution shape you can compare against a human survey |
Sampling noise is the floor on any difference you report: with n responses the standard error of the mean is about `1/sqrt(n)`. A 0.1 gap between two concepts at n=24 is noise. `scripts/ssr.py` prints the bootstrap interval for every number it gives you — compare intervals, not point estimates.
**Diversity beats plausibility.** If every persona is in the target segment and enthusiastic about the category, the panel measures the concept's best case. Pull in the people who would say "I already have three of these" and "sounds like a gimmick". Those are the ones that produce a realistic distribution.
### 3. Elicit free text
Give each persona the concept and one question. Keep the answer short and unconstrained, and forbid numbers in the system prompt, or models drift back to the safe middle.
System prompt, per respondent:
```
You are a participant in a consumer product research survey.
You are impersonating this person: {persona}
Stay in character and answer the way this person would out loud.
Reply briefly, in 1-3 sentences. Do not use numbers or ratings.
```
User turn:
```
{concept}
How likely are you to purchase the product?
```
Then the respondent answers in words. Sample 2 responses per persona at temperature ~0.5-1.5 and average them; the paper found two samples sufficient for stable results.
If your harness lets you run many respondents, run them as separate calls so one persona's answer does not anchor the next. If it does not, one call asking for N numbered answers from N different personas is a real degradation but usable — it flattens the diversity, which is the main thing this method needs.
Write the responses to a JSONL file, one object per line:
```json
{"id": "p07", "segment": "25-34", "persona": {"age": "25-34", "income": "tight"}, "text": "..."}
```
`segment` is optional and is what `--segment` groups by. Keep it identical across the run.
### 4. Map text to Likert
Two modes. Start with the fast one; it needs nothing installed.
**Mode A — the agent rates the text (FLR, no dependencies).** In a *separate* pass, rate
each response against the anchor sets in `references/reference-statements.md` and record the
integer. Read the anchors as a rubric: rate 1 means the response reads like the set's 1-anchor.
Do it in a second call, not in the same sentence as the response — a model that just wrote
its own answer rates it too generously.
```
Rate this consumer response on purchase intent from 1 to 5.
Use these anchors: 1 "..." 2 "..." 3 "..." 4 "..." 5 "..."
Response: "..."
Answer with the integer only.
```
**Do not rate 300 responses with a chat call in a loop.** A judging model reasons before it
answers, and reasoning tokens come out of the same `max_tokens` budget as the answer. At a generous
setting the answer is empty; at a tight one it answers out of whatever survived. In one run this
produced `[3,3,3,3,3,3]` for every response, then nothing at all after 11 minutes, then 0 of
300 ratings. If you rate with a model rather than in your own context, set reasoning off or
minimal, give `max_tokens` at least 4000, use a JSON-array response format, and rate 5-10 at a
time. Log each batch ("rated 15/80", flushed) and write the partial ratings to disk, because a
silent batch loop is indistinguishable from a hung one. Give the judge the anchors and 3-5 example
statements per rating, or it regresses to 3.
The panel's integer ratings then give the distribution by counting, exactly what a real
survey does. In the paper this is FLR, 85% of the human ranking ceiling and 0.72 distribution
similarity: slightly worse at telling concepts apart, clearly worse at shape, and **zero
infrastructure**. For "which concept wins", it is enough.
If you want the shape too without the script, rate each response against each of the six sets
separately and average the six integers. A response the sets place at 4, 4, 5, 4, 5, 4 has a
distribution over ratings where 5 wins, which is the same thing SSR computes with embeddings.
This is an extension of the paper, not a tested result — say so when you report it, and prefer the
script when the numbers have to be reproducible.
**Mode B — the script (SSR, 90% / 0.88).** Use it when the distribution shape matters
(a polarised audience is a different decision than a lukewarm one), when several people must
get the same number twice, or when the panel is large. One command:
```bash
python3 scripts/ssr.py rate panel.jsonl --segment income
```
The script picks an embedding backend and, with no `OPENAI_API_KEY`, uses
`intfloat/e5-small-v2` locally. Run it as
`uv run --with sentence-transformers python3 scripts/ssr.py rate panel.jsonl` if
`sentence-transformers` is not installed; the model is 130 MB, one-time.
Models are swappable. Measured with 12 hand-labelled responses per language, six anchor
sets averaged, Spearman between predicted and expected purchase intent:
| model | params | EN | PT | note |
|---|---|---|---|---|
| `intfloat/e5-small-v2` (default) | 33M | 0.98 | 0.86 | widest 1-5 range, best shape |
| `thenlper/gte-small` | 33M | 0.96 | **0.92** | best ordering on non-English text |
| `BAAI/bge-small-en-v1.5` | 33M | 0.97 | 0.78 | |
| `BAAI/bge-small-en` + `--prefix "Represent this sentence: "` | 33M | **1.00** | 0.62 | English only |
| `avsolatorio/GIST-small-Embedding-v0` | 33M | 0.98 | 0.59 | |
| `MongoDB/mdbr-leaf-mt` | **23M** | 0.94 | 0.55 | smallest tested, multilingual |
| `minishlab/potion-retrieval-32M` | 32M | 0.68 | 0.68 | static, no transformer |
| `ibm-granite/granite-embedding-97m-multilingual-r2` | 97M | 0.61 | 0.55 | needs `--prefix "query: "` |
| `sentence-transformers/all-MiniLM-L6-v2` | 23M | 0.50 | 0.52 | |
| `intfloat/multilingual-e5-base` | 278M | 0.87 | 0.53 | 8x bigger, worse here |
A non-English panel:
```bash
uv run --with sentence-transformers python3 scripts/ssr.py rate panel.jsonl \
--model thenlper/gte-small
```
The MTEB leaderboard averages over its own task mix and did **not** predict this ordering:
`mdbr-leaf-mt` and `bge-small-en` rank above e5 there and below it here, and
`multilingual-e5-base` collapses on Portuguese text. Use the table above unless you benchmark
your own panel.
Any model works; the anchor sets are the part that has to match the responses' register.
`python3 scripts/ssr.py anchors` prints them.
It prints the mean purchase intent with a bootstrap interval, the 1-5 distribution, the
segment breakdown, the KS similarity against human data if you pass `--human`, and the
strongest objections and praise with their sentences. `--json out.json` writes everything
for comparing concepts. `python3 scripts/ssr.py anchors` prints the reference sets.
Long runs log and resume. Progress goes to stderr (`embedding 36 unique texts`, `embedded
64/240`, `rated 120/240`), so a 200-respondent panel shows movement instead of hanging.
Embeddings are checkpointed to `.ssr-embeddings.json` after every 64 texts, so a crash, a
Ctrl-C, or a changed `--temperature` costs nothing on the next run: it reads the file and
skips straight to the mapping. Delete that file (or pass `--no-cache`) to re-embed, which is
what you want after changing `--model` or `--prefix`. `--quiet` silences the progress lines.
To score **another question** — relevance, uniqueness, trust — do not invent anchors on
the fly. Read `references/reference-statements.md` and add a set, because the anchors
define the axis and sloppy anchors measure nothing. Then pass `--question <key>`.
### 5. Read the result
Four things to report, in this order:
1. **Rank order across the concepts you tested.** The deliverable is "B beats A", not "A scores 3.9". Absolute numbers carry no meaning outside the run.
2. **The distribution, not the peak.** A concept with 40% at 5 and 30% at 2 has a polarised audience, which is a different decision than a concept with 55% at 4 and nothing at 1. The mean hides this and the distribution does not.
3. **The segment deltas with intervals.** If two segments' intervals overlap, say "no difference measured", not the 0.06 gap.
4. **Two to five verbatim objections**, not paraphrased into themes. The text is the second product of this method and often the more valuable one: it says what to change, not just whether to ship.
5. **What would change the answer.** "The price is the objection" implies a test, and naming it turns the panel into a plan.
**If every option ties, that is the answer, not a failure.** Check that personas differ from
each other first; if they do and the options do not, the population is split rather than indifferent.
Report the split ("16 of 30 prefer A to D") and the segment deltas, because the mean is hiding the
result. The paper's human means vary only 0.1-0.2 across 57 entirely different concepts, so a price
ladder of one product was never going to move the mean past the noise. See
`references/reading-results.md`, "When every option ties".
The full interpretation guide, including how to calibrate against concepts with known human data, is in `references/reading-results.md`.
## Fitting the panel to the decision
The method answers "which" well and "how much" weakly. So shape the run around the comparison you actually have to make:
- **Concept choice** → 4-6 variants, 40+ respondents each. Rank them. This is the strongest use.
- **Price ladder** → the same concept at 3-5 prices, 30+ each. Read the PI curve, not one point.
- **Segment read** → one concept, 10-15 respondents per segment, and only report gaps the intervals support.
- **Copy or packaging** → variants that differ in one serving of text or one visual. Run each against a fixed persona set.
- **Objection mining** → read the free text only. This works with 12 respondents and needs no mapping.
Pair the run with a human anchor: include 3-5 concepts whose real survey results you already know. If the synthetic rank order reproduces that order, the run is trustworthy for the new concepts on the same day, model and brief. If it does not, fix the panel before reading anything else.
## Ways this goes wrong
| symptom | cause | fix |
|---|---|---|
| everything scores ~3, flat distribution | you asked for numbers | elicit text, then map with SSR |
| all concepts score 4.2-4.6, same ranking every time | personas missing income and what they'd give up | give each persona a budget and a habit |
| whole run is cheerful | panel is all category enthusiasts | include rejectors and loyalists of a competitor |
| one segment looks 0.4 higher, n=5 | sampling noise | raise n, or say the intervals overlap |
| distribution looks uniform, 20% at every point | one anchor set, and responses much longer than anchors | average over the sets, keep anchors in the responses' register |
| ranks match but levels are all high | expected: SSR can run high because responses are articulate | compare concepts, calibrate on known concepts |
| agent-rated numbers drift between runs | judge in the generation call, not in a separate pass | rate in a separate call, one concept per pass |
| agent-rated numbers drift, and the shape matters | judgement is not reproducible | use the script for the run you report, keep the agent pass for exploration |
| everything scores "3" in every batch | judge reasoning ate `max_tokens`, or no examples per rating | reasoning off, `max_tokens` 4000, 5-10 per batch, examples in the prompt |
| all options tie but personas disagree by 1-2 points | real result, not a failure | report the persona split and the segment deltas, not the mean |
| every option is ~3 and every distribution is near-uniform | anchors in another language, or anchors far shorter than the responses | write the anchor sets in the panel's language and register |
## Files
- `scripts/ssr.py` — the SSR mapper. Stdlib only. `rate` a JSONL panel, `demo`, `anchors`.
- `references/prompts.md` — elicitation prompts, persona template, worked example.
- `references/reference-statements.md` — the anchor sets, and how to write your own.
- `references/reading-results.md` — metrics, calibration, how to write the report.
- `references/paper-notes.md` — the evidence behind every claim above, with numbers.
## Reporting template
```
# Synthetic panel: <concept>
Panel: <n> respondents, <segments>, <model>, <date>
Reference: SSR over <k> anchor sets, <embedding model>
## Recommendation
<ship / iterate / kill / run a price test — one line, with the reason>
## Rank
| concept | mean PI | 95% CI |
|---|---|---|
## Distribution
<the bar chart from the script>
## Segments
| segment | mean PI | n |
|---|---|---|
## Objections, verbatim
- "<sentence>" — <segment>, PI <x>
- ...
## What this does not tell you
<the absolute-rate caveat, and what to test with humans>
```
Files in this skill
- SKILL.md
- evals/evals.json
- examples/panel.example.jsonl
- references/paper-notes.md
- references/prompts.md
- references/reading-results.md
- references/reference-statements.md
- scripts/ssr.py
- tests/test_ssr.py
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.