利用OpenAI API实现软件开发各阶段的自动化
关键词:
人工智能工具; 用户故事; ChatGPT; AI工作量估算; 软件开发流程自动化摘要
近年来,随着各类组织力求提升效率、缩短产品上市时间,自动化已成为软件开发的重点方向。人工智能(AI)工具——尤其是ChatGPT这类使用自然语言处理(NLP)的工具——的引入,为软件开发生命周期中各阶段的自动化开辟了新的可能。本研究的主要目标是评估ChatGPT在软件开发各阶段自动化中的有效性。本文基于OpenAI应用程序接口(API)研制了一款AI工具,具备两项关键功能:(1)根据案例或流程输入生成用户故事;(2)估算执行每个用户故事所需的工作量。此外,本文还使用ChatGPT生成应用程序代码。该AI工具在三个案例研究中进行了测试,每个案例均按两种不同的开发策略展开:一是借助AI工具的半自动流程,二是传统的人工方式。结果表明,开发总时间显著缩短,降幅在40%至51%之间。但同时也观察到,所生成的内容可能存在不准确与不完整之处,在应用于项目前需要审查与调试。综上,鉴于软件工程日益转向自动化,进一步研究以提升AI工具(尤其是利用NLP技术的工具)的效率与可靠性至关重要。Abstract
In recent years, automation has become a key focus in software development as organizations seek to improve efficiency and reduce time-to-market. The integration of artificial intelligence (AI) tools, particularly those using natural language processing (NLP) like ChatGPT, has opened new possibilities for automating various stages of the development lifecycle. The primary objective of this study is to evaluate the effectiveness of ChatGPT in automating various phases of software development. An AI tool was developed using the OpenAI application programming interface (API), incorporating two key functionalities: (1) generating user stories based on case or process inputs, and (2) estimating the effort required to execute each user story. Additionally, ChatGPT was employed to generate application code. The AI tool was tested in three case studies, each explored under two different development strategies: a semi-automated process utilizing the AI tools and a traditional manual approach. The results demonstrated a significant reduction in total development time, ranging from 40% to 51%. However, it was observed that the generated content could be inaccurate and incomplete, necessitating review and debugging before being applied to projects. In conclusion, given the increasing shift towards automation in software engineering, further research is critical to enhance the efficiency and reliability of AI tools, particularly those that leverage NLP technologies.References
[1] 李全兴, 吴国林. 论人工智能的理解——以DeepSeek-R1等新兴人工智能为例. 华南理工大学学报(社会科学版), 2025, 27(2): 9-18.
[2] 毛新军. 自主机器人软件工程的研究综述. 计算机学报, 2021, 44(8): 1661-1678.
[3] Harika J, Baleeshwar P, Navya K, et al. A review on artificial intelligence with deep human reasoning. 2022 International Conference on Applied Artificial Intelligence and Computing (ICAAIC), 2022: 81-84.
[4] Yadav A, Sondhi H. Systematic literature review on sustainable marketing and artificial intelligence. Proceedings of the 17th INDIACom; 2023 10th International Conference on Computing for Sustainable Global Development, 2023: 583-588.
[5] 张军爱, 刘海军, 李高峰, 等. 人工智能ChatGPT赋能初中化学教学设计的创新功能与价值定位. 化学教育(中英文), 2025, 46(5): 86-88.
[6] Santhanam S, Hecking T, Schreiber A, et al. Bots in software engineering: a systematic mapping study. PeerJ Computer Science, 2022, 8(3): e866.
[7] Allam H, Dempere J, Akre V, et al. Artificial intelligence in education: an argument of ChatGPT use in education. 2023 9th International Conference on Information Technology Trends (ITT), 2023: 151-156.
[8] 陈阳, 姜凯星. 国内ChatGPT应用于教育领域的研究现状、分析与启示——基于CiteSpace文献计量. 中小学电教(综合), 2025(12): 20-26.