The aim of this study was to develop, implement, and evaluate the use of Artificial Intelligence in the prevention of violence among middle-school students. The sample for this study consisted of 20 first-year middle-school students who participated in theme selection activities in a free semester program as part of their home economics studies. The data for the study consisted of nine class observation logs, four group activity outputs, 30 class results, an online survey, and in-depth interviews with three students. A program called “R.U.OK” was developed by setting problematic situation for school violence prevention linked to the contents of the Home Economics Education(HEE) curriculum. After the program was implemented, the survey on the students’ class satisfaction content elements, with AI-based learning activities and PBL and interest, displayed high points, with an average of 4.0 or higher. Our qualitative analysis produced four significant results. First, students’ concerns about school violence had increased and they showed a change in attitude, having more empathy with friends and more interest in their surroundings. Second, digital and AI literacy had improved, and students’ interest in digital media learning had increased. Third, there had been an improvement in problem-solving ability in terms of being able to think more critically and independently. Fourth, the results also demonstrated that there had been a positive effect on self-direction and an improved capacity for teamwork. This study was significant in demonstrating the effectiveness of a program for the prevention of school violence based on the use of digital technology in the educational environment.