Optimizing logistics delivery paths using artificial intelligence technology is an important way for enterprises to achieve cost reduction and efficiency increase. Based on the analysis and research of several main distribution path optimization methods, and based on the characteristics of each method, the article chooses to use ant colony algorithm to carry out the research of this paper. This paper expounds the principle and algorithm process of the ant colony algorithm and based on the actual problems and data of S Electronics’ logistics distribution, conducts modeling research on its logistics distribution path, and then compares and analyzes the results of its empirical research with those under the traditional algorithm. The conclusion is that although the total distance of the ant colony algorithm is slightly increased compared to traditional algorithms, it can save one transportation vehicle and its labor costs for enterprises, and help enterprises greatly save delivery costs. Compared to traditional algorithms, the ant colony algorithm has better performance.