Diverse Utterances Generation with GPT to Improve Task-Oriented Chatbots and APIs Integration

Task-oriented chatbots enable users to make requests in natural language, such as booking flights or checking the weather. Given the richness of language, users may express the same request in many ways, making it essential to consider a diverse set of utterances when training chatbots to ensure its robustness. Additionally, APIs offer valuable information, and integrating chatbots with them improves access to external data, enabling contextual interactions and enhancing response relevance. However, developing and maintaining effective models for recognising API method calls from user requests remains challenging. Existing solutions often require substantial resources to integrate new APIs and create sufficiently diverse and semantically relevant training utterances. In this paper, we propose a novel approach using Large Language Models (LLMs) to create diverse utterances related to API methods. We also leverage the generated utterances to build a vector space to support natural language conversations with APIs or tools. We collect data from OpenAPI specifications and perform a multi-stage prompt pipeline using GPT to generate diverse utterances. Then, we leverage sentence embeddings to create a vector space representation of API methods. Experiments show that the proposed approach generates diverse and semantic relevant utterances, resulting in a robust representation of API methods.

Authors

Institutions

Publication Details

Published
2024-11-26
DOI
https://doi.org/10.1109/fllm63129.2024.10852454
Citations
2
Primary Topic
AI in Service Interactions
Type
article
Field-Weighted Citation Impact
0.69
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Diverse Utterances Generation with GPT to Improve Task-Oriented Chatbots and APIs Integration

Auday Berro, Boualem Benatallah, Silvana Togneri MacMahon, Vitor Gaboardi dos Santos
2 citations
AI in Service Interactions
0.69
article

Diverse Utterances Generation with GPT to Improve Task-Oriented Chatbots and APIs Integration

Auday Berro, Boualem Benatallah, Silvana Togneri MacMahon, Vitor Gaboardi dos Santos
article en
2 citations

Abstract

Task-oriented chatbots enable users to make requests in natural language, such as booking flights or checking the weather. Given the richness of language, users may express the same request in many ways, making it essential to consider a diverse set of utterances when training chatbots to ensure its robustness. Additionally, APIs offer valuable information, and integrating chatbots with them improves access to external data, enabling contextual interactions and enhancing response relevance. However, developing and maintaining effective models for recognising API method calls from user requests remains challenging. Existing solutions often require substantial resources to integrate new APIs and create sufficiently diverse and semantically relevant training utterances. In this paper, we propose a novel approach using Large Language Models (LLMs) to create diverse utterances related to API methods. We also leverage the generated utterances to build a vector space to support natural language conversations with APIs or tools. We collect data from OpenAPI specifications and perform a multi-stage prompt pipeline using GPT to generate diverse utterances. Then, we leverage sentence embeddings to create a vector space representation of API methods. Experiments show that the proposed approach generates diverse and semantic relevant utterances, resulting in a robust representation of API methods.

Université Claude Bernard Lyon 1 (FR), Dublin City University (IE)
Openalex Percentile: Top 22%
AI in Service Interactions
0.69
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.