Spec2chat: A Python library for task-oriented dialogue generation from OpenAPI specifications
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.
Authors
- Ángel Ruíz-Zafra
- Zoraida Callejas (ORCID: https://orcid.org/0000-0001-8891-5237)
- Kawtar Benghazi (ORCID: https://orcid.org/0000-0002-6677-7301)
- María Jesús Rodríguez‐Sánchez
Institutions
- Universidad de Granada (ES)
Publication Details
- Journal
- SoftwareX
- Published
- 2025-10-17
- DOI
- https://doi.org/10.1016/j.softx.2025.102409
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00