FLOWBOX is an autonomous energy management and optimization platform to save energy, make more efficient operations, and to reduce carbon footprint. The platform can actively and autonomously manage, optimize operational technologies, and is able to provide demand flexibility for the smart grid. It is a hardware-agnostic system not tied to a specific hardware manufacturer. The robust hierarchical architecture utilizes edge computing. The platform can be used as a tool for energy management certification ISO50001, EU legislation compliance EPBD 2018/844 and GHG emission reporting.