With the rapid development of the Internet and social economy, in the process of online shopping, a series of problems frequently occur, the most serious of which is tort and rights protection, but laws and regulations often lag behind the development of e-commerce transactions. Artificial intelligence technology embodies the exchange and use of digital information, which is an inevitable trend in the development of modern society. The research object of this research is students. Based on the connotation and significance of artificial intelligence technology, it aims to put forward effective solutions and suggestions to the law problems that arise in the online shopping process of students through some data analysis obtained by artificial intelligence technology, so as to provide reference for guiding student groups to form correct consumption concepts and promoting relevant institutions to maintain a safe and reasonable online shopping mechanism and platform environment. According to the above goals, this research combines the Agent technology in the field of artificial intelligence, proposes and builds a legal protection system framework that meets the requirements of online shoppers, discusses how to use the law to regulate infringement and rights protection in the process of online shopping, and has implications for improving the legal system in the process of online shopping.