Artificial intelligence (AI) proves decisive in today’s rapidly developing society and is a motive force for the evolution of financial technology. As a subdivision of artificial intelligence research, machine learning (ML) algorithm is extensively used in all aspects of the daily operation and development of the supply chain. Using data mining, deductive reasoning, and other characteristics of machine learning algorithms can effectively help decision-makers of enterprises to make more scientific and reasonable decisions by using the existing financial index data. At present, globalization uncertainties such as COVID-19 are intensifying, and supply chain enterprises are facing bankruptcy risk. In the operation process, practical tools are needed to identify and opportunely respond to the threat in the supply chain operation promptly, predict the probability of business failure of enterprises, and take scientific and feasible measures to prevent a financial crisis in good season. Artificial intelligence decision-making technology can help traditional supply chains to transform into intelligent supply chains, realize smart management, and promote supply chain transformation and upgrading. By applying machine learning algorithms, the supply chain can not only identify potential risks in time and adopt scientific and feasible measures to deal with the crisis but also strengthen the connection and cooperation between different enterprises with the advantage of advanced technology to provide overall operation efficiency. On account of this, the paper puts forward an artificial intelligence-based corporate financial-risk-prevention (FRP) model, which includes four stages: data preprocessing, feature selection, feature classification, and parameter adjustment. Firstly, relevant financial index data are collected, and the quality of the selected data is raised through preprocessing; secondly, the chaotic grasshopper optimization algorithm (CGOA) is used to simulate the behavior of grasshoppers in nature to build a mathematical model, and the selected data sets are selected and optimized for features. Then, the support vector machine (SVM) performs classification processing on the quantitative data with reduced features. Empirical risk is calculated using the hinge loss function, and a regular operation is added to optimize the risk structure. Finally, slime mould algorithm (SMA) can optimize the process to improve the efficiency of SVM, making the algorithm more accurate and effective. In this study, Python is used to simulate the function of the corporate business finance risk prevention model. The experimental results show that the CGOA-SVM-SMA algorithm proposed in this paper achieves good results. After calculation, it is found that the prediction and decision-making capabilities are good and better than other comparative models, which can effectively help supply chain enterprises to prevent financial risks.