LLM-Driven Automated In-Depth Interviewing: A Practical Engineering Guide

    This article explores how large language models (LLMs) can automate in-depth interviews to make qualitative user research scalable. It proposes a four-layer architecture covering research configuration, interview execution, quality control, and analysis, and details key techniques such as structured interview guides, multi-turn state machines with dynamic probing, layered context management, faithfulness constraints, leading-question detection, and evidence traceability. Readers will learn the engineering practices, common pitfalls, and human-in-the-loop boundaries needed to scale interviews without sacrificing quality.

    1. Background: Why Traditional In-Depth Interviews Are Hard to Scale

    In-depth interviews are a key method for user research, requirement discovery, and knowledge acquisition. Their value lies in using open-ended questions and layered follow-ups to uncover motivations, constraints, and decision paths that interviewees themselves may not be able to articulate clearly. However, traditional manual interviewing has three hard bottlenecks:

    1. High labor cost: A high-quality interview goes through multiple stages, including guide design, recruiting, execution, transcription, and coding analysis, with significant time and financial cost per sample.
    2. An obvious scaling ceiling: Research teams have limited capacity to run interviews in parallel, so sample sizes often stay in the range of a few dozen, making it hard to cover niche segments and long-tail scenarios.
    3. Analysis is prone to distortion: Manual coding relies on the consistency of researchers’ experience. Standards drift across people and batches, and the reproducibility of conclusions suffers.

    The rise of large language models has made “automating the interview” possible from an engineering standpoint. A model can play the interviewer role, dynamically generate questions against a preset research goal, follow up in real time based on answers, and turn unstructured dialogue into structured data for human researchers to make secondary judgments. It is worth stressing that the model does not replace humans in drawing final conclusions; rather, it frees humans from “execution and transcription” so they can focus on “design and interpretation,” the parts that genuinely require judgment.

    2. Overall Architecture: A Four-Layer, Decoupled Design

    A robust automated interview system should be split into four layers that communicate through well-defined data contracts, avoiding coupling prompts, business logic, and storage together.

    • Research configuration layer: Defines the research goal, target persona, interview guide skeleton, follow-up strategy, and termination conditions.
    • Interview execution layer: Handles multi-turn dialogue state management, question generation, follow-up decisions, and context trimming.
    • Quality control layer: Handles hallucination detection, leading-question suppression, sensitive content recognition, and compliance checks.
    • Analysis and aggregation layer: Converts multiple conversations into structured fields and performs cross-sample clustering, topic extraction, and evidence traceability.

    The benefit of this layering is that swapping the underlying model, adjusting the follow-up strategy, or integrating a new analysis algorithm does not require rewriting the entire pipeline.

    3. Interview Execution Layer: From a Static Guide to Dynamic Follow-Ups

    3.1 Structured Representation of the Interview Guide

    Do not let the model “freely improvise.” Instead, express the guide as a machine-readable structure where each field is both prompt material and a source of labels for later analysis.

    1. {
    2. "study_id": "onboarding-friction-2025",
    3. "persona": "Users who registered in the past three months but did not complete their first key action",
    4. "objectives": ["Identify drop-off points", "Understand alternatives", "Assess improvement priorities"],
    5. "outline": [
    6. {"id": "Q1", "topic": "First-use scenario", "type": "open", "must_cover": true},
    7. {"id": "Q2", "topic": "Description of the blocker", "type": "probe", "parent": "Q1"},
    8. {"id": "Q3", "topic": "Alternative tools and manual workarounds", "type": "open"}
    9. ],
    10. "stop_rules": {"max_turns": 18, "min_topics_covered": 3}
    11. }

    3.2 Multi-Turn State Machine and Follow-Up Strategy

    The dividing line for interview quality is the follow-up. In engineering terms, a lightweight state machine can constrain the direction of the dialogue: each turn first judges whether the current topic has been sufficiently covered (whether the four elements of a concrete event, time, cause, and result have appeared). If not, a “concretizing follow-up” is triggered; if so, it advances to the next topic.

    1. def next_action(state, outline):
    2. cur = state.current_topic
    3. if not has_concrete_episode(state.history, cur):
    4. return {"action": "probe", "prompt": build_probe(cur, state.history)}
    5. nxt = pick_next_uncovered(outline, state.covered)
    6. if nxt is None or state.turns >= outline["stop_rules"]["max_turns"]:
    7. return {"action": "wrap_up"}
    8. return {"action": "advance", "topic": nxt}

    Follow-ups should avoid three anti-patterns. First, closed narrowing (“Is it because of slow loading?”), which puts the answer into the interviewee’s mouth. Second, double-barreled questions (asking two things at once), which lead to confused attribution in the answer. Third, evaluative feedback (“That’s a good answer”), which biases subsequent answers toward the interviewer’s expectations.

    3.3 Context Management

    The main risks in long interviews are token cost and topic drift. A layered memory approach is recommended: keep the raw text of the most recent turns, compress earlier content into labeled key-point summaries, and always fix the research goal and the list of covered topics in the context to prevent the model from going off-topic or repeating questions.

    4. Quality Control Layer: Ensuring the Credibility of Automated Interviews

    The biggest technical risk of automated interviews is not “failing to ask,” but “fabricating the interviewee’s intent” or “hinting at answers through the way questions are phrased.” Control measures include:

    • Faithfulness constraints: Require the model to cite verbatim fragments as evidence when generating interim summaries, and mark statements without evidence as pending confirmation.
    • Leading-question detection: Use a separate discriminative step to score each question before it is sent, detecting whether it contains biased adjectives, preset conclusions, or option hints, and rewriting it if it exceeds a threshold.
    • Repetition and coverage monitoring: Compare questions for semantic similarity to avoid restating the same thing, while tracking coverage of must-ask topics and extending the interview if it falls short.
    • Sensitive content and compliance handling: Recognize and de-identify inputs involving personal privacy or credentials, complete minimization and de-identification of transcripts before writing them to storage, and clean them up according to a preset retention period.
    • A human spot-check loop: Sample a proportion of interviews for review by human researchers, and feed the review conclusions back as an evaluation set to iterate on prompts and strategy parameters.

    5. Analysis and Aggregation Layer: Turning Conversations into Verifiable Conclusions

    The end of an interview is just the beginning of data acquisition. A recommended analysis pipeline:

    1. Structured extraction: Extract fields such as scenario, blocker, cause hypothesis, alternative, and sentiment intensity from each conversation, producing data records in a unified schema.
    2. Topic clustering: Cluster open-ended answers after embedding representation to form candidate topics, which human researchers then name and merge.
    3. Evidence traceability: Each topic keeps references pointing to the original conversation turns, so any conclusion can return to the original words with one click. This is the most effective mechanism for controlling model hallucination.
    4. Priority ranking: Provide ranking suggestions based on frequency, impact intensity, and how actionable an issue is, but keep the final decision on the human side.

    An illustrative extraction constraint can be written as:

    1. EXTRACT_PROMPT = """
    2. Extract fields only based on the given conversation; do not infer information that does not appear.
    3. Output JSON: {scene, blockers[], causes[], workarounds[], sentiment, evidence[]}
    4. evidence must be verbatim fragments from the conversation; if a field has no basis, fill in null.
    5. """

    6. Engineering Practices and Common Pitfalls

    • Controllable cost: Distinguish between “must-ask topics” and “opportunistic topics,” and compress ineffective dialogue using turn limits and early termination conditions. Use a mix of models of different sizes for summary-type tasks versus follow-up-type tasks.
    • Reproducibility: Fix random seeds and prompt version numbers, and bring the research configuration, model version, and strategy parameters into version control to ensure experiments can be traced.
    • Evaluation first: First build a small-scale benchmark set from manual interviews, run regression tests with three metrics (topic coverage, follow-up effectiveness, and factual consistency), and then gradually scale up.
    • A clear human-machine boundary: The model handles scaled execution and initial coding, while humans handle research design, judgments on sample representativeness, and final interpretation. This boundary should not be blurred.
    • Infrastructure selection: In implementation, you can combine general capability categories, for example, using a container platform to host concurrent interview tasks, a message queue to smooth out task spikes, object storage to save de-identified transcripts, and logging and monitoring with alerting to track failure rates and latency. If you use a cloud platform such as Baidu AI Cloud, it is typically a matter of combining these general product categories, and specific parameters and specifications should follow the official documentation.