Teaching an LLM how to Generate Axon Ivy Business Processes ๐ค
If youโve ever wondered what happens when you put two developers in a remote mountain hut ๐๏ธ, add a dash of Swiss air ๐จ๐ญ, and a pinch of AI ambition โจ, let us tell you: code magic ensues.
Armed with a vague idea and sophisticated JSON schemas that define Axon Ivy process models, we set out to answer a burning question: Can we teach an LLM to generate business processes for real-world applications? ๐ก
Our Mission: LLM-Driven Business Process Generation ๐
This year, @Reguรซl Wermelinger and I dove deep into Axon Ivyโs core: designing business processes. Traditionally, crafting these processes required meticulous manual effort. But times are changing. With LLM-powered coding assistants like VSCode Copilot ๐ปโจ, you can now describe what your process should achieve and watch it materialize almost like magic.
At the heart of Axon Ivy lies its JSON-based process models, which drive the Axon Ivy Designer, our visual tool for building workflows. But imagine taking it a step further: what if users could simply ask an LLM to generate a process based on their ideas?
๐ Enter the code camp! ๐
The Axon Ivy MCP Server โ๏ธ
To make LLM-powered process generation more than just a cool idea ๐ญ, we set out to build an MCP (Model Context Protocol) Server inside the Axon Ivy Engine.
An MCP Server can be used by coding assistants (MCP Clients) to gain domain-specific knowledge and invoke specialized tools ๐ ๏ธ. This gives us much more control over the results of user prompts, especially for a domain as specific as Axon Ivy's business process models.
The Journey ๐ค๏ธ
We started by creating a new repository ๐ and implementing the MCP Server infrastructure.
Once that foundation was laid, we explored its capabilities, developing simple tools and watching Copilot use them ๐.
We experimented with sampling requests, which allow an MCP Server to prompt an LLM via the MCP Client, so the server can leverage AI responses without needing direct access or credentials ๐.
Then came the real challenge: developing a tool to generate Axon Ivy business processes that strictly follow our JSON schema ๐.
With some setup and prompt engineering, we quickly achieved usable results โ
. From there, we expanded our scope to also generate the necessary data classes, refining our tools, prompts, and schemas as we went.
And hereโs what it looks like when it all comes together ๐

Naturally, we didnโt just code; we made sure everything was covered with tests ๐งช, enabling rapid iteration with confidence.
Lessons Learned ๐
Collaborative Coding ๐ค
Working closely pushed our ideas further. Regular discussions and brainstorming allowed us to rapidly experiment and develop new approaches.
AI Surprises ๐ฒ
Getting an LLM to do exactly what you want is never straightforward. It takes a lot of prompt and tool flow experimentation. Sometimes, the LLM would ignore our tools entirely, proving that large language models are still a bit of a black box ๐ณ๏ธ.
Process Automation โก
We discovered real potential in using LLMs to automate repetitive modeling, freeing up humans for actual mountain hiking ๐ฅพ (or at least more coffee breaks โ).
Whatโs Next? ๐ฎ
More LLM Tooling ๐ ๏ธ
Weโre just scratching the surface. Next, we could enable users to prompt for entire business flows, generating executable models with forms, variables, external system integrations, and even market connectors ๐.
Product Integration ๐ฆ
The MCP Server isnโt yet integrated into the Axon Ivy Engine product. Making it an integrated feature would speed up development and allow us to gather valuable feedback for future improvements.
Continued Exploration ๐งญ
The AI space is evolving rapidly, with new products, technologies, and features emerging all the time. Weโll keep exploring different approaches and tracking what proves valuable, both internally and externally.
From the peaks of Switzerland ๐๏ธ,
Reguel & Lukas โ๏ธ