Sub topic 3
Designing a prompt set that reflects real questions
This chapter assumes you have used chat-based AI assistants, can read a small JSON file, and know what brand visibility means in this tutorial: mention, recommendation, citation, accuracy, and sentiment. You do not need to run code to follow it. The Python snippets are short and optional.
A prompt set is the fixed list of questions you will ask every assistant, every time you test. Every later result depends on it. If the set is biased toward your brand, your scores will look good and mean little. If it changes between tests, you cannot compare one month with the next.
What a prompt set is for
A prompt set answers one question: when real people ask an assistant about your market, does your brand appear, and how? The set is your measuring instrument. Treat it like a survey questionnaire. Write it deliberately, keep it stable, and version it when you change it.
A good prompt set has four properties:
- Realistic. The wording resembles what customers actually type or say.
- Balanced. It covers different stages of a buyer's thinking, not only questions that name you.
- Labelled. Each prompt carries a type and an ID, so you can trace any result back to a question category.
- Stable. Wording stays fixed between test rounds unless you deliberately release a new version.
The four prompt types
Real questions differ in how much the asker already knows. The spine of this tutorial uses four types.
| Type | The asker knows | Example | What it tests |
|---|---|---|---|
| Discovery | A need, no brands | "What are the best web analytics tools for a small online shop?" | Whether you are in the default shortlist |
| Comparison | Two or more brands | "Compare Acme Analytics and Example BI for a small team." | How you are described next to named rivals |
| Problem | A pain point, not even the product category | "How can I see where visitors drop off in my checkout?" | Whether you appear when the question is about a task |
| Branded | Your brand name | "What is Acme Analytics and who is it for?" | Accuracy and sentiment of what is said about you |
Each type measures something different, so do not merge their results into one score. Discovery and problem prompts show whether people who do not know you will meet you. Comparison prompts show how you fare against a named rival. Branded prompts show what the assistant says once someone is already looking at you.
A common error is to write mostly branded prompts. They are easy to write and nearly always return a mention, since the name is in the question. That produces a high mention rate that says nothing about discovery.
Where realistic wording comes from
Do not invent questions at your desk. Collect the wording from sources that reflect real behaviour:
- Customer-facing teams. Sales and support staff hear the exact phrases buyers use. Ask them for the ten questions they hear most.
- Search and site data. Internal site-search queries, search console queries, and "people also ask" suggestions show how people phrase needs.
- Reviews and forums. Customers describe problems in their own words, often with context such as team size or budget.
- Sales call notes and onboarding forms. These show what buyers compare you against.
Look for three features in real wording. People include a constraint ("small online shop", "under 10 people", "on a budget"). They often ask in full sentences to an assistant, unlike short search keywords. They rarely use your marketing terms. If your product page says "behavioural funnel intelligence" and customers say "see where people leave my checkout", use the customers' phrase.
Building the set: a worked structure
Start with a file that groups the brand, its aliases, named competitors, and the prompts. The file below is a minimal example.
{
"brand": "Acme Analytics",
"aliases": ["Acme"],
"competitors": ["Example BI", "Sample Metrics"],
"prompts": [
{"id": "disc-01", "type": "discovery", "text": "What are the best web analytics tools for a small online shop?"},
{"id": "cmp-01", "type": "comparison", "text": "Compare Acme Analytics and Example BI for a small team."},
{"id": "prob-01", "type": "problem", "text": "How can I see where visitors drop off in my checkout?"},
{"id": "brand-01", "type": "branded", "text": "What is Acme Analytics and who is it for?"}
]
}Each field has a job:
- brand is the exact name you are measuring.
- aliases are other forms of the name that should count as the same brand, such as a short form. You will need them when you detect mentions, so that one mention is not counted twice.
- competitors are the named rivals you will track in the same answers. Choose them from who customers actually compare you with, not from who you wish to be compared with.
- id is a stable key. Keep it unchanged even if you reword the prompt text in a later version, or note the change explicitly.
- type is the category used for reporting.
Why aliases matter shows up in a simple detection function. A whole-word, case-insensitive match finds names in an answer:
import re
def find_brand_mentions(answer: str, names: list[str]) -> list[str]:
"""Return the names that appear in the answer as whole words, ignoring case."""
found = []
for name in names:
pattern = r"\b" + re.escape(name) + r"\b"
if re.search(pattern, answer, flags=re.IGNORECASE):
found.append(name)
return found
answer = "For a small shop, consider Example BI or Acme Analytics."
print(find_brand_mentions(answer, ["Acme Analytics", "Acme", "Sample Metrics"]))
# ['Acme Analytics', 'Acme']The output lists both "Acme Analytics" and "Acme" for a single mention. If you counted each name separately, one mention would score twice. When you score results later, you will merge a brand and its aliases into one hit. Declaring aliases in the prompt file keeps that rule in one place.
How many prompts, and how to spread them
There is no magic number. Choose a size you can run repeatedly. Each prompt will be repeated several times on each assistant, so cost grows quickly: 40 prompts, 5 repeats, and 3 assistants is 600 answers per round to record and score.
A reasonable starting range for a manual process is 20 to 40 prompts. Spread them so that no single type dominates:
| Type | Share of a 32-prompt set | Count |
|---|---|---|
| Discovery | 25% | 8 |
| Problem | 25% | 8 |
| Comparison | 25% | 8 |
| Branded | 25% | 8 |
An even split is a starting point, not a rule. If most of your new customers arrive through problem-led questions, give that type more prompts. State the weighting in your notes so readers of your report know how to interpret an overall figure.
Cover real variety within each type:
- Segments. Small teams and large teams, beginners and experts, different industries you serve.
- Constraints. Budget, region, language, required features.
- Phrasing. Some short questions, some long ones with context.
- Intent. Learning ("what is"), choosing ("which is best"), and doing ("how do I").
Avoid near-duplicates. Ten reworded versions of "best analytics tool" count as one question, not ten. They also make a single answer pattern look more certain than it is.
Writing prompts that do not bias the result
Wording changes answers. These rules keep the instrument neutral.
- Do not lead. "Why is Acme Analytics the best tool for shops?" asks the assistant to agree with you. Use "What are the best web analytics tools for a small online shop?"
- Do not name your brand in discovery and problem prompts. Naming it removes the point of the test.
- Give each prompt one question. A prompt with three questions yields answers that are hard to score.
- Include context a real user would give. A prompt with no context gets a generic answer. A prompt with a clear context, such as team size, yields more specific recommendations.
- Keep competitor prompts fair. In comparison prompts, put competitors in a neutral order and vary which brand comes first across prompts, since order can affect how an answer is framed.
- Do not tune prompts until you appear. If you reword a prompt after seeing it fail, you are fitting the instrument to the answer. Change wording only between versions, and record why.
Edge cases to plan for
Ambiguous brand names. If your brand is a common word, such as "Orbit" or "Atlas", whole-word matching will find the word in unrelated sentences. Record how you handle it, for example by requiring a product-category word nearby, or by checking mentions by hand.
Competitor names inside your name. If a competitor is "Acme" and you are "Acme Analytics", a match on the short name counts both. Order your matching rules and test them on sample answers.
Prompts that depend on time. Questions such as "best tools this year" change meaning over time. Prefer wording that stays valid, or flag these prompts so you read their results with that in mind.
Regional and language variants. If you serve several markets, create separate prompt sets or tag each prompt with a market. Do not translate a prompt and assume the same answer pattern.
Prompts the assistant may decline or hedge. Some questions, for example about health or legal matters, produce cautious answers with few brand names. Keep them only if they match real customer needs, and report them separately.
Reviewing the set before you use it
Before freezing version 1, check the set against this list:
- Does each prompt have an ID, a type, and exact text?
- Is every type represented, with a count you can explain?
- Do discovery and problem prompts avoid your brand name?
- Could a real customer plausibly ask each one?
- Are competitors those that customers actually compare you with?
- Are aliases and ambiguous names documented?
- Is the file saved with a version number and date?
Ask a colleague outside the marketing team to read the prompts. If they say "nobody would ask it like that", rewrite the prompt.
Keeping the set useful over time
A prompt set is not permanent. Products, competitors, and customer questions change. Review it on a schedule, such as every quarter. When you change it:
- Keep unchanged prompts under their old IDs, so their trend lines continue.
- Give new prompts new IDs.
- Retire prompts by marking them inactive, not by deleting them.
- Record the version and date in every results file.
This way you can compare like with like, and you can still explain why a figure moved. The next chapters cover how to run these prompts under a documented protocol and why each one must be repeated.
Exercise
A colleague builds a 20-prompt set. Fourteen prompts are branded ("Tell me about Acme Analytics' pricing"), and the rest are discovery prompts. The report says "Acme is mentioned in 85% of answers." Name two problems with this design and say how you would fix it.
Show answer
First, the set is dominated by branded prompts, which contain the brand name and almost always return a mention. The 85% figure mostly reflects the prompt wording, not real visibility. Second, the set has no comparison or problem prompts, and it combines all types into one number. Fix it by balancing the set across the four types (for example 5 prompts each), keeping the brand name out of discovery and problem prompts, and reporting the mention rate separately for each type.
Exercise
You find that a discovery prompt returned no mention of your brand. You reword it as "Why is Acme Analytics a top tool for small shops?" and the brand now appears. Is this a valid improvement in visibility? Explain.
Show answer
No. The new wording contains the brand name and leads the assistant to agree, so it no longer tests discovery. Changing a prompt after seeing a poor result also fits the instrument to the answer. The original result should stay in the record. Any real rewording for realism should be released as a new set version with a logged reason, and without the brand name.