Researchers randomly assigned first-year students in an introductory programming course to one of four instructional approaches, ranging from a two-sentence reminder to a multi-step activity. Among the 431 students who completed all four study phases, every approach improved students’ ability to create prompts aimed at learning rather than simply obtaining answers.

The size of the prompting gains increased with the intended level of engagement, ranging from 8 to 51 percentage points, and the gains persisted until the end of the semester. Students also reported continued voluntary use of AI and greater confidence, but final examination scores did not differ between the groups.