Chat2Code: A Chatbot for Model Specification and Code Generation, The Case of Smart Contracts
The potential of automatic code generation through Model-Driven Engineering (MDE) frameworks has yet to be realized. Beyond their ability to help software professionals write more accurate, reusable code, MDE frameworks could make programming accessible for a new class of domain experts. However, domain experts have been slow to embrace these tools, as they still need to learn how to specify their applications' requirements using the concrete syntax (i.e., textual or graphical) of the new and unified domain-specific language. Conversational interfaces (chatbots) could smooth the learning process and offer a more interactive way for domain experts to specify their application requirements and generate the desired code. If integrated with MDE frameworks, chatbots may offer domain experts with richer domain vocabulary without sacrificing the power of agnosticism that unified modelling frameworks provide. In this paper, we discuss the challenges of integrating chatbots within MDE frameworks and then examine a specific application: the auto-generation of smart contract code based on conversational syntax. We demonstrate how this can be done and evaluate our approach by conducting a user experience survey to assess the usability and functionality of the chatbot framework. The paper concludes by drawing attention to the potential benefits of leveraging Language Models (LLMs) in this context.
WOS:001065963600007
2023-01-01
979-8-3503-4075-4
Los Alamitos
50
60
REVIEWED
Event name | Event place | Event date |
Chicago, IL | JUL 02-08, 2023 | |
Funder | Grant Number |
Natural Sciences and Engineering Research Council of Canada (NSERC) | RGPIN-2023-05484 |
Icelandic Centre for Research (Rannis) | 218202-051 |