CoChat

Prompt engineering for library agents: development of an AI-based conversational reading recommendation system

Blázquez-Ochando, Manuel, Prieto-Gutierrez, Juan-Jose, Ovalle-Perandones, María-Antonia · 2026 · Library Hi Tech

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

Crossref · 10.1108/lht-08-2025-0196

Cites

39 of 39 references verified0 citation errors · 0 not checkable

Statistics

Recomputing p-values needs the paper’s full text.

Verification

Claims the paper makes

This paper’s full text isn’t openly available, so its claims and self-check weren’t run. The registry and citation checks still apply.

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.

1 of 1

Citations

Cites

1 retracted

Show all 39 references

Research works printed but not linked: 6

  1. American Library Association (ALA), 2022, Ethics of AI and Libraries: Guidelines for Ethical Practice
  2. Cox, 2025, IFLA AI Entry Point to Libraries and AI
  3. García Márquez, 1967, One hundred years of solitude, Diálogos: Artes, Letras, Ciencias humanas, 3, 6
  4. Golub, 2024, Digital Humanities in the Nordic and Baltic Countries 8th conference Reykjavík
  5. International Federation of Library Associations and Institutions (IFLA), 2023, Responsible and Ethical Use of AI in Libraries: Principles and Guidelines
  6. 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

How to cite

Cite CoChat for the checks on this page, and the paper for its own findings.

This page
CoChat. (2026). Citation check: Prompt engineering for library agents: development of an AI-based conversational reading recommendation system. https://app.cochat.ai/papers/10.1108/lht-08-2025-0196
The paper
Blázquez-Ochando, M., Prieto-Gutierrez, J.-J., & Ovalle-Perandones, M.-A. (2026). Prompt engineering for library agents: development of an AI-based conversational reading recommendation system. Library Hi Tech. https://doi.org/10.1108/lht-08-2025-0196

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.