Prompt engineering for library agents: development of an AI-based conversational reading recommendation system
The DOI matches its Crossref record; 39 of the 39 references it cites were found in a registry or an index.
Abstract
Purpose: This article presents the design, development and implementation of LaIABot, an artificial intelligence agent based on structured prompting for bibliographic recommendations in library environments. The system addresses common limitations such as staff shortages and time constraints, improving the accessibility and personalization of the service. A key innovation is the design of prompts that generate two simultaneous outputs: one for the user, with clear recommendations and another for the institution, in JSON format with metadata from the interaction, which allows for feedback and optimization of the system, integration into SIGB and enrichment of document analysis and management processes. Design/methodology/approach: A user-centered approach grounded in library science and ethical principles was adopted. LaIABot is developed with a configurable base prompt composed of five modules: user profile, suggestion filtering, collection typology, library services and feedback mechanisms. The technical architecture employs Flask, HTML5, JavaScript and CSS3, with SQLite for initial validation and the possibility of migration to more robust database managers. The pilot test, using 150 synthetic queries and a corpus of approximately 8,500 records, evaluated precision, diversity and JSON output consistency, achieving a 99.33% structural success rate and a 96.67% effective retrieval rate. Findings: Libraries are encouraged to explore the use of specialized conversational agents as a reader advisory tool, prioritizing structured prompting tailored to their specific context and collections. Documenting and auditing recommendations is essential to ensure authorial and thematic diversity, alongside implementing ethical oversight and data governance protocols. The dual output (user/JSON for institutional use) should be leveraged for usage analysis and catalog enrichment. The model's open-source and modular architecture supports its replication in public, academic and specialized libraries, enabling progressive AI integration aligned with institutional infrastructure and resources. Practical implications: LaIABot extends library service availability by operating 24/7, personalizes recommendations according to user profiles and integrates with existing systems, supporting reader advisory without requiring significant investment. Its JSON dual output enables integration with ILS platforms, statistical analysis and continuous service improvement. Pilot test results indicate adequate average response times, thematic and temporal diversity of authors and robust data structuring, confirming its viability as an applicable prototype. The system can enhance the visibility of historical collections and lesser-known authors, strengthening the library's social and educational role. Originality/value: This work introduces a pioneering approach to applying structured prompting with dual output for bibliographic recommendation. Unlike generic AI solutions, it offers a parameterizable architecture grounded in library science and ethical standards, capable of simultaneously producing valuable user-facing responses and structured institutional data. Its open and replicable nature, combined with technical validation in a controlled environment, lays the foundation for deployment in diverse contexts. This research advances the integration of generative AI into library services, combining technological innovation with the preservation of professional values such as neutrality, inclusion and equitable access to knowledge.
Overview
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Cited works that were retracted
Works this paper cites that were later retracted, from the retraction notices publishers deposit. Major when the notice came out before this paper was published.
Rated major: it would touch a result — a value a result rests on, reported and recomputed p-values on opposite sides of the significance level, two passages that conflict with no sign which is right, or a cited work retracted before this paper was published.
In the paper
“Steele, 2025, Academic librarian perceptions on conducting research, The Journal of Academic Librarianship, 51, 10.1016/j.acalib.2025.103154”
Cited work 10.1016/j.acalib.2025.103154 · retracted 2025-11-01 · notice 10.1016/j.acalib.2025.103154 · this paper published 2026-07-13
Citations
Cites
1 retracted
RETRACTED: Academic librarian perceptions on conducting research
Steele, J. E. (2025) · The Journal of Academic Librarianship · doi:10.1016/j.acalib.2025.103154 · Cited by 2
RetractedLanguage Models are Few-Shot Learners
Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. (2020) · arXiv · doi:10.48550/arxiv.2005.14165 · Cited by 23,372
Liu, P., Yuan, W., Fu, J., Jiang, Z., Hayashi, H., & Neubig, G. (2023) · ACM Computing Surveys · doi:10.1145/3560815 · Cited by 4,361
Deep Learning Based Recommender System: A Survey and New Perspectives
Zhang, S., Yao, L., Sun, A., & Tay, Y. (2020) · ACM Computing Surveys · doi:10.1145/3285029 · Cited by 3,485
Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigm
Reynolds, L., & McDonell, K. (2021) · Extended Abstracts of the 2021 CHI Conference on Human Factors in Computing Systems · doi:10.1145/3411763.3451760 · Cited by 952
Research-paper recommender systems: a literature survey
Beel, J., Gipp, B., Langer, S., & Breitinger, C. (2016) · International Journal on Digital Libraries · doi:10.1007/s00799-015-0156-0 · Cited by 823
Recommender systems: from algorithms to user experience
Konstan, J. A., & Riedl, J. (2012) · User Modeling and User-Adapted Interaction · doi:10.1007/s11257-011-9112-x · Cited by 762
Agentic AI: Autonomous intelligence for complex goals–a comprehensive survey
Acharya, D. B., Kuppan, K., & Divya, B. (2025) · IEEE Access · doi:10.1109/access.2025.3532853 · Cited by 717
(2022) · Springer eBooks · doi:10.1007/978-1-0716-2197-4 · Cited by 583
Getting to know you: learning new user preferences in recommender systems
Rashid, A. M., Albert, I., Cosley, D., Lam, S. K., McNee, S. M., Konstan, J. A., & Riedl, J. (2002) · Proceedings of the 7th international conference on Intelligent user interfaces · doi:10.1145/502716.502737 · Cited by 545
Grattafiori, A., Dubey, A., Jauhri, A., Pandey, A., Kadian, A., Al-Dahle, A., Letman, A., Mathur, A., Schelten, A., Vaughan, A., et al. (2024) · arXiv · doi:10.48550/arxiv.2407.21783 · Cited by 505
Okunlaya, R. O., Syed Abdullah, N., & Alias, R. A. (2022) · Library Hi Tech · doi:10.1108/lht-07-2021-0242 · Cited by 333
Lee, U., Jung, H., Jeon, Y., Sohn, Y., Hwang, W., Moon, J., & Kim, H. (2024) · Education and Information Technologies · doi:10.1007/s10639-023-12249-8 · Cited by 217
Harisanty, D., Anna, N. E. V., Putri, T. E., Firdaus, A. A., & Azizi, N. A. N. (2022) · Library Hi Tech · doi:10.1108/lht-10-2021-0356 · Cited by 203
Barsha, S., & Munshi, S. A. (2024) · Library Hi Tech News · doi:10.1108/lhtn-07-2023-0126 · Cited by 159
Wusu, O. (2024) · AI and Ethics · doi:10.1007/s43681-024-00432-7 · Cited by 115
Artificially intelligent conversational agents in libraries
Rubin, V. L., Chen, Y., & Thorimbert, L. M. (2010) · Library Hi Tech · doi:10.1108/07378831011096196 · Cited by 108
LIBRARY AND INFORMATION SERVICES IN THE DIGITAL AGE: OPPORTUNITIES AND CHALLENGES
Onunka, O., Onunka, T., Fawole, A. A., Adeleke, I. J., & Daraojimba, C. (2023) · Acta Informatica Malaysia · doi:10.26480/aim.02.2023.113.121 · Cited by 106
Implementing a Chatbot on a Library Website
Ehrenpreis, M., & DeLooper, J. (2022) · Journal of Web Librarianship · doi:10.1080/19322909.2022.2060893 · Cited by 64
Responsible AI Practice in Libraries and Archives: A Review of the Literature
Mannheimer, S., Bond, N., Young, S. W. H., Kettler, H. S., Marcus, A., Slipher, S. K., Clark, J. A., Shorish, Y., Rossmann, D., & Sheehey, B. (2024) · Information Technology and Libraries · doi:10.5860/ital.v43i3.17245 · Cited by 64
Evaluating Human-Language Model Interaction
Lee, M., Srivastava, M., Hardy, A., Thickstun, J., Durmus, E., Paranjape, A., Gerard-Ursin, I., Li, X. L., Ladhak, F., Rong, F., et al. (2022) · arXiv · doi:10.48550/arxiv.2212.09746 · Cited by 61
Enhancing Human-Computer Interaction with Embodied Conversational Agents
Foster, M. E. (2007) · Lecture notes in computer science · doi:10.1007/978-3-540-73281-5_91 · Cited by 54
Systematic synthesis of design prompts for large language models in conceptual design
Tian, Y., Liu, A., Dai, Y., Nagato, K., & Nakao, M. (2024) · CIRP Annals · doi:10.1016/j.cirp.2024.04.062 · Cited by 54
Radford, M. L., & Connaway, L. S. (2012) · Library & Information Science Research · doi:10.1016/j.lisr.2012.08.001 · Cited by 44
Jaillant, L., Mitchell, O. S., Opu, E. E., & Urbaneja, M. H. (2025) · AI & Society · doi:10.1007/s00146-025-02222-z · Cited by 38
Islam, M. N., Ahmad, S., Aqil, M., Hu, G., Ashiq, M., Abusharhah, M. M., & Saky, S. A. T. M. (2025) · Discover Artificial Intelligence · doi:10.1007/s44163-025-00295-9 · Cited by 36
The Impact of ChatGPT for Enhancing Knowledge Management in University Libraries
Rahman, M. H., & Islam, M. N. (2024) · Journal of Web Librarianship · doi:10.1080/19322909.2024.2391907 · Cited by 24
Automatic Subject Cataloguing at the German National Library
Poley, C., Uhlmann, S., Busse, F., Jacobs, J.-H., Kähler, M., Nagelschmidt, M., & Schumacher, M. (2025) · LIBER Quarterly The Journal of the Association of European Research Libraries · doi:10.53377/lq.19422 · Cited by 23
Using Generative AI for Bibliographic Description: A Study with ChatGPT 4
Gamage, R. J. E., & Wanigasooriya, P. (2024) · Journal of the University Librarians Association of Sri Lanka · doi:10.4038/jula.v27i2.8083 · Cited by 21
An inter-semiotic analysis of ideational meaning in text-prompted AI-generated images
Ghazvineh, A. (2024) · Language and Semiotic Studies · doi:10.1515/lass-2023-0030 · Cited by 19
Exploring the integration of AI in library services: Perspectives and considerations
Patra, N. K., Gaitanou, P., Oladokun, B. D., & Sahu, S. C. (2025) · Business Information Review · doi:10.1177/02663821251343742 · Cited by 16
Harisanty, D., Anna, N. E. V., Sin, S. J., Srirahayu, D. P., Kusumaningtiyas, T., Santos, Y. T. P., & Mannan, E. F. (2025) · The Electronic Library · doi:10.1108/el-10-2024-0341 · Cited by 14
Evaluating Non-AI Experts' Interaction with AI: A Case Study In Library Context
Zheng, Q., Chen, M., Park, H., Zhong-wei, X., & Huang, Y. (2025) · CHI Conference on Human Factors in Computing Systems · doi:10.1145/3706598.3714219 · Cited by 13
DocBench: A Benchmark for Evaluating LLM-based Document Reading Systems
Zou, A., Yu, W., Zhang, H., et al. (2025) · doi:10.18653/v1/2025.knowledgenlp-1.29 · Cited by 11
An In-House Approach to AI: Developing a Custom Chatbot for Library Services
Xuan, W. (2025) · Internet Reference Services Quarterly · doi:10.1080/10875301.2025.2495917 · Cited by 10
Beyond Prompts: Dynamic Conversational Benchmarking of Large Language Models
Castillo-Bolado, D., Davidson, J., Gray, F., & Rosa, M. (2024) · Advances in Neural Information Processing Systems 37 · doi:10.52202/079017-1347 · Cited by 3
Sources for resource selection in public libraries
Kinoshita, T. (2017) · Library and Information Science · doi:10.46895/lis.78.1 · Cited by 1
Unnisa, S., & Akshaya, N. S. (2024) · International Journal of Information Technology Research and Applications · doi:10.59461/ijitra.v3i3.100 · Cited by 1
Assessing reference services training through student staff satisfaction
Zahradnik, T., Henshilwood, A., & Tran, M. (2025) · The Reference Librarian · doi:10.1080/02763877.2025.2570154 · Cited by 1
Research works printed but not linked: 6
- American Library Association (ALA), 2022, Ethics of AI and Libraries: Guidelines for Ethical Practice
- Cox, 2025, IFLA AI Entry Point to Libraries and AI
- García Márquez, 1967, One hundred years of solitude, Diálogos: Artes, Letras, Ciencias humanas, 3, 6
- Golub, 2024, Digital Humanities in the Nordic and Baltic Countries 8th conference Reykjavík
- International Federation of Library Associations and Institutions (IFLA), 2023, Responsible and Ethical Use of AI in Libraries: Principles and Guidelines
- RUSA Reference and User Services Association, 2008, Definitions of Reference
Metadata
- Authors
- Blázquez-Ochando, M., Prieto-Gutierrez, J.-J., & Ovalle-Perandones, M.-A.
- Affiliations
- Complutense University of Madrid Department of Biblioteconomia y Documentacion, , ,
- Universidad Complutense de Madrid (ES)
- Venue
- Library Hi Tech
- Publisher
- Emerald
- Published
- 2026-07-13
- Pages
- 1-18
- ISSN
- 0737-8831 (ISSN-L)
- 2054-166X
- OpenAlex
- W7167929479
- Cited by
- 0
- References
- 37
- FWCI
- 0.00
- Type
- journal article
- Language
- en
- Open access
- closed
- Locations
- Library Hi Tech (publishedVersion)
- Topics
- Social Sciences › Library and Information Sciences › Web and Library Services
- Physical Sciences › Computer Science › Information Systems › Recommender Systems and Techniques
- Social Sciences › Library and Information Sciences › Library Science and Information
- Keywords
- prompt engineering, chatbots, bibliographic recommendations, structured prompting, JSON metadata, library automation, integrated library systems, recommendation diversity, data governance, open source software, user profiles, catalog enrichment, user-centered design, pilot evaluation
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.