Related Experiment Video
Updated: Aug 23, 2026

Virtual Agent for Real-Time Motivational Interviewing by Integrating Adaptive Nonverbal Behavior and Language Models
Published on: December 23, 2025
Evaluation of Prompt Design and Internal Reasoning in Chatbot-Based Medical History Taking: Simulation Study
Nattawipa Thawinwisan1, Chang Liu1, Goshiro Yamamoto2
1Graduate School of Medicine, Kyoto University, 54 Shogoin-kawahara-cho, Sakyo-ku, Kyoto, Japan, 81 75-366-7701.
Background:
A persistent discrepancy exists between patient-reported information and physician documentation. While conversational agents have been developed to collect medical histories prior to consultations, existing evaluations have largely focused on diagnostic accuracy or user satisfaction rather than on the completeness and clinical relevance of the information collected. There remains a need to assess the extent to which clinically relevant information is captured through chatbot-based interviews, and to understand how model configurations and instructional strategies influence this coverage.
Objective:
This study aimed to evaluate the extent to which a chatbot can obtain clinically useful patient history information, and to examine how prompt detail and internal reasoning influence information coverage during chatbot-based medical interviews.
Methods:
We developed a medical history-taking chatbot using the Qwen3-14B-Instruct model and evaluated 4 configurations in a 2×2 factorial design: detailed and thinking mode, detailed and nonthinking mode, minimal and thinking mode, and minimal and nonthinking mode. These configurations were compared against a rule-based system baseline (choice mode) using 66 standardized primary care clinical cases, with simulated patients interacting with the chatbot according to predefined case scripts. Information coverage (%) was assessed using a checklist inspired by Objective Structured Clinical Examination (OSCE) frameworks. Three physicians independently evaluated transcript coverage, with interrater agreement assessed using full agreement rates and Fleiss κ. For the 4 LLM configurations, coverage was analyzed using 2-way repeated-measures ANOVA to examine the effects of prompt detail, internal reasoning, and their interaction. All 5 configurations, including the rule-based baseline, were additionally compared using 1-way repeated-measures ANOVA with post hoc 2-tailed paired t tests.
Results:
Interrater agreement was substantial (Fleiss κ=0.75). Across all 66 simulated cases, information coverage differed significantly among configurations (P<.001), with the detailed prompt with thinking (detailed and thinking) mode achieving the highest mean coverage (72.3%, SD 14.3%), compared with moderate coverage in configurations using either thinking or detailed prompts alone (approximately 60%) and lower coverage in minimal nonthinking and rule-based configurations (approximately 51%-54%). In the factorial analysis of the 4 LLM configurations, both prompt detail and internal reasoning were significantly associated with improved information coverage, with a significant interaction between prompt detail and internal reasoning interaction. Mode-related differences were most pronounced for past medical and family history domains. Symptom-level analyses revealed substantial variability, with higher coverage for symptoms associated with well-defined diagnostic frameworks and lower coverage for multisystem presentations.
Conclusions:
In this controlled, simulated setting, the detailed prompt with a thinking mode achieved the highest overall checklist-based information coverage. The findings suggest that combining structured clinical prompts with internal reasoning may improve the completeness of chatbot-collected patient histories. Further research is needed to evaluate its impact on clinical documentation, workflow integration, and real-world usefulness.