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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Spec2chat: A Python library for task-oriented dialogue generation from OpenAPI specifications

Ángel Ruíz-Zafra, Zoraida Callejas, Kawtar Benghazi, María Jesús Rodríguez‐Sánchez
SoftwareX
Software Engineering Research
article

Spec2chat: A Python library for task-oriented dialogue generation from OpenAPI specifications

Ángel Ruíz-Zafra, Zoraida Callejas, Kawtar Benghazi, María Jesús Rodríguez‐Sánchez
article en

Abstract

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.

SoftwareXVol. 32
Universidad de Granada (ES)
Openalex Percentile: Top 57%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.