A simulated user is an agent that code generates from segment conditions and plays the target segment in the simulation. The quality of a simulated user depends on who the agent represents. A traditional persona is three to five representative people, each with a name, a photo, and a short background, kept around to remind a team what its users look like. A simulation needs hundreds of agents whose gender, age, income, and city distributions match the target segment, so that the reactions to an ad can be compared. In AI market research this is the first step to settle.
The article reads in this order: how research evaluates synthetic samples, how the open-source project MiroFish produces agents, how sampling by segment distribution works, and finally multi-segment comparison, repetition, and overseas segments. The overall flow is in how simulated users view an ad and discuss it, and how product data reaches the agents is in product data inside the simulated world.
How research treats synthetic samples
Argyle et al., 2023 combined GPT-3 with thousands of real people's demographic backgrounds to produce what the authors call silicon samples, and argued that the model's response distributions show algorithmic fidelity for different subgroups. The more specific the background given to the model, the closer the answers come to the real subgroup.
Wang et al., 2024 compared 4 models, 3,200 participants, and 16 demographic identities, and found that models flatten differences inside a group when answering. Mitigation at inference time reduces the effect but does not eliminate it; bias and safeguards are covered in simulated user bias and guardrails.
Park et al., 2024 interviewed 1,052 American adults for two hours each and built simulations from the transcripts. On General Social Survey questions, demographics alone scored 60.4%, adding the interview scored 69.4%, and participants' own answers two weeks later matched at 79.5%. The fuller the background, the closer the result to real people, and real people have a ceiling on self-consistency.
Together the three studies put two requirements on the method. Each agent must be written in specific terms, not just "woman, 25 to 34". The distribution across the whole batch must be controlled by program code and not left to the model.
MiroFish agent fields
MiroFish works in five steps, listed in its README: graph construction, environment setup, simulation, report generation, and deep interaction. Agents appear in the second step. Once the graph is built, the code reads entities from it, in zep_entity_reader.py, and each entity can become one simulated agent.
The agent fields are defined in oasis_profile_generator.py, ten in all.
| Field | Purpose |
|---|---|
| bio | Short profile of the agent |
| persona | Character description handed to the language model to play |
| age | Age |
| gender | Gender |
| mbti | MBTI personality type |
| country | Country |
| profession | Occupation |
| interested_topics | Topics the agent cares about |
| karma | Field for the Reddit-style platform, default 1000 |
| follower_count | Field for the Twitter-style platform, default 150 |
These fields describe a single agent, and agents are generated one by one from graph entities, which suits growing a world out of real source material. Market rehearsal needs something else: the distribution of the whole batch has to match a segment, so the engineering team replaced this step with sampling from a segment table.
Sampling by segment distribution
The engineering team writes a segment table first, and code does the sampling. Each segment specifies gender ratio, age range, the share of relationship or family status, monthly income range, and internet and shopping habits. Cities come from a separate weight table, and the draw follows those weights. Each agent then gets one recent-mood sentence, drawn at random from a set.
Sampling uses a fixed random seed. The same segment table with the same seed yields the same batch of people. A different seed yields another batch with the same distribution and different individuals. Results become reproducible, and a difference between two runs can be traced to the settings.
- Segment tableGender, age, incomeOne per segment
- Weighted samplingFixed random seedCity and mood drawn at random
- Persona cardOne per personAll fields filled
- Enter simulationView ad, discuss, interviewAgents see only the prepared product data
Flow sketch, no measured numbers in the figure
The persona card is the sampling output, and also the setting the language model reads while playing the role. Here is a fictional example.
| Item | Content |
|---|---|
| Age and gender | 32, female |
| City | Taichung |
| Household | Married, one child |
| Monthly income | NT$50,000 to 60,000 |
| Online habits | Active in community groups and LINE groups in the evening |
| Recent mood | Comparing childcare costs lately |
The mood line gives agents in one segment different starting points. Two agents of similar age and income, one comparing prices and one who just received a year-end bonus, react differently to the same ad.
Two segment tables have been built so far. One covers 12 segments across Taiwan, and the other covers 6 family segments in a single region.
A segment table turns "who this group is" into fields that code can read, which is more dependable than a single adjective. Gender ratio is written as two numbers, age range as a start and end, relationship or family status as several states with a share each, and monthly income as a range. The language model receives a persona card that is already drawn, and never has to guess roughly how old a person is or where the person lives.
- Read the segment tableGender, age, income, city weights
- Apply the random seedCode draws agents one by one by weight
- Table and seed both unchangedThe same batchThe run is reproducible
- Table unchanged, new seedAnother batch, same distribution, different individuals
- Table editedA new batch with a different distribution
This design separates the sources of variation. To learn whether a result moved because of the product or because of who was drawn, fix the seed and change only the product data. To learn whether a result is sensitive to sampling, fix the product data and try several seeds.
Segment comparison and repetition
A product goes through each segment separately so the results can be compared. The program tallies each segment's distribution and the paired differences, for example which segments find a price within the reference price, and where each segment's hesitation concentrates. The output is direction and relative difference across segments, not an absolute figure for any one segment.
The same settings are repeated 3 more times to see whether results hold. A difference that points the same way in all three runs is worth discussing, and one that flips direction is treated as noise. A second model also reads about 12% of the sample to check that each agent's answers match its settings.
The unit of comparison is the segment. Running one ad through 12 segments across Taiwan shows which segment's click intent clusters high and which hesitates most on price. The 6 family segments in a single region show how different household types within one area differ. The finer the segments, the more alike the agents inside each one, and the easier a difference is to attribute to the segment's conditions.
How to build overseas segments
Overseas segments follow the same method, with a different segment table and region table. Weights such as the gender and age structure, city populations, and income distribution can come from public data of national statistical agencies, then be cut into segments to fit the product's target. Language and shopping habits are written into the table's text fields.
The sampling, persona card, repetition, and consistency-check code stays unchanged. The limits raised by the three studies still apply. Differences inside a group get flattened, so overseas persona descriptions must be just as specific.
Overseas segments need one more check: the language and currency of the product data must match the region table. Prices go into the data the agents see in local currency, and the persona card's income range uses the same currency, so that an agent does not judge a foreign price with a feel for New Taiwan dollars. This is an alignment in the design, not new code.
When this does not fit
Simulated users answer with direction and relative difference, and do not replace a sample survey. Projecting a conclusion onto a population with a margin of error calls for a randomly sampled questionnaire, covered in how market research methods divide the work.
Simulation also comes too early when the segment cannot be written as fields. If even rough ranges of gender, age, and income cannot be set for the target group, the table can only hold vague conditions, and the flattening problem Wang et al. describe grows worse. Interviews to clarify the segment come first, and the segment table follows.
How this feeds into market rehearsal
P-Mo Test puts this step before the simulation. The segment table follows the project goal, code draws the agents, and each agent then reads the prepared product data and is interviewed. Product scope and details are on the market rehearsal service page.
To find out which segments suit a rehearsal of a given product, start from contacting the engineering team with a description of the target group.
