The times are advancing, the Internet is constantly advancing, and there are many examples of the combination of technology and life. The way people buy agricultural products is no longer limited to the physical market, but is being transformed into an agricultural product e-commerce website to achieve digital transformation. So far, a large number of agricultural products have been collected on the agricultural product e-commerce website, they come from all over the country, and different types and different regional agricultural products have appeared. On the other hand, users are faced with a large number of commodities on the Internet. If they simply use search engines, consumers need to spend a lot of time to find the commodities they are interested in by browsing. Searching from the recommended ones greatly reduces the product set and optimizes the performance of the e-commerce platform. Therefore, the generation of the personalized recommendation system meets the needs of the market. This research will improve the related recommendation algorithm by improving the user similarity calculation method based on artificial intelligence technology, improve the execution efficiency and accuracy of the improved algorithm, and use related technologies to develop an agricultural product e-commerce recommendation system. It has important theoretical and practical significance to save users’ browsing time, improve users’ shopping experience, and speed up the construction of agricultural product e-commerce.