With the development of modern science and technology, automation technology has been gradually applied to various industries, and has gradually begun to realize automatic control. In the process of using this technology, it can not only reduce the investment in human and financial resources, but also greatly reduce the project duration. At present, in the power system, the high voltage power system has been widely used and has achieved good results. High voltage transmission lines are easy to cause accidents, which would directly cause huge damage to the interests of the people and enterprises, so they must be regularly maintained. This paper analyzed the optimization and application of artificial intelligence (AI) in the automatic grid overhead line project, and compared the differences of angle, average speed and communication distance. It was concluded that the average speed of robot automation optimization by using AI was 26.1% higher than that before optimization, and the use of AI can increase the communication distance of robot automation by 25%.