In the 21st century, humanity ushered in a wave of artificial intelligence. In the context of big data, generative artificial intelligence has become an important auxiliary tool in the field of education. ChatGPT has gradually entered the learning life of students and reflected its value in ideological and political education in particular. Through a questionnaire survey, this article takes college students as the research object and aims to grasp their evaluations of using ChatGPT and their views on its application in the field of ideological and political education. Research has found that ChatGPT has advantages in optimizing ideological and political evaluation and management systems, helping students understand political theories, enriching teaching models, and meeting the personalized needs of students. The integration of ChatGPT into the class can not only improve teaching quality but also enhance student's learning efficiency and interest. However, the arrival of ChatGPT has also raised a series of ethical risks, such as spreading incorrect information, personal information leakage, academic misconduct, shallow thinking among students, and alienation of teacher-student relationships. In response to these problems brought about by ChatGPT, this article also proposes corresponding risk governance policies. It is necessary to establish a legal supervision mechanism, improve the level of software research and development, enhance the information literacy of teachers and students, and strengthen academic standardization awareness.