This paper presents BPMN Assistant, a tool that leverages Large Language Models (LLMs) for natural language-based creation and editing of BPMN diagrams. A specialized JSON-based representation is introduced as a structured alternative to the direct handling of XML to enhance the accuracy of process modifications. Process generation quality is evaluated using Graph Edit Distance (GED) and Relative Graph Edit Distance (RGED), while editing performance is evaluated with a binary success metric. Results show that JSON and XML achieve similar similarity scores in generation, but JSON offers greater reliability, faster processing, and significantly higher editing success rates. We discuss key trade-offs, limitations, and future improvements. The implementation is available at https://github.com/jtlicardo/bpmn-assistant.
翻译:本文提出BPMN助手,这是一种利用大语言模型基于自然语言创建和编辑BPMN图的工具。我们引入了一种基于JSON的专用表示法,作为直接处理XML的结构化替代方案,以提高流程修改的准确性。流程生成质量使用图编辑距离和相对图编辑距离进行评估,而编辑性能则通过二元成功指标进行评估。结果表明,JSON和XML在生成任务中获得了相似的相似度分数,但JSON提供了更高的可靠性、更快的处理速度以及显著更高的编辑成功率。我们讨论了关键权衡、局限性及未来改进方向。实现代码可在https://github.com/jtlicardo/bpmn-assistant获取。