BPMN Assistant: An LLM-Based Approach to Business Process Modeling
Josip Tomo Licardo, Nikola Tankovic, Darko Etinger
TL;DR
BPMN Assistant tackles the difficulty of editing BPMN diagrams with large language models by decoupling process logic from BPMN XML syntax through a structured JSON intermediate representation. This enables atomic editing operations via function calls and a validation loop to ensure soundness before XML generation. Across multiple models, the JSON-based approach outperforms direct XML regeneration in editing tasks, with substantial latency reductions of approximately $43\%$ and output-token reductions over $75\%$, while requiring more input context. Notably, open-weight models like DeepSeek V3 show meaningful gains (up to about $50\%$ editing success) when using the JSON workflow, highlighting implications for on-prem and privacy-preserving deployments. The work demonstrates a practical path toward reliable, interactive BPMN modeling with constrained LLM interactions and structured representations that generalize beyond proprietary systems.
Abstract
This paper presents BPMN Assistant, a tool that leverages Large Language Models for natural language-based creation and editing of BPMN diagrams. While direct XML generation is common, it is verbose, slow, and prone to syntax errors during complex modifications. We introduce a specialized JSON-based intermediate representation designed to facilitate atomic editing operations through function calling. We evaluate our approach against direct XML manipulation using a suite of state-of-the-art models, including GPT-5.1, Claude 4.5 Sonnet, and DeepSeek V3. Results demonstrate that the JSON-based approach significantly outperforms direct XML in editing tasks, achieving higher or equivalent success rates across all evaluated models. Furthermore, despite requiring more input context, our approach reduces generation latency by approximately 43% and output token count by over 75%, offering a more reliable and responsive solution for interactive process modeling.
