Sub topic 2
Where Real Questions Live: Support, Sales, Search, Community and Reviews
This chapter covers the second step in building a prompt set: finding the places where customers already state their questions. It assumes you have read the previous chapter on why real questions matter. You should be comfortable reading short Python scripts and know what counts as personal data. Later chapters cover cleaning and privacy in detail. Here the goal is to choose sources, pull questions out of them, and record where each one came from.
Why the source matters
Each channel captures a different slice of customer behaviour. A customer who writes to support already owns your product and has a problem. A prospect on a sales call is comparing options and has not bought yet. A person typing into a search engine may not know your brand at all.
If you draw questions from only one channel, the prompt set inherits that channel's bias. A set built only from support tickets will be full of "how do I fix..." questions and will have almost nothing about pricing or alternatives. A set built only from search keywords will miss the long, conversational phrasing that people use with AI assistants.
Use several sources. Record the source on every question so that you can measure and correct the balance later.
The five main sources
Support tickets and chat logs
Support data is usually the largest and most structured source. It includes help-desk tickets, live chat transcripts, email threads and contact-form messages.
- What it tells you: problems, setup questions, account and billing issues, and "is this possible?" questions from existing customers.
- Strengths: high volume, real wording, timestamps, and often a category or tag already assigned by agents.
- Weaknesses: skews toward post-purchase and toward things that went wrong. It contains a lot of personal data. Agents often paraphrase or add internal jargon.
- Extraction tip: take the first customer message of a ticket. Later messages are often replies to an agent and make no sense without context.
Sales calls, demos and pre-sales email
Sales teams hear the questions that decide whether someone buys. These include comparisons, pricing, integrations, security requirements and "can it do X?" questions.
- What it tells you: evaluation-stage questions and objections.
- Strengths: covers the comparison and decision stages that support data lacks.
- Weaknesses: often exists only as call recordings or CRM notes. Transcripts may contain errors. Notes are written by the salesperson, so the wording is not the customer's.
- Extraction tip: prefer verbatim transcripts over summaries. If only notes exist, flag those rows so you can treat them as paraphrased.
Search data
Search data includes your site search, search console queries and paid search term reports. People type these into a box, so they tend to be short.
- What it tells you: what people want to know before they reach you, and the vocabulary they use for your topic.
- Strengths: large volume, and it shows demand from people who are not yet customers.
- Weaknesses: queries are fragments such as "crm pricing small team". They are keyword-style, not full questions. Query tools often hide rare queries for privacy, so the long tail is missing.
- Extraction tip: keep queries that are phrased as questions or that clearly imply one. Mark the rest as
keywordfragments. You will expand them into full prompts in a later chapter.
Community forums and social posts
This covers your own community or forum, public forums, Q&A sites, subreddits and social threads where people discuss your category.
- What it tells you: how people describe problems in their own words, including how they talk about competitors.
- Strengths: long, natural, conversational phrasing, which is close to how people prompt an AI assistant.
- Weaknesses: the audience is self-selected and often more technical or more opinionated than average. Posts can be long and contain several questions. Terms of service and copyright may limit what you can store and reuse.
- Extraction tip: take the thread title or the first post, and split posts that contain several questions into separate rows.
Reviews and ratings
Product reviews, app store reviews and survey free-text answers rarely contain literal questions. They contain complaints, surprises and unmet expectations that you can turn into questions.
- What it tells you: what customers expected, what confused them and what they compared you against.
- Strengths: reveals concerns that customers never raise with support.
- Weaknesses: the question is implicit, so a person has to rewrite it. Reviews skew toward extreme opinions.
- Extraction tip: when you rewrite a review into a question, keep the customer's key words and record that the row was derived.
Comparing the sources
| Source | Typical stage | Wording style | Volume | Main risk |
|---|---|---|---|---|
| Support tickets and chat | After purchase | Full sentences, problem-focused | High | Heavy personal data, failure bias |
| Sales calls and email | Evaluation | Spoken, comparison-focused | Medium | Paraphrased notes, small sample |
| Search data | Early discovery | Short keyword fragments | Very high | Not question-shaped, hidden long tail |
| Community and social | Any | Long and conversational | Medium | Self-selection, usage rights |
| Reviews and surveys | After purchase | Statements, not questions | Medium | Implicit questions need rewriting |
How the sources fit together
The sources overlap in time. Search and community discussion happen early, sales happens in the middle, and support and reviews happen after purchase. Covering all of them gives you the whole customer journey.
Collecting questions into one format
Different systems export different shapes of data. Convert everything into one common record as early as possible. The record should keep the original text untouched, the source name, a date, and a flag for whether the text is verbatim or rewritten.
The script below reads a support export and a search export, and writes both into the same structure. It uses only the standard library.
import csv
import json
from datetime import date
QUESTION_STARTS = (
"how", "what", "why", "when", "where", "who", "which",
"can", "could", "do", "does", "is", "are", "will", "should",
)
def looks_like_question(text):
text = text.strip().lower()
return text.endswith("?") or text.startswith(QUESTION_STARTS)
def from_support(path):
"""Read a CSV with columns: ticket_id, created, first_message."""
rows = []
with open(path, newline="", encoding="utf-8") as f:
for r in csv.DictReader(f):
rows.append({
"source": "support_tickets",
"source_ref": r["ticket_id"],
"date": r["created"],
"text": r["first_message"].strip(),
"verbatim": True,
})
return rows
def from_search(path):
"""Read a CSV with columns: query, impressions."""
rows = []
with open(path, newline="", encoding="utf-8") as f:
for i, r in enumerate(csv.DictReader(f)):
rows.append({
"source": "search_queries",
"source_ref": f"sq-{i}",
"date": str(date.today()),
"text": r["query"].strip(),
"verbatim": True,
"form": "question" if looks_like_question(r["query"]) else "keyword",
"count": int(r["impressions"]),
})
return rows
def write_pool(rows, path):
with open(path, "w", encoding="utf-8") as f:
for row in rows:
f.write(json.dumps(row, ensure_ascii=False) + "\n")
if __name__ == "__main__":
pool = from_support("support.csv") + from_search("search.csv")
write_pool(pool, "raw_pool.jsonl")
print(f"Wrote {len(pool)} rows")The file raw_pool.jsonl holds one JSON object per line. Keeping the source and the verbatim flag on every row lets you later report how many prompts came from each channel and how many were reworded.
How much to collect
There is no fixed number. Use these rules of thumb:
- Collect far more than the final prompt set will need. Cleaning, deduplication and sampling remove many rows, and duplicates are common in support data.
- Aim for at least a few hundred raw questions per major product area before you decide a source is "covered".
- Set aside a random portion of the raw pool now, untouched, as a held-out sample. The validation chapter uses it to check the finished set. Doing it later risks leaking those questions into the prompt set.
- Use a recent time window. A year of data is a common starting point, but shorten it if your product changed quickly.
Common mistakes when collecting
- Using one channel only. Check the share of rows per source before you move on. If one source is above about 70 percent, look for more from the others.
- Taking agent text as customer text. Strip agent replies, signatures and auto-generated messages. A quoted email chain can repeat the same customer message many times.
- Including internal tickets. Test messages, spam and employee-created tickets distort the counts.
- Ignoring rights and terms. Public posts and review text may have usage limits. Check the terms with whoever owns legal review, and keep a link or ID rather than a copy when you are unsure.
- Dropping the long tail. Rare questions about security, cancellation or compliance may matter a great deal. Keep them in the pool even when the counts are low.
- Losing the source tag. Without it you cannot find out later why the set is skewed.
Working with access and ownership
Getting the data is often harder than processing it. Plan for this before you start:
- Name an owner for each source: support lead, sales operations, SEO or web analytics owner, community manager, and whoever manages reviews.
- Ask for a bulk export, not a manual copy. Exports are repeatable, so you can refresh the set later.
- State the purpose in plain terms: building a test set of questions, with personal data removed.
- Agree on retention. Decide how long the raw pool is kept and who may open it.
- Note the export date and filters for each source in a small README next to the data.
Exercises
Exercise
A team builds its prompt set only from support tickets. Name two kinds of questions that are likely to be missing, and name one source you would add for each.
Show answer
Likely missing: (1) pre-purchase and comparison questions such as pricing, alternatives and "is it better than X?", which you would add from sales calls and email; (2) early discovery questions from people who are not customers yet and use general category wording, which you would add from search data or community forums. Reviews would also add expectation and confusion questions that customers never send to support.
Exercise
Your search export contains the rows "crm pricing small team" and "can a crm sync with gmail?". Using the approach in this chapter, how should each be recorded, and why?
Show answer
Record both as verbatim rows from the search source. Mark "can a crm sync with gmail?" as form "question", because it is phrased as one. Mark "crm pricing small team" as form "keyword", because it is a fragment. The keyword row is kept, but it must be expanded into a full prompt later, and the form field lets you count how many rows need that work.
Exercise
Why should you set aside a held-out sample of raw questions at the collection stage instead of just before validation?
Show answer
If the sample is chosen later, some of those questions may already have been used as the basis for prompts. The validation check would then compare the set against questions it was built from, and it would look better than it really is. Setting the sample aside first keeps it independent.