Automated synthesis platforms accelerate and simplify the preparation of molecules by removing the physical barriers to organic synthesis. This provides unrestricted access to biopolymers and small molecules via reproducible and directly comparable chemical processes. Current automated multistep syntheses rely on either iterative1,2,3,4 or linear processes5,6,7,8,9, and require compromises in terms of versatility and the use of equipment. Here we report an approach towards the automated synthesis of small molecules, based on a series of continuous flow modules that are radially arranged around a central switching station. Using this approach, concise volumes can be exposed to any reaction conditions required for a desired transformation. Sequential, non-simultaneous reactions can be combined to perform multistep processes, enabling the use of variable flow rates, reuse of reactors under different conditions, and the storage of intermediates. This fully automated instrument is capable of both linear and convergent syntheses and does not require manual reconfiguration between different processes. The capabilities of this approach are demonstrated by performing optimizations and multistep syntheses of targets, varying concentrations via inline dilutions, exploring several strategies for the multistep synthesis of the anticonvulsant drug rufinamide10, synthesizing eighteen compounds of two derivative libraries that are prepared using different reaction pathways and chemistries, and using the same reagents to perform metallaphotoredox carbon–nitrogen cross-couplings11 in a photochemical module—all without instrument reconfiguration.