batch and flow systems allowed the [2 + 2] cycloaddition reaction to proceed and a broad range of oxetanes could be synthesized in manual and automated fashion. The identification of high-yielding reaction parameters was achieved through a new self-optimizing photoreactor system.