AI Interview Systems Powered by Large Language Models: A Practical Implementation Guide

    This article explains how to build and operate an AI interview system driven by large language models for user research. It covers research-method trade-offs, system architecture, interview orchestration, dialogue state management, agent design, structured output, privacy and ethics, qualitative coding, thematic analysis, and a practical path to scaled deployment.

    1. Why AI interviews: from observing behavior to understanding intent

    When product teams try to answer the question “why do users behave this way?”, log data alone is often not enough. AI interviews, or LLM-driven interviews, are becoming a bridge between behavioral data and subjective intent. They allow models to handle much of the questioning and follow-up work, freeing researchers to focus on interpretation, judgment, and decision-making.

    This article walks through a practical AI interview system, covering method selection, system architecture, interview protocols, dialogue state management, structured output, qualitative coding, thematic analysis, and scaled deployment.

    Traditional methods and their limits

    User research commonly relies on two tools: log analysis and human interviews. Log analysis can observe large-scale behavior, while human interviews can uncover motivation. However, each method has clear boundaries. Before building an AI interview system, it is important to understand the trade-offs among different research methods.

    Method Cost Sample size Depth Main bias Suitable use cases
    Quantitative log analysis Low Large-scale Shallow Missing instrumentation, survivor bias Observing behavior distribution and feature usage trends
    Structured surveys Low to medium Medium to large-scale Medium-shallow Preset options may omit real viewpoints Validating known hypotheses and measuring attitudes
    Human in-depth interviews High Small-scale Deep Interviewer style differences, limited sample representativeness Exploring complex motivations and generating hypotheses
    AI interviews Medium Medium to large-scale Medium-deep Prompt bias, model version changes Exploring user thoughts and concerns at scale

    The value of AI interviews is not simply to replace human interviews. With proper sampling design, protocol constraints, and quality control, they can expand the coverage of open-ended interviews.

    In the past, human in-depth interviews were limited by the number of available interviewers. Once the questioning logic is encoded into an interview protocol and tuned through pilots, hundreds or even thousands of interviews can run in parallel. However, final conclusions still require human researchers. Models should not be allowed to draw conclusions on behalf of researchers.

    2. Building an AI interview system: architecture, state management, and engineering boundaries

    A usable AI interview system typically includes an interview orchestration layer, an interview agent layer, a structured output layer, and a storage and analysis layer.

    2.1 Interview orchestration and engineering prerequisites

    The interview orchestration layer manages the lifecycle of each interview, including session creation, state persistence, timeout control, retries, and concurrent scheduling.

    Because interviews are long-running, stateful, and potentially high-concurrency tasks, a message queue is usually needed for asynchronous task distribution. A container platform can then provide elastic scaling, with each interview encapsulated as an independently schedulable task unit.

    Before scaling up, several engineering prerequisites must be clarified.

    First, the model and its version must be selected and locked. An AI interview system is not a one-off prompt experiment; it is a long-running system. The model version, temperature setting, prompt version, output format constraints, and tool versions should be fixed. If the model provider upgrades the model, regression testing should be performed to avoid sudden changes in interview style within the same research cycle.

    Second, long interviews require dialogue state management. A single interview may last from 15 to 40 minutes, and the conversation history can grow continuously. It is not practical to place all history into the context window because this increases cost and makes the conversation more likely to drift. Strategies such as sliding windows, session state cards, and rolling summaries can be used. For example, recent utterances can be kept verbatim, while earlier content can be compressed into a state summary. Key quotes should retain their original positions, and completed topics should be tagged to avoid repeated follow-up questions.

    Third, timeout and retry policies for each interview should be explicit. For example, if there is no effective progress on a single topic within 8 minutes, the follow-up strategy can be switched. If there is no valid answer for 30 minutes in the entire interview, the case can be routed to human review. If a model call fails, exponential backoff can be used for retries. A reasonable retry limit is 2 to 3 attempts. If the threshold is exceeded, the task can be moved to a dead-letter queue.

    Fourth, concurrency and quota should be estimated. Concurrency can be estimated with the following formula:

    Concurrency ≈ number of respondents × minutes per interview ÷ (available days × runtime hours per day × 60)

    For example, if there are 1,000 respondents, each interview takes 25 minutes, the study is planned to run for 3 days, and the system runs for 6 hours per day, the baseline concurrency is approximately:

    1000 × 25 ÷ (3 × 6 × 60) ≈ 23

    Considering retries, peak queuing, and model rate limits, peak concurrency can be provisioned at 1.5 to 2 times the baseline value, or about 35 to 46. The input and output token volume of each interview should also be converted into model API RPM and TPM quotas to avoid tasks piling up in the same time window.

    2.2 Interview agent layer: reliable questioning and follow-up

    The interview agent layer is the core of the system and is driven by a large language model. It needs three capabilities: topic coverage control, dynamic follow-up, and stable style.

    Topic coverage control ensures that preset topics are not missed. Dynamic follow-up is used to clarify vague answers. Stable style requires the model to remain neutral and avoid leading the respondent.

    The following is illustrative pseudocode showing the core loop of the interview agent. In this logic, the follow-up answer is received first and then recorded, avoiding the mistake of incorrectly splitting return values when writing to the session.

    1. # Illustrative pseudocode: core loop of the interview agent
    2. def run_interview(protocol, session):
    3. covered = set()
    4. for topic in protocol.topics:
    5. while not covered_is_sufficient(covered, topic):
    6. question = agent.generate_question(
    7. topic=topic,
    8. history=session.transcript,
    9. require="neutral wording, ask one open-ended question",
    10. )
    11. answer = session.ask(question)
    12. session.record(question, answer)
    13. probe_answer = None
    14. if needs_probing(answer):
    15. probe = agent.generate_followup(question, answer)
    16. probe_answer = session.ask(probe)
    17. session.record(probe, probe_answer)
    18. covered.update(extract_subtopics(answer, probe_answer))
    19. return session.export_structured()

    In this logic, needs_probing determines whether a follow-up question is worth asking, and extract_subtopics extracts covered subtopics from the answer. During implementation, the system should avoid infinite probing by the model and avoid missing important topics.

    2.3 Structured output layer: making interview results analyzable

    Free-form text is not ideal for later analysis. Therefore, after an interview ends, a structured record should be generated.

    A structured record usually includes an anonymous session ID, protocol version, topic, insight summary, sentiment label, key quotes, quote positions, and follow-up count.

    An example field is shown below:

    1. {
    2. "session_id": "anon_000123",
    3. "protocol_version": "v1.3",
    4. "topics": [
    5. {
    6. "topic": "Security concerns",
    7. "insight_summary": "The respondent is worried that AI-generated content cannot be traced to its source.",
    8. "sentiment": "Concern",
    9. "confidence": 0.78,
    10. "quotes": [
    11. {
    12. "turn_id": 12,
    13. "text": "If I don't know the source, I won't use it directly.",
    14. "char_start": 45,
    15. "char_end": 97
    16. }
    17. ]
    18. }
    19. ],
    20. "meta": {
    21. "duration_sec": 1250,
    22. "turn_count": 18,
    23. "followup_count": 3
    24. }
    25. }

    A key design point is that structured records should avoid directly storing personally identifiable information. An anonymous ID should be generated when the session is created. After transcription is completed, sensitive information detection and de-identification should be performed. Quotes in structured summaries should prefer anonymized text and positional references, such as turn_id and character offsets. Original verbatim transcripts can be encrypted and stored in a controlled environment, accessible only to authorized researchers. Before external sharing or secondary analysis, re-identification risk should be checked again.

    2.4 Storage, analysis, and observability

    Raw interview data, transcribed text, structured JSON, sentiment labels, and coding results should be stored in appropriate storage systems. Raw files can be placed in encrypted object storage. Analytical data can be stored in a system that supports querying and analysis. Task status, failure reasons, and model call logs should go into a logging service.

    Recommended monitoring metrics include at least the following: topic coverage rate, average number of follow-ups, average interview duration, cost per interview, model call failure rate, timeout rate, respondent dropout rate, and low-quality answer rate. Without these metrics, scaled interviews can easily become “completed but unusable.”

    3. Designing interview protocols and follow-up rules

    The interview protocol is the foundation of AI interview quality. A clear protocol should include research objectives, mandatory topics, follow-up thresholds for each type of topic, prohibited leading expressions, and output format requirements. The clearer the protocol, the more consistent the model’s execution and the more comparable the data across respondents.

    Follow-up rules should not simply say “ask follow-up questions based on the answer.” They should provide executable trigger conditions. For example:

    • If the answer contains fewer than 20 effective characters, trigger one clarification follow-up.
    • If the answer includes signals such as “not sure,” “can’t say,” “I don’t know,” or “it depends,” trigger one follow-up about the reason.
    • If the answer shows strong emotion but does not include a specific scenario, ask about a related experience.
    • The follow-up limit for each topic should be 2 to 3 times. The total follow-up limit for the whole interview can be set to 5 to 8 times.
    • These values are only initial suggestions and should be calibrated based on pilot results to avoid respondent fatigue caused by excessive follow-ups.

    For privacy and ethics, AI interviews involve opinions, emotions, and potentially sensitive experiences. Ethical compliance must be treated as a prerequisite constraint. If research is conducted with real users, appropriate ethics review or internal compliance review should be completed.

    Informed consent should clearly state the research purpose, interview content, whether recording or transcription will be used, whether third-party model or transcription services will be used, data retention period, and how to withdraw data. Respondents should be able to exit at any time. If they request deletion, the original transcript, structured records, and derived data should be deleted within an agreed timeframe unless retention is required by law or compliance requirements.

    If third-party model APIs or transcription services are used, risks such as data transfer, data retention, use for model training, and whether training can be disabled should be evaluated. When sensitive information is involved, de-identification should be completed before the call, or a private deployment solution should be considered.

    4. Analyzing AI interview results: practical thematic analysis

    Scaled interviews produce large amounts of text. Reading everything manually is not feasible. A common method is thematic analysis: first perform open coding to generate initial codes, then aggregate initial codes into candidate themes, and finally consolidate them into a small number of core themes.

    A simplified example is as follows:

    • Initial codes: cannot trace source, fear misuse, worried about data upload, want someone accountable.
    • Candidate themes: trust and traceability needs, accountability concerns.
    • Core theme: users lack a clear sense of accountability boundaries for AI output.

    Large models can act as assistants during the coding stage, performing preliminary clustering, labeling, and summarization of the corpus. However, final semantic judgments must be confirmed by human researchers.

    One way to reduce model bias is dual independent coding. Two researchers independently code the same sample set and then compare differences. Sections with low agreement should be returned to the original text for discussion. This helps prevent the model from turning incidental expressions into fixed conclusions.

    5. Scaling AI interviews: a seven-step process

    The following process is recommended:

    1. Design the interview protocol: work with domain experts to define research objectives, topics, follow-up rules, and prohibited expressions.
    2. Run a small pilot: start with dozens of interviews and manually evaluate question quality, follow-up appropriateness, and data usability.
    3. Iterate prompts and the protocol: adjust topics, follow-up thresholds, and output formats based on pilot findings.
    4. Scale the operation: use message queues and containers to schedule interviews in parallel, while monitoring failure rates and costs in real time.
    5. Clean and structure the data: complete de-identification, transcript proofreading, topic classification, and quote location.
    6. Perform thematic analysis and human validation: use machine-assisted initial coding, researcher review, and interpretable conclusions.
    7. Share data internally or release it: public datasets must meet conditions such as re-identification risk control, clear licensing, and retention policies. If the risk is high, internal sharing or application-based access can be used instead.

    During the pilot stage, the following metrics are recommended:

    • Topic coverage rate: the proportion of mandatory topics that are effectively covered.
    • Average number of follow-ups: follow-ups per interview or per topic.
    • Off-topic rate: the proportion of answers that deviate from the topic or are irrelevant.
    • Interview duration and cost: including model calls, transcription, and human review costs.
    • Failure rate: the proportion of model call failures, timeouts, empty answers, and mid-interview dropouts.

    These metrics provide a basis for iteration instead of relying on subjective judgment about whether “the model works well.”

    6. Common pitfalls and how to avoid them

    The first pitfall is ignoring model-induced leading bias. Question wording can significantly affect answers. Therefore, the protocol should restrict leading expressions, and wording comparisons should be tested for key topics.

    The second pitfall is insufficient sample representativeness. Automation can increase sample size, but if respondent sources are too homogeneous, conclusions may still be distorted. Sampling design should cover different occupations, experience levels, usage frequencies, and scenarios.

    The third pitfall is treating machine conclusions as truth. Model summaries and coding are only assistants and should not be used directly as decision-making evidence. Before important decisions, human review and evidence traceability are required.

    The fourth pitfall is treating privacy compliance as a formality. Obtaining consent does not equal safety. Data minimization, de-identification, access control, retention periods, and withdrawal mechanisms must all be implemented in engineering details.

    7. Conclusion

    The value of an AI interview system is not to replace researchers, but to free researchers from repetitive questioning, recording, and organizing. It allows machines to handle large-scale questioning and follow-up, while humans focus on interpretation, judgment, and decision-making.

    For teams that want to truly understand user thinking, building an LLM-driven interview pipeline that balances depth, scale, privacy, and ethics is a foundational capability worth long-term investment.