The purpose of the article is to analyze the foreign experience of using artificial intelligence in the digital marketing of libraries, to outline the main directions, prospects and problems of applying these technologies in Ukraine, and to formulate recommendations for the successful implementation of AI in the digital marketing of Ukrainian libraries. Research methods. In order to achieve our goal, we utilized several scientific methods such as analysis, substantiation, systematization, comparison, and generalization. To gather empirical data, we conducted a content analysis of relevant literature and case studies of foreign libraries that have integrated AI in their digital marketing strategies. The data collected underwent statistical analysis, and we utilized the results to formulate recommendations for Ukrainian libraries to successfully implement artificial intelligence in their digital marketing strategies. Scientific novelty. The article presents a new perspective on implementing digital marketing methods in libraries through the use of artificial intelligence. By analyzing foreign experiences, the article suggests effective strategies and tools for promoting library services in the digital environment. Furthermore, the article emphasizes the potential of artificial intelligence technologies to address challenges faced by the library industry in Ukraine and offers practical recommendations for their implementation. Conclusions. Five main areas of artificial intelligence application in the digital marketing of foreign libraries have been identified: chatbots, recommendation systems, smart libraries, digital archives, and user behaviour analysis. Prospects for the implementation of AI include personalization of user experience through content recommendations based on user’s preferences and search history; improvement of search functionality by providing more accurate and relevant results; increasing user engagement through real-time interaction with chatbots; analysis of user behaviour to develop targeted marketing campaigns; simplification of analysis of large amounts of data and identification of patterns and trends; automation of routine tasks, etc. Challenges in using AI technologies: lack of necessary resources, technical and technological recommendations, knowledge and skills, etc. Libraries can organize cooperation with AI specialists or other libraries that have already implemented AI fragments; identify areas that require improvement and investment; identify staff with the necessary skills and knowledge to manage and support smart technologies; consider ICT gadgets as a means of efficiently providing information services; and work to improve the efficiency of information and communication technologies; constantly improve their skills and evaluate and adapt services and technologies; have a clearly defined marketing strategy and AI implementation plan that meet the library’s goals and objectives.