In recent years, artificial intelligence (AI) technology has been continuously advancing and finding extensive applications, with one of its core technologies, machine learning, being increasingly utilized in the field of healthcare. This research aims to explore the role of Artificial Intelligence (AI) technology in psychological counseling and utilize machine learning algorithms to predict counseling outcomes. Firstly, by employing natural language processing techniques to analyze user conversations with AI chatbots, researchers can gain insights into the psychological states and needs of users during the counseling process. This involves detailed analysis using text analysis, sentiment analysis, and other relevant techniques. Subsequently, machine learning algorithms are used to establish predictive models that forecast counseling outcomes and user satisfaction based on data such as user language, emotions, and behavior. These predictive results can assist counselors or AI chatbots in adjusting counseling strategies, thereby enhancing counseling effectiveness and user experience. Additionally, this study explores the potential and prospects of AI technology in the field of psychological counseling. The research findings indicate that the designed machine learning models achieve an accuracy rate of approximately 89% in analyzing psychological conditions. This demonstrates significant innovation and breakthroughs in AI technology. Consequently, AI technology will gradually become a highly important tool and method in the field of psychological counseling. In the future, AI chatbots will become more intelligent and personalized, providing users with precise, efficient, and convenient psychological counseling services. The results of this research provide valuable technical insights for further improving AI-supported psychological counseling, contributing positively to the application and development of AI technology.