Skip to main navigation Skip to search Skip to main content

Evaluating lab assistant chatbot on student learning and behaviors in a programming short course

  • Mahidol University

Research output: Contribution to journal › Article › peer-review

8 Citations (Scopus)

Abstract

The rise of generative AI has increased interest in its application as an intelligent lab assistant in programming education, but concerns persist over its educational value and potential exploitation. While previous work supports using a customized chatbot as an assistant that provides specific guidance rather than allowing students to prompt responses freely, empirical evidence directly comparing these approaches is still lacking. This study evaluates the impact of two chatbot designs, Unrestricted and Assistant, on student learning and behavior in a short Python programming course. Through a controlled experiment involving 42 participants, we found that students using the Assistant chatbot, which provided guidance through preset and free-text prompts without offering direct solutions, showed significantly greater improvement from pre- to post-test than those using an Unrestricted chatbot. Analysis of over 1000 chatbot interactions revealed a strong preference for free-text input and a high rate of attempted exploits among participants. Additionally, prompt injection tests demonstrated the Assistant chatbot’s partial vulnerability to hijacking attempts. These findings highlight the benefits and limitations of AI assistants in programming education, underscoring the importance of guided interaction design to support learning while minimizing exploitation.

Original languageEnglish
Article number100527
JournalComputers and Education: Artificial Intelligence
Volume10
DOIs
Publication statusPublished - Jun 2026

Keywords

  • Chatbot
  • Empirical Study
  • Programming Education
  • Prompt Engineering

Fingerprint

Dive into the research topics of 'Evaluating lab assistant chatbot on student learning and behaviors in a programming short course'. Together they form a unique fingerprint.

Cite this