Burr is an open-source project under the Apache umbrella for building applications that make decisions, such as chatbots, agents and simulations. It gives developers a structured way to define how these apps move from one step to the next.
It also lets you monitor, trace and save the state of your app, and run everything on infrastructure you control. The code is on GitHub with a sizeable community, and it is free to use in both hobby and commercial work.