Spec2chat: A Python library for task-oriented dialogue generation from OpenAPI specifications Rodríguez-Sánchez, María Jesús Callejas Carrión, Zoraida Ruiz-Zafra, Ángel Benghazi Akhlaki, Kawtar chatbots openAPI Large language models (LLMs) This article presents spec2chat, a self-contained and pip-installable Python library for the automatic generation and execution of task-oriented dialogue systems from OpenAPI specifications enriched with conversational metadata. Unlike traditional frameworks based on handcrafted rules or LLM prompting, spec2chat enables dynamic dialogue generation directly driven by service definitions. It combines structured specifications with LLM-powered modules for natural language understanding and question generation. Its API-driven architecture supports hot-swapping of services and seamless adaptation to evolving APIs without retraining or manual intervention. Spec2chat provides a robust foundation for reproducible research and practical deployment in domains such as tourism, marketplaces, and digital public services. 2025-10-31T08:51:18Z 2025-10-31T08:51:18Z 2025-12 journal article Rodríguez-Sánchez, M. J., Callejas, Z., Ruiz-Zafra, A., & Benghazi, K. (2025). Spec2chat: A Python library for task-oriented dialogue generation from OpenAPI specifications. SoftwareX, 32(102409), 102409. https://doi.org/10.1016/j.softx.2025.102409 https://hdl.handle.net/10481/107633 10.1016/j.softx.2025.102409 eng http://creativecommons.org/licenses/by/4.0/ open access Atribución 4.0 Internacional Elsevier